diff options
| author | user <user@clank> | 2026-08-20 23:22:33 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-20 23:22:33 +0200 |
| commit | b33e8c13ff7981effc7ec2735e6aeaaaf1705af7 (patch) | |
| tree | 4933eb476b5d09e9d8131986c84bb966bca317a2 /docs/keys.md | |
| parent | fuzz: libFuzzer harness for all six parser surfaces (diff) | |
| download | slosh-b33e8c13ff7981effc7ec2735e6aeaaaf1705af7.tar.gz slosh-b33e8c13ff7981effc7ec2735e6aeaaaf1705af7.tar.xz slosh-b33e8c13ff7981effc7ec2735e6aeaaaf1705af7.zip | |
slosh: floating panes and the drop grammar
A pane can float: lifted out of the layout, drawn over the tiled panes and
under the modals, freely moved and shaped. The model is a flag and a rect on
the leaf, exactly like `minimized` -- the seat in the tree is kept, layout
skips it, the siblings absorb its share, and un-floating returns it home.
The drawn rect is the wanted one clamped to the tab every frame, never
written back, so a terminal squeeze round-trips exactly; an explicit move or
resize *does* write back, because the hand is the author of the intent.
Floating pops the pane to the centre: the jump is what says it happened.
Painted after everything tiled, so the hit list -- searched backwards --
resolves an overlap to the float you can see: the z-order and the click
order are the same list. It casts a shadow (float_shadow, one number), and
`floating` joins the states table above `unfocused`, so a float is never
dimmed as merely-unfocused.
The hands: the title moves it, any other border resizes it (a bottom corner
on both axes; the grabbed edge pins at walls and floors, never sliding the
window), H J K L move a focused float, the =/+ key grows it about its
centre, `-` shrinks it (its split was a refusal anyway), and hovering shows
which edges a grab would take, from the same derivation the press uses.
Equalize moved to `0` to free the key; `C-a f` floats (finder went to `s`,
where it reads as search); `C-a F` opens a new floating shell -- the
throwaway terminal; the function row f1..f12 became nameable in configs
along the way. Guards throughout: the last tiled pane cannot float or
minimize away, closing it lands the top float, splits are refused with
their own words, floats are not swap targets.
Dropping got a grammar: while a pane is carried, the pane under the pointer
subdivides into a swap centre and four edge bands meaning "insert me beside
this pane, on this side" -- detach_leaf + place_beside, the surgery
cross-tab moves already had. Bands are thirds (the first map of quarters
showed the swap owning half of each axis), the hovered band fills the half
the drop would hand over, the release resolves against the painted frame's
hits so it cannot disagree with the fill, and a drop between siblings along
the axis is a reorder that always fits -- refusing it was refusing the most
ordinary drag there is.
Also: rename-pane/rename-tab as palette actions (renaming was a
double-click and nothing else, the one verb the palette could not reach),
and C-u clears the rename editor like it clears the picker's query.
Design log in PLAN-FLOATING-PANES.md; to fold into DESIGN.md as D22/M10-11.
Diffstat (limited to 'docs/keys.md')
| -rw-r--r-- | docs/keys.md | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/docs/keys.md b/docs/keys.md index fb58532..88a3318 100644 --- a/docs/keys.md +++ b/docs/keys.md @@ -18,11 +18,14 @@ it did not — `+7 more, in docs/keys.md`, which is the table below. | `\` `-` | split into columns / rows, when you mean one | | `h` `j` `k` `l`, or arrows | move focus | | `o` | the next pane | -| `H` `J` `K` `L`, or shift+arrows | move the boundary between panes | -| `=` | give every visible pane an even share | +| `H` `J` `K` `L`, or shift+arrows | move the boundary between panes — or the pane itself, when it is [floating](panes.md#floating-a-pane) | +| `0` | give every visible pane an even share | | `Space` | turn the layout a quarter turn (four brings it back) | | `z` | zoom this pane to fill the tab, and back | | `m` | minimise it into the strip along the bottom | +| `f` | [float](panes.md#floating-a-pane) it above the layout, and back | +| `F` | a new floating shell — the throwaway terminal | +| `=` (`+`) `-` | grow / shrink a focused float about its centre (`-` splits, when the pane is tiled) | | `x` | close this pane | | `X` | close this tab, and everything in it | | `r` | run a finished pane's command again | @@ -32,7 +35,7 @@ it did not — `+7 more, in docs/keys.md`, which is the table below. | `c` | new tab | | `Tab` `shift+Tab` | next / previous tab | | `1`…`9` | go to that tab | -| `f` | find a pane by name | +| `s` | search: find a pane by name | | `w` | the projects picker — every project under your roots, open or not ([workspaces](workspaces.md)) | | `W` | write this tab out as this project's layout ([workspaces](workspaces.md)) | | `p` | the command palette | @@ -43,11 +46,12 @@ it did not — `+7 more, in docs/keys.md`, which is the table below. | `q` | quit the session | | `C-a` | send a literal `C-a` | -**`x`/`X`, `p`/`P` and `w`/`W` are deliberately shifted pairs on one letter.** -Close this pane / close this tab; run a command / tag this pane; go to a project / -write this project down. The shifted half is the same verb on a bigger thing, or -the thing you reach for within a moment of the other, so the shift is less to -remember than a second letter would have been. +**`x`/`X`, `p`/`P`, `w`/`W` and `f`/`F` are deliberately shifted pairs on one +letter.** Close this pane / close this tab; run a command / tag this pane; go +to a project / write this project down; float this pane / float a fresh one. +The shifted half is the same verb on a bigger thing, or the thing you reach +for within a moment of the other, so the shift is less to remember than a +second letter would have been. `X` says how many panes went with the tab, since most of them were not the one you were looking at. On the **last** tab it refuses and points at `q` instead: a key @@ -79,8 +83,8 @@ keys { Modifiers are `ctrl+ alt+ shift+ super+`, or the shorthand the cheatsheet prints: `C-` `M-` `S-`. Named keys are `left right up down enter tab escape space backspace home end pageup pagedown delete insert backslash minus slash -comma period`, and the arrows can be written as `←` `→` `↑` `↓` too — so a chord -copied off the cheatsheet is a chord you can paste into a config. +comma period f1`…`f12`, and the arrows can be written as `←` `→` `↑` `↓` too — +so a chord copied off the cheatsheet is a chord you can paste into a config. Anything else is the character you press. That includes the shifted ones, which carry their own shift: `"?"` is `"shift+slash"`, `"H"` is `"shift+h"`, `"|"` is @@ -116,10 +120,10 @@ being bound at all. | group | actions | |---|---| -| panes | `split` `split-cols` `split-rows` `close-pane` `rerun` `zoom` `minimize` `rotate-layout` `clear-shaders` `pane-to-next-tab` `pane-to-prev-tab` `pane-to-new-tab` `set-purpose` | +| panes | `split` `split-cols` `split-rows` `close-pane` `rerun` `zoom` `minimize` `float` `new-float` `rotate-layout` `clear-shaders` `pane-to-next-tab` `pane-to-prev-tab` `pane-to-new-tab` `set-purpose` `rename-pane` | | focus | `focus-left` `focus-right` `focus-up` `focus-down` `focus-next` `finder` | -| size | `resize-left` `resize-right` `resize-up` `resize-down` `equalize` | -| tabs | `new-tab` `close-tab` `next-tab` `prev-tab` `select-tab-1` … `select-tab-9` | +| size | `resize-left` `resize-right` `resize-up` `resize-down` `equalize` `float-grow` `float-shrink` | +| tabs | `new-tab` `rename-tab` `close-tab` `next-tab` `prev-tab` `select-tab-1` … `select-tab-9` | | projects | `workspaces` `save-workspace` | | scroll | `scroll-up` `scroll-down` `scroll-page-up` `scroll-page-down` `scroll-top` `scroll-bottom` | | session | `palette` `help` `edit-config` `detach` `quit` `literal-prefix` | |
