feat(scrolling): add full-width, expand and center-focus commands

The model could take the full width, fill the room that the columns in
view leave, and centre a column, but nothing called it. These commands
do, the first in the scrolling-layout family that
scrolling-layout-columns started, and the others named plainly,
center-focus to match promote-focus:

- scrolling-layout-full-width
- expand
- center-focus

Each is about the container that has focus now, even if focus moved
since the last layout, and does nothing until there is a strip, or in
another layout. A column made the full width of the screen takes the
gaps into account, so that it fills the screen exactly. expand makes the
focused column as wide as it can be without moving another column out of
view, which is the full width of the screen when it is the only one in
view or when the focused column is always centred, and does nothing when
there is no room.

Nothing changes in the shared layouts crate, so Windows is not affected.
This commit is contained in:
LGUG2Z committed 2026-10-29 16:38:53 -07:00
1 parent 2fb9dfdffa
commit b496bd8858
9 files changed
+260 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# center-focus
```
Centre the user focus on the screen, once
In the Scrolling layout the screen scrolls so that the focused column is in the middle of it. Only
the Scrolling layout scrolls, so this does nothing in the other layouts.
Usage: komorebic center-focus
Options:
-h, --help
Print help (see a summary with '-h')
```
+13
View File
@@ -0,0 +1,13 @@
# expand
```
Make the focused column of the Scrolling layout fill the room that the columns in view leave on the
screen, which does nothing in any other layout
Usage: komorebic expand
Options:
-h, --help
Print help
```
+12
View File
@@ -0,0 +1,12 @@
# scrolling-layout-full-width
```
Make the focused column of the Scrolling layout as wide as the screen, or put it back
Usage: komorebic scrolling-layout-full-width
Options:
-h, --help
Print help
```