raphamorim / raphamorim/rio

[Feature Request] Add option to center and/or stick to corner (padding-related)

Open
#1,027 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
7.5k
Forks
353
Avg merge
2d 11h
Merged PRs (30d)
15

Description

Hello,

I would love to be able to tell Rio to re-distribute the padding so that the actual content is centered and/or sticks to some given corner.

At this moment, the default is always top-left and the left-over space is on the right and on the bottom. It can be somewhat changed using padding, but it doesn't work well (for what I want to achieve) when changing font size or window size.

If I remember correctly, Alacritty has the option to (only) center the content, which redistributes the gaps so that they are even on all sides.

In my case, I like to have zero padding and stick to bottom-left corner (which I achieved in Wezterm with custom dynamic-padding event handler).

My idea is some option in the config file named align-content (or something like that), where user could put one of center, top-left (default), top, top-right, right, bottom-right, bottom, bottom-left, left.

Anyway, thanks for your work, Rio is awesome!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Rio's configuration handling and the terminal layout or rendering entry points that determine padding and the top-left default. Compare the requested alignment choices with the existing padding behavior, then identify how configuration changes are tested. Done means the requested alignment options work across font and window-size changes without altering the default behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.