diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-27 12:21:41 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:14 -0300 |
| commit | 281b1eb2d5249caece4ac69a7d975cb01d2e7a89 (patch) | |
| tree | 688c6e72a82f3b574b18657f98e4250886d98b83 /test | |
| parent | 9b8146a7df6270613ab48ba3df53e97a558d1ba4 (diff) | |
| download | pardes-281b1eb2d5249caece4ac69a7d975cb01d2e7a89.tar.gz pardes-281b1eb2d5249caece4ac69a7d975cb01d2e7a89.zip | |
Replace a stillborn placeholder pane when a pane joins its column, and focus the pane a directional Del grows
A pane that joins a column whose only other pane is an untouched empty
scratch (Newcol's, or the stand-in a closed column leaves) takes the column
whole. Checked at the end of the step, since the pane that asked for the
joiner is often the placeholder itself.
Del k|j focuses the pane that took the rows.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test')
| -rw-r--r-- | test/snapshots/layout-close.golden | 4 | ||||
| -rw-r--r-- | test/snapshots/layout-close.snap | 6 | ||||
| -rw-r--r-- | test/snapshots/leader.golden | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/test/snapshots/layout-close.golden b/test/snapshots/layout-close.golden index c9e1243a..a49ae97e 100644 --- a/test/snapshots/layout-close.golden +++ b/test/snapshots/layout-close.golden @@ -35,11 +35,11 @@ |15: |16: |22: /tmp/pardes-snap/layout-close/cw -== snap del grid=140x41 cursor=39,5 +== snap del grid=140x41 cursor=4,8 |6: |7: |8: -== snap exit grid=140x41 cursor=39,5 +== snap exit grid=140x41 cursor=39,8 |10: |11: |12: diff --git a/test/snapshots/layout-close.snap b/test/snapshots/layout-close.snap index f459ffb4..50a11cc3 100644 --- a/test/snapshots/layout-close.snap +++ b/test/snapshots/layout-close.snap @@ -25,7 +25,8 @@ snap altc # Del the 2nd pane: source-local column insertion makes this column too narrow # to expose its tag words, so focus its body and invoke the same pane-scoped # builtin by chord. With panes above and below, the chord asks which one -# takes the rows: k, the pane above. The other panes keep their rows. +# takes the rows: k, the pane above, which also takes the focus. The other +# panes keep their rows. press left 5 9 release left 5 9 stable 400 5000 @@ -36,6 +37,9 @@ snap del # exit the (now) 2nd shell through its real tty: pty EOF, again only the pane # above absorbs — and focus falls back to the # pane that had it before this one (the moved-out column), not to slot 0 +press left 40 9 +release left 40 9 +stable 400 5000 press left 5 15 release left 5 15 stable 400 5000 diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index 3be0846b..cc420f46 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -28,7 +28,7 @@ |20: 8 |21: 9 |23: 1 pardes builtins under SPC h Tutor -== snap deleted grid=100x41 cursor=7,23 +== snap deleted grid=100x41 cursor=7,3 |12: |13: |14: |
