diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 03:50:26 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 03:56:25 -0300 |
| commit | 3c4b2c99b1a969abad0a530fa99b70b2cb564af3 (patch) | |
| tree | 492d58e0eaa1d9f7abc85f4610313900aa89ff75 /test | |
| parent | 744c4519dc812f2b2a10769965384981249a9c4c (diff) | |
| download | pardes-3c4b2c99b1a969abad0a530fa99b70b2cb564af3.tar.gz pardes-3c4b2c99b1a969abad0a530fa99b70b2cb564af3.zip | |
Query, test/process: the coordinator's two rulings (walk UI M4 item 5): (a) a +Search's +Preview promoted by Enter (Refs, Def, any list whose Enter lands by the preview) that READS (jumps walk) is the list's reader, its walk starting at the list's owner word (SPEC §6.1: a held pane's reader's trail starts `‹@pN`; the +Search is held, a listing), so its later jumps step that pane (Trail.readerOf finds it) where before it was a reading pane with no trail: Query.land sets `Trail.reader(+Search's serial, the row's path, its place)` on a promoted pane that reads with no walk yet; RUN (the test): lsp-client's golden before: gr-opened `/tmp/pardes-snap/lsp-client/cwd/main.rs Keep Save Term ...`; now `‹@p3 › /tmp/pardes-snap/lsp-client/cwd/main.rs Keep ... Refs` / ` Del` (the owner word wraps the tag to two rows, the body a row down, gr-back's N on line 5 as before), regenerated and read (lsp-client-edit unchanged); (b) the owner word stays whole out of rest (UX DESIGN.md D1; SPEC §3.4.3's fold is for the trail's steps): fsearch's nomatch keeps `‹@p1` whole, its older step folded to `·` (`^ ‹@p1 › · › /MARK/ 2/3 › ...`); its C-n step tested nothing (C-n has no job in a text prompt, §7.2: ctrln was typing's frame); it now tests the cursor moving where C-n moves one: M-Enter keeps `/MARK`'s places as a list in the tag (§7.2, D's list picker: `␣ l /MARK/ 1/3`, the three places as rows, the body previewing the first), C-n moves its cursor to the second (`2/3`, `▶ ...g.txt:6:1: MARK b`, the preview at line 6), Enter lands there as a step (`‹@p1 › g.txt:1 › /MARK/ 2/3 › .../g.txt`), n and N walk the list's rows in place (3/3, 2/3); the old case's search word `/MARK/ i/3` is the list's word now (a search word's n/N keep their core tests: Prompt.zig, Trail.zig); regenerated and read: the new snap `list`, ctrln, landed, n, N, nomatch; core-test 1062/1232 (170 skipped), the two cases 0/2 failed after their regeneration (the whole process-test with the tip's gates)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'test')
| -rw-r--r-- | test/process/tty_editing.zig | 5 | ||||
| -rw-r--r-- | test/snapshots/fsearch.golden | 73 | ||||
| -rw-r--r-- | test/snapshots/lsp-client.golden | 22 |
3 files changed, 75 insertions, 25 deletions
diff --git a/test/process/tty_editing.zig b/test/process/tty_editing.zig index 9285ce7d..a5d58906 100644 --- a/test/process/tty_editing.zig +++ b/test/process/tty_editing.zig @@ -707,6 +707,11 @@ fn fsearch(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("typing"); try t.style("typing"); + // M-Enter keeps the places as a list in the tag (SPEC §7.2), whose + // cursor C-n moves to the second (§5.4): Enter lands there. + try t.send("\x1b\r"); + try t.stable(400, 5000); + try t.snap("list"); try t.key("c-n"); try t.stable(400, 5000); try t.snap("ctrln"); diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden index bcd0fcfb..7d0c1efe 100644 --- a/test/snapshots/fsearch.golden +++ b/test/snapshots/fsearch.golden @@ -83,20 +83,65 @@ |28: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269, 91-93 d,#0d1410, 94-96 #59675c,#0d1410, 97-179 #e5eee5,#0d1410, |29: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269, 91-93 d,#0d1410, 94-96 #59675c,#0d1410, 97-179 #e5eee5,#0d1410, |30: 0-1 d,#1d2824, 2-179 #67756e,#1d2824, -== snap ctrln grid=180x31 cursor=145,16 -== snap landed grid=180x31 cursor=100,19 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › /MARK/ 1/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse Follow De -|17: ls l +== snap list grid=180x31 cursor=150,16 +|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep ␣ l /MARK/ 1/3 +|17: ls │ │ Walk Look Split Newcol Grep Edit Copy +|18: g.txt Keep Drop | Find Grep Recent Panes Symbols All Jumplist +|19: ▶ /tmp/pardes-snap/fsearch/cwd/g.txt:2:1: MARK a +|20: /tmp/pardes-snap/fsearch/cwd/g.txt:6:1: MARK b +|21: /tmp/pardes-snap/fsearch/cwd/g.txt:10:1: MARK c +|22: 1 l1 +|23: 2 MARK a +|24: 3 l3 +|25: 4 l4 +|26: 5 l5 +|27: 6 MARK b +|28: 7 l7 +|29: 8 l8 +== snap ctrln grid=180x31 cursor=150,16 +|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep ␣ l /MARK/ 2/3 +|19: /tmp/pardes-snap/fsearch/cwd/g.txt:2:1: MARK a +|20: ▶ /tmp/pardes-snap/fsearch/cwd/g.txt:6:1: MARK b +|22: 2 MARK a +|23: 3 l3 +|24: 4 l4 +|25: 5 l5 +|26: 6 MARK b +|27: 7 l7 +|28: 8 l8 +|29: 9 l9 +== snap landed grid=180x31 cursor=97,22 +|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › g.txt:1 › /MARK/ 2/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse +|17: ls Follow Del +|18: g.txt 2 MARK a +|19: 3 l3 +|20: 4 l4 +|21: 5 l5 +|22: 6 MARK b +|23: 7 l7 +|24: 8 l8 +|25: 9 l9 +|26: 10 MARK c +|27: 11 l11 +|28: 12 l12 +|29: +== snap n grid=180x31 cursor=97,27 +|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › g.txt:1 › /MARK/ 3/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse +|18: g.txt 1 l1 |19: 2 MARK a +|20: 3 l3 +|21: 4 l4 +|22: 5 l5 |23: 6 MARK b +|24: 7 l7 +|25: 8 l8 +|26: 9 l9 |27: 10 MARK c -== snap n grid=180x31 cursor=100,23 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › /MARK/ 2/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse Follow De -|30: · /tmp/pardes-snap/fsearch/cwd/g.txt /MARK/ 2/3 · line 6 2 messages · SPC h m -== snap N grid=180x31 cursor=100,19 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › /MARK/ 1/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse Follow De -|30: · /tmp/pardes-snap/fsearch/cwd/g.txt /MARK/ 1/3 · line 2 3 messages · SPC h m -== snap cancel grid=180x31 cursor=100,19 -== snap nomatch grid=180x31 cursor=158,16 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › /MARK/ 1/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep / zzqq = Look /zzqq/ 0 -|17: ls ⏎ land · M-⏎ as a list · C-r history · esc +|28: 11 l11 +|29: 12 l12 +== snap N grid=180x31 cursor=97,23 +|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ‹@p1 › g.txt:1 › /MARK/ 2/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep Save Term Collapse +== snap cancel grid=180x31 cursor=97,23 +== snap nomatch grid=180x31 cursor=162,16 +|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › · › /MARK/ 2/3 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep / zzqq = Look /zzqq/ +|17: ls 0 ⏎ land · M-⏎ as a list · C-r history · esc diff --git a/test/snapshots/lsp-client.golden b/test/snapshots/lsp-client.golden index f7f663f1..26a7289e 100644 --- a/test/snapshots/lsp-client.golden +++ b/test/snapshots/lsp-client.golden @@ -35,17 +35,17 @@ |15: /tmp/pardes-snap/lsp-client/cwd/+Preview Del |16: 1 |24: /tmp/pardes-snap/lsp-client/cwd/+Search:3 -== snap gr-opened grid=100x25 cursor=21,19 +== snap gr-opened grid=100x25 cursor=21,20 |6: +Search 2/3 Save Undock Del -|15: /tmp/pardes-snap/lsp-client/cwd/main.rs Keep Save Term Collapse Follow TreeContext Def Refs Del -|16: 1 mod lib; -|17: 2 -|18: 3 fn main() { -|19: 4 let x = add(1, 2); -|20: 5 let y = add(3, 4); -|21: 6 let _ = x + y; -|22: 7 } -|23: ~ +|15: ‹@p3 › /tmp/pardes-snap/lsp-client/cwd/main.rs Keep Save Term Collapse Follow TreeContext Def Refs +|16: Del +|17: 1 mod lib; +|18: 2 +|19: 3 fn main() { +|20: 4 let x = add(1, 2); +|21: 5 let y = add(3, 4); +|22: 6 let _ = x + y; +|23: 7 } |24: /tmp/pardes-snap/lsp-client/cwd/main.rs:4 -== snap gr-back grid=100x25 cursor=21,20 +== snap gr-back grid=100x25 cursor=21,21 |24: /tmp/pardes-snap/lsp-client/cwd/main.rs:5 |
