Skip to content

feat: Add way to control all outer gap individualy - #1267

Open
Wateir wants to merge 1 commit into
mangowm:mainfrom
Wateir:more-gaps
Open

feat: Add way to control all outer gap individualy#1267
Wateir wants to merge 1 commit into
mangowm:mainfrom
Wateir:more-gaps

Conversation

@Wateir

@Wateir Wateir commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

You can define a different gap on the right and on the left, same for top and bottom. Intorudce 4 new settings

Setting Default Description
gappol 10 Outer gap, left edge.
gappor 10 Outer gap, right edge.
gappot 10 Outer gap, top edge.
gappob 10 Outer gap, bottom edge.

For backward compatibility, gappoh sets both gappol and gappor, and gappov sets both gappot and gappob. If you mix legacy and directional keys, the last one in the file wins.

i have run ./format.sh

I have compile and test them, they work fine, and the backward compatibility too work

@Wateir

Wateir commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

@ernestoCruz05 possible to review this if you have some time ?

Comment thread docs/visuals/theming.md Outdated
@DreamMaoMao

Copy link
Copy Markdown
Collaborator

This seems to affect all layouts, not just the few currently given ones, and it will make layout calculations very complicated

Comment thread src/layout/horizontal.h Outdated
@ernestoCruz05

Copy link
Copy Markdown
Contributor

This seems to affect all layouts, not just the few currently given ones, and it will make layout calculations very complicated

i think it would be a neat feature, maybe an issue to see how popular the demand is?

@Wateir

Wateir commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

This seems to affect all layouts

Yeah, it’s the goal to have all layouts affect.

not just the few currently given ones

do you mean some layouts are one the code but users can’t use them so need to be untouch ?

and it will make layout calculations very complicated

i don’t see where, since the only change on calculation are some multiplication become substraction or it’s another thing i miss

You can define a different gap on the right and on the left, same for top and bottom.
Intorudce 4 new settings

| Setting | Default | Description |
| :--- | :--- | :--- |
| `gappol` | `10` | Outer gap, left edge. |
| `gappor` | `10` | Outer gap, right edge. |
| `gappot` | `10` | Outer gap, top edge. |
| `gappob` | `10` | Outer gap, bottom edge. |

For backward compatibility, `gappoh` sets both `gappol` and `gappor`, and `gappov` sets both `gappot` and `gappob`. If you mix legacy and directional keys, the last one in the file wins.
@DreamMaoMao
DreamMaoMao force-pushed the main branch 5 times, most recently from 6504c21 to f875e19 Compare September 2, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants