diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-08 10:44:56 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | 198889ab8f78b12c9881a20309a792e419ba1386 (patch) | |
| tree | 264bb756389f4c4cbaf68a6a2aabf3d602450a36 /test/snapshots/find.golden | |
| parent | c3c8bbd8d8add99088c774c54bc1acf1e39ec895 (diff) | |
| download | pardes-198889ab8f78b12c9881a20309a792e419ba1386.tar.gz pardes-198889ab8f78b12c9881a20309a792e419ba1386.zip | |
Esc alternates between the last two panes; Toggleterm is gone
Esc ran Toggleterm, which hopped between the newest DOC and the newest
TERMINAL. That distinction never earned its keep. It made Esc unpredictable —
which of three panes you landed on depended on their kinds, not on where you
had been — and it could not alternate between two files at all, which is the
case you hit most. Editing two files, Esc did nothing.
The replacement already existed. Last (SPC j j) is "the pane you were in
before this one, whichever it was": it walks the jump stack for the newest
entry naming a different pane and restores its line and column. So Esc, and
Shift-Esc in tty, now run Last, and Toggleterm is deleted rather than renamed
— a third implementation of "go to the other pane" was the thing to avoid.
SPC w t goes with it; the w group is the four directional moves, and the jump
group already had SPC j j.
Held down, Esc alternates. Two files, a file and its shell, a file and a
+Search — all the same, because Last has no notion of kind to get wrong.
This depends on the swap in the same series: Last reads the stack backwards,
and until hopping stopped appending, the pane you came from could fall off it.
windownav.snap needed only its keys and prose changed — its golden did not
move at all, which is the useful evidence here: for the one scenario the old
builtin handled well, Last produces an identical focus sequence.
Coverage for what it did not handle is new: a unit test opens a second FILE by
looking its name and asserts Esc alternates between two panes of the SAME
kind, which is the case that used to be a no-op.
Docs follow: tutor.txt, docs/helix-keys.md, docs/design.typ, and the builtin
index goldens, which are now one row shorter.
75/75 snapshots, both unit suites, and the macOS ABI build all pass.
Diffstat (limited to 'test/snapshots/find.golden')
| -rw-r--r-- | test/snapshots/find.golden | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/test/snapshots/find.golden b/test/snapshots/find.golden index 6419cba0..0a33df22 100644 --- a/test/snapshots/find.golden +++ b/test/snapshots/find.golden @@ -1,6 +1,6 @@ == snap group grid=120x40 cursor=7,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del SPC f +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | | @@ -38,10 +38,10 @@ | | | -| +| SPC f == snap armed grid=120x40 cursor=9,39 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | | @@ -82,7 +82,7 @@ | Find / == snap typing grid=120x40 cursor=12,39 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | | @@ -123,7 +123,7 @@ | Find /zqm == snap results grid=120x40 cursor=7,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | | @@ -158,13 +158,13 @@ | | | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 sub/ZQMARK-beta.txt | 2 sub/nest/zqmark-gamma.txt | 3 zqmark-alpha.txt == snap first grid=120x40 cursor=7,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | | @@ -182,7 +182,7 @@ | | | -| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del | 1 beta body | | @@ -199,13 +199,13 @@ | | | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 sub/ZQMARK-beta.txt | 2 sub/nest/zqmark-gamma.txt | 3 zqmark-alpha.txt == style first |0: 0-56 #949494,#121212, 57-119 d,#121212, -|1: 0-1 #ffffff,#626262, 2-48 #949494,#121212, 49-119 d,#121212, +|1: 0-1 #ffffff,#626262, 2-99 #949494,#121212, 100-119 d,#121212, |2: 0-0 d,#444444, 1-1 d,#080808, 2-6 #949494,#121212, 7-10 #bdbdbd,#080808, 11-119 d,#080808, |3: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-119 d,#080808, |4: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-119 d,#080808, @@ -223,7 +223,7 @@ |16: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-119 d,#080808, |17: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-119 d,#080808, |18: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-119 d,#080808, -|19: 0-1 #ffffff,#262626, 2-59 #949494,#121212, 60-119 d,#121212, +|19: 0-1 #ffffff,#262626, 2-99 #949494,#121212, 100-119 d,#121212, |20: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-15 #bdbdbd,#080808, 16-119 d,#080808, |21: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-119 d,#080808, |22: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-119 d,#080808, @@ -240,13 +240,13 @@ |33: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-119 d,#080808, |34: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-119 d,#080808, |35: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-119 d,#080808, -|36: 0-1 #ffffff,#262626, 2-42 #949494,#121212, 43-119 d,#121212, +|36: 0-1 #ffffff,#262626, 2-99 #949494,#121212, 100-119 d,#121212, |37: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-119 #080808,#80a0ff, |38: 0-0 d,#444444, 1-1 d,#080808, 2-6 #626262,#080808, 7-31 #bdbdbd,#080808, 32-119 d,#080808, |39: 0-0 d,#121212, 1-1 d,#080808, 2-6 #626262,#080808, 7-22 #bdbdbd,#080808, 23-119 d,#080808, == snap second grid=120x40 cursor=7,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | | @@ -255,7 +255,7 @@ | | | -| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del | 1 gamma body | | @@ -264,7 +264,7 @@ | | | -| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del | 1 beta body | | @@ -281,22 +281,22 @@ | | | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 sub/ZQMARK-beta.txt | 2 sub/nest/zqmark-gamma.txt | 3 zqmark-alpha.txt == snap third grid=120x40 cursor=7,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | | | -| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del +| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del | 1 alpha body | | -| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del | 1 gamma body | | @@ -305,7 +305,7 @@ | | | -| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del | 1 beta body | | @@ -322,22 +322,22 @@ | | | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 sub/ZQMARK-beta.txt | 2 sub/nest/zqmark-gamma.txt | 3 zqmark-alpha.txt == snap back grid=120x40 cursor=7,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | | | -| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del +| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del | 1 alpha body | | -| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del | 1 gamma body | | @@ -346,7 +346,7 @@ | | | -| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del | 1 beta body | | @@ -363,22 +363,22 @@ | | | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 sub/ZQMARK-beta.txt | 2 sub/nest/zqmark-gamma.txt | 3 zqmark-alpha.txt == snap word grid=120x40 cursor=9,5 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | | | Find / -| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del +| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del | 1 alpha body | | -| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del | 1 gamma body | | @@ -387,7 +387,7 @@ | | | -| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del | 1 beta body | | @@ -404,22 +404,22 @@ | | | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 sub/ZQMARK-beta.txt | 2 sub/nest/zqmark-gamma.txt | 3 zqmark-alpha.txt == snap cancel grid=120x40 cursor=7,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | | | -| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del +| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del | 1 alpha body | | -| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del | 1 gamma body | | @@ -428,7 +428,7 @@ | | | -| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del | 1 beta body | | @@ -445,22 +445,22 @@ | | | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 sub/ZQMARK-beta.txt | 2 sub/nest/zqmark-gamma.txt | 3 zqmark-alpha.txt == snap nomatch grid=120x40 cursor=7,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 -| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del +| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del | 1 alpha body | | -| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del | 1 gamma body | | @@ -469,7 +469,7 @@ | | | -| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del | 1 beta body | | @@ -486,22 +486,22 @@ | | | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 sub/ZQMARK-beta.txt | 2 sub/nest/zqmark-gamma.txt | 3 zqmark-alpha.txt == snap refit grid=120x40 cursor=7,2 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 -| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del +| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del | 1 alpha body | | -| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del | 1 gamma body | | @@ -510,7 +510,7 @@ | | | -| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del | 1 beta body | | @@ -527,22 +527,22 @@ | | | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 sub/ZQMARK-beta.txt | 2 sub/nest/zqmark-gamma.txt | 3 zqmark-alpha.txt == snap topbar grid=120x40 cursor=12,7 |New Newcol Find Grep Help Tutor Dump NextColor Debug Kill -| /tmp/pardes-snap/find/cwd/here.txt Save New Del +| /tmp/pardes-snap/find/cwd/here.txt Save New Del | 1 Find | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 -| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del +| /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save New Del | 1 alpha body -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 zqmark-alpha.txt -| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Save New Del | 1 gamma body | | @@ -551,7 +551,7 @@ | | | -| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del +| /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save New Del | 1 beta body | | @@ -568,7 +568,7 @@ | | | -| /tmp/pardes-snap/find/cwd/+Search New Del +| /tmp/pardes-snap/find/cwd/+Search New Del | 1 sub/ZQMARK-beta.txt | 2 sub/nest/zqmark-gamma.txt | 3 zqmark-alpha.txt |
