diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 04:58:53 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 05:18:54 -0300 |
| commit | 920aaa6e6c2317aa775937b01f727fa9418b7db2 (patch) | |
| tree | 1cb02617ddfbe59712717e9ecb60ad766bf743ee /test | |
| parent | 3c4b2c99b1a969abad0a530fa99b70b2cb564af3 (diff) | |
| download | pardes-920aaa6e6c2317aa775937b01f727fa9418b7db2.tar.gz pardes-920aaa6e6c2317aa775937b01f727fa9418b7db2.zip | |
tagline, Trail, Core, layout: the tag out of rest is the owner's word, the newest step's and the head, nothing else (walk UI polish P1, UX DESIGN.md D1, the coordinator's R1-CORRECTED: the user's "why the tagline is still showing the regular tagline text?"): out of rest the path, Keep, the forward steps, the progress and the tag's own words were drawn before the head, so the key cells and the band's spines hung 40-50 columns in (shot 02's spines at column 50) and a picker's tag named the PREVIEWED file as the pane's own (shot 04: `/tmp/.../core/Store.zig ␣ f Find re 2/3`); now `‹@p1 › rank.zig:20 › ␣ ▸ b buffer…`, the head from the tag's first text column when there is no walk (`␣ f Find re`), the spines at columns 2-4; THE CHANGE: Trail.Part `.newest` writes the owner's word and the newest back step's alone, each with ` › `, a word past 24 cells cut in its middle with `…` (D1 item 4), and `stepAt(.newest)` maps a Look or Exec on any of its cells to that step; tagline.pathPrefix returns it while Trail.outOfRest (the live view's host is the pane: asking is rest and keeps its path), the old body now `restPath`; `restPrefix`, the prefix as at rest whatever the state, is what Core.sync measures `tag_lead` by (the tag's cursor and selections are offsets in its text at rest: a head over its own text moves none of them; on the shown prefix they were shifted by the path's length and back, and `| in a tag pipes the tag's own text` piped 4 wrong bytes) and what layout.wantedTagRows counts the rest rows with (a tag out of rest keeps them at least); the heads no longer lead with a space (TagState's Help/Keys/Rename/level, Pick.head, Prompt.head: the out-of-rest prefix ends in its own ` › `); no name tint, forward-step ink, unlit search word or progress out of rest (draw.zig tagTintRange, paintPaneTag; Prompt.unlit); tagline.onName and forwardSpan are off out of rest; `Trail.folded` is gone (it only told out of rest, now `.newest`: at rest it is `shown_steps`), `nameAt` takes no Pardes; TEST FIRST: Trail.zig "Enter on a word of the walk ...": out of rest `‹@pN › rank.zig:20 › ␣ ▸ ` with no older step, no directory, no Keep (on the base `‹@pN › · › rank.zig:20 › <dir>/rank.zig`: fails), a step back hides its forward step out of rest, Look maps the newest word and the owner's to their steps, and the tag at rest byte-identical after Esc; Pick.zig's reader test: the picker's head starts the tag's text (`␣ f Find pick 1/1`), no previewed path; the heads' other tests drop their leading space; test/behaviour keys.zig's prompt case reads the tag file out of rest as the head alone (`s zq`, no `/test.txt`); behaviour-test 277/277; core-test 1062/1232 (170 skipped); process-test: 8 goldens regenerated and read, each changed row the out-of-rest tag with no path (leader, pipe, msg, selregex, find, fsearch, lsp, ttyhelp: the band's spines at columns 2-4, the steps right of them, the rows no longer pushed onto a second tag row; msg's `s EXT` head and fsearch's `/` head still wrap their hints mid-word: D3's); a user meets it in every state out of rest
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/behaviour/keys.zig | 5 | ||||
| -rw-r--r-- | test/snapshots/find.golden | 84 | ||||
| -rw-r--r-- | test/snapshots/fsearch.golden | 42 | ||||
| -rw-r--r-- | test/snapshots/leader.golden | 22 | ||||
| -rw-r--r-- | test/snapshots/lsp.golden | 51 | ||||
| -rw-r--r-- | test/snapshots/msg.golden | 8 | ||||
| -rw-r--r-- | test/snapshots/pipe.golden | 4 | ||||
| -rw-r--r-- | test/snapshots/selregex.golden | 16 | ||||
| -rw-r--r-- | test/snapshots/ttyhelp.golden | 4 |
9 files changed, 113 insertions, 123 deletions
diff --git a/test/behaviour/keys.zig b/test/behaviour/keys.zig index 6a62ccd7..65c52ee7 100644 --- a/test/behaviour/keys.zig +++ b/test/behaviour/keys.zig @@ -25,11 +25,12 @@ test "keys: a prompt's entry and cancellation leave the tag, the body and its cu try s.write(dot, "6 6"); try s.keys(case.keys); // The answer is typed into the tag's head (walk UI), shown in place - // of the tag's own text, which it never touches. + // of the tag's own text, which it never touches; out of rest the + // path is hidden too (UX D1): the head starts the tag. try s.keys("zq"); _ = try s.where(case.shown); const head = try s.read(tag); - try std.testing.expect(std.mem.startsWith(u8, head, "/test.txt") and std.mem.startsWith(u8, head["/test.txt".len..], case.shown)); + try std.testing.expect(std.mem.startsWith(u8, head, case.shown[1..])); try s.keys("\x1b"); try std.testing.expectError(error.NotOnScreen, s.where(case.shown)); try std.testing.expect(std.mem.endsWith(u8, try s.read(s.at("/pane/{d}/ctl", .{n})), " mode:normal ")); diff --git a/test/snapshots/find.golden b/test/snapshots/find.golden index b461c1d8..8cef240d 100644 --- a/test/snapshots/find.golden +++ b/test/snapshots/find.golden @@ -1,8 +1,7 @@ -== snap group grid=120x41 cursor=7,4 +== snap group grid=120x41 cursor=7,3 | Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit | New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/find/cwd/here.txt Keep ␣ f ▸ c Config f Find g Grep h History n New r Recent s Save ↓ unroll -| · ? help +| ␣ f ▸ c Config f Find g Grep h History n New r Recent s Save ↓ unroll · ? help | 1 Find zqm | | @@ -39,35 +38,31 @@ | | | +| | /tmp/pardes-snap/find/cwd/here.txt:1 -== snap armed grid=120x41 cursor=51,2 -|2: ^ /tmp/pardes-snap/find/cwd/here.txt Keep ␣ f Find 1/5 -|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Symbol -|4: s All Jumplist -|5: ▶ here.txt -|6: other.txt -|7: sub/ZQMARK-beta.txt -|8: sub/nest/zqmark-gamma.txt -|9: zqmark-alpha.txt -|10: 1 Find zqm +== snap armed grid=120x41 cursor=11,2 +|2: ^ ␣ f Find 1/5 +|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Symbols All Jumplist +|4: │ │ ▶ here.txt +|5: │ │ other.txt +|6: │ │ sub/ZQMARK-beta.txt +|7: │ │ sub/nest/zqmark-gamma.txt +|8: │ │ zqmark-alpha.txt +|9: 1 Find zqm |40: ✓ /tmp/pardes-snap/find/cwd/here.txt Find 1 message · SPC h m -== snap typing grid=120x41 cursor=57,2 -|2: ^ /tmp/pardes-snap/find/cwd/zqmark-alpha.txt ␣ f Find zqm 1/3 -|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Sym -|4: bols All Jumplist -|5: ▶ zqmark-alpha.txt -|6: sub/ZQMARK-beta.txt -|7: sub/nest/zqmark-gamma.txt -|8: -|9: -|10: 1 alpha body -== snap next grid=120x41 cursor=60,2 -|2: ^ /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt ␣ f Find zqm 2/3 -|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes -|4: Symbols All Jumplist -|5: zqmark-alpha.txt -|6: ▶ sub/ZQMARK-beta.txt -|10: 1 beta body +== snap typing grid=120x41 cursor=14,2 +|2: ^ ␣ f Find zqm 1/3 +|4: │ │ ▶ zqmark-alpha.txt +|5: │ │ sub/ZQMARK-beta.txt +|6: │ │ sub/nest/zqmark-gamma.txt +|7: │ │ +|8: │ │ +|9: 1 alpha body +== snap next grid=120x41 cursor=14,2 +|2: ^ ␣ f Find zqm 2/3 +|4: │ │ zqmark-alpha.txt +|5: │ │ ▶ sub/ZQMARK-beta.txt +|9: 1 beta body == snap promoted grid=120x41 cursor=7,3 |2: here.txt:1 › Find zqm 2/3 › /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Keep Save Term Collapse Follow Del |3: 1 beta body @@ -75,24 +70,25 @@ |5: |6: |7: -|10: -== snap nomatch grid=120x41 cursor=85,2 -|2: ^ · › Find zqm 2/3 › /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Keep ␣ f Find zzqq 0/0 -|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep D -|4: rop | Grep Recent Panes Symbols All Jumplist -|5: nothing matches -|7: 1 beta body +|8: +|9: +== snap nomatch grid=120x41 cursor=30,2 +|2: ^ Find zqm 2/3 › ␣ f Find zzqq 0/0 +|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Symbols All Jumplist +|4: │ │ nothing matches +|5: │ │ +|6: 1 beta body |40: ✓ /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Find 2 messages · SPC h m == snap cancel grid=120x41 cursor=7,3 |2: here.txt:1 › Find zqm 2/3 › /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Keep Save Term Collapse Follow Del |3: 1 beta body |4: |5: -|7: -== snap topbar grid=120x41 cursor=84,2 -|2: ^ · › Find zqm 2/3 › /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Keep ␣ f Find bod 0/0 -|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep D -|4: rop | Grep Recent Panes Symbols All Jumplist -|5: nothing matches -|7: 1 beta body +|6: +== snap topbar grid=120x41 cursor=29,2 +|2: ^ Find zqm 2/3 › ␣ f Find bod 0/0 +|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Symbols All Jumplist +|4: │ │ nothing matches +|5: │ │ +|6: 1 beta body |40: ✓ /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Find ×2 2 messages · SPC h m diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden index 7d0c1efe..450ea298 100644 --- a/test/snapshots/fsearch.golden +++ b/test/snapshots/fsearch.golden @@ -30,27 +30,23 @@ | 12 l12 | | · @p1 a copy of the terminal's text: Tab or B2 runs it; what the program draws next replaces it (Ctrl-b types to the program) 1 message · SPC h m -== snap slash grid=180x31 cursor=141,16 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep / ⏎ land · M-⏎ as a list · C-r history -|17: ls · esc +== snap slash grid=180x31 cursor=101,16 +|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › / ⏎ land · M-⏎ as a list · C-r history · esc +== snap typing grid=180x31 cursor=105,16 +|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › / MARK = Look /MARK/ 1/3 · 3 lines ⏎ land · M-⏎ as a list · C-r history · es +|17: ls c |18: g.txt 1 l1 -|19: 2 MARK a +|19: 2▸MARK a |20: 3 l3 |21: 4 l4 |22: 5 l5 -|23: 6 MARK b +|23: 6▪MARK b |24: 7 l7 |25: 8 l8 |26: 9 l9 -|27: 10 MARK c +|27: 10▪MARK c |28: 11 l11 |29: 12 l12 -== snap typing grid=180x31 cursor=145,16 -|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › /tmp/pardes-snap/fsearch/cwd/g.txt Keep / MARK = Look /MARK/ 1/3 · 3 lines ⏎ -|17: ls land · M-⏎ as a list · C-r history · esc -|19: 2▸MARK a -|23: 6▪MARK b -|27: 10▪MARK c == style typing grid=180x31 |0: 0-1 d,#1d2824, 2-179 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-89 #b2c3b8,#1d2824, 90-91 #b2c3b8,#887455, 92-179 #becfc4,#314738, @@ -68,8 +64,8 @@ |13: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269,f 91-179 d,#0d1410,f |14: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269,f 91-179 d,#0d1410,f |15: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269,f 91-179 d,#0d1410,f -|16: 0-1 d,#496656,f 2-30 #b2c3b8,#1d2824,f 31-40 #d3b0d9,#1d2824,f 41-89 #b2c3b8,#1d2824,f 90-91 #000000,#add38a, 92-127 #becfc4,#2c2819, 128-133 #dfbce5,#2c2819, 134-138 #becfc4,#2c2819, 139-139 #add38a,#2c2819,b 140-140 #add38a,#2c2819, 141-144 #becfc4,#2c2819, 145-152 #becfc4,#2c2819,f 153-178 #becfc4,#2c2819, 179-179 #becfc4,#2c2819,f -|17: 0-0 d,#608269,f 1-1 d,#0d1410,f 2-89 #e5eee5,#0d1410,f 90-91 #e5eee5,#2c2819, 92-92 #e5eee5,#2c2819,f 93-132 #becfc4,#2c2819,f 133-179 #becfc4,#2c2819, +|16: 0-1 d,#496656,f 2-30 #b2c3b8,#1d2824,f 31-40 #d3b0d9,#1d2824,f 41-89 #b2c3b8,#1d2824,f 90-91 #000000,#add38a, 92-98 #becfc4,#2c2819, 99-99 #add38a,#2c2819,b 100-100 #add38a,#2c2819, 101-104 #becfc4,#2c2819, 105-112 #becfc4,#2c2819,f 113-138 #becfc4,#2c2819, 139-179 #becfc4,#2c2819,f +|17: 0-0 d,#608269,f 1-1 d,#0d1410,f 2-89 #e5eee5,#0d1410,f 90-91 #e5eee5,#2c2819, 92-92 #becfc4,#2c2819,f 93-179 #becfc4,#2c2819, |18: 0-0 d,#608269,f 1-1 d,#0d1410,f 2-89 #e5eee5,#0d1410,f 90-90 #e5eee5,#e5eee5, 91-94 #e5eee5,#0d1410, 95-96 #59675c,#0d1410, 97-179 #e5eee5,#0d1410, |19: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269, 91-91 d,#0d1410, 92-94 d,#0d1410,b 95-95 #616f64,#0d1410,b 96-96 #add38a,#0d1410,b 97-100 #f5f7ee,#3c614a, 101-101 #f5f7ee,#0d1410, 102-179 #e5eee5,#0d1410, |20: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269, 91-94 d,#0d1410, 95-96 #59675c,#0d1410, 97-179 #e5eee5,#0d1410, @@ -83,10 +79,10 @@ |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 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 +== snap list grid=180x31 cursor=110,16 +|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › ␣ l /MARK/ 1/3 +|17: ls │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Find Grep Recent Panes Symb +|18: g.txt ols 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 @@ -98,8 +94,8 @@ |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 +== snap ctrln grid=180x31 cursor=110,16 +|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › ␣ 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 @@ -142,6 +138,6 @@ == 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 +== snap nomatch grid=180x31 cursor=118,16 +|16: /tmp/pardes-snap/fsearch/cwd Term+bash Save Mode Filter Collapse Del ^ ‹@p1 › /MARK/ 2/3 › / zzqq = Look /zzqq/ 0 ⏎ land · M-⏎ as a list · C-r history · e +|17: ls sc diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index c6a5460e..b93030e8 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -1,9 +1,9 @@ == snap spc grid=100x41 cursor=7,5 | Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit | New Term Find Grep Joincol Delcol -| /tmp/pardes-snap/leader/cwd/cmds.txt Keep ␣ ▸ b buffer… c column… f file… h help… j jump… l l -| sp… n new… s session… t view… ' Resume / All ? Help d Del e Message p ClipPaste P ClipPa -| steBefore q Exit R ClipReplace w Window y ClipYank Y ClipYankMain ↓ unroll · ? help +| ␣ ▸ b buffer… c column… f file… h help… j jump… l lsp… n new… s session… t view… ' Resume +| / All ? Help d Del e Message p ClipPaste P ClipPasteBefore q Exit R ClipReplace w Window +| y ClipYank Y ClipYankMain ↓ unroll · ? help | 1 Help Help h Help t Help c Help l | | @@ -40,19 +40,17 @@ | | | /tmp/pardes-snap/leader/cwd/cmds.txt:1 -== snap spc-h grid=100x41 cursor=7,4 -|2: /tmp/pardes-snap/leader/cwd/cmds.txt Keep ␣ h ▸ b Build c Changelog k Keys m Messages t Tutor -|3: ↓ unroll · ? help -|4: 1 Help Help h Help t Help c Help l +== snap spc-h grid=100x41 cursor=7,3 +|2: ␣ h ▸ b Build c Changelog k Keys m Messages t Tutor ↓ unroll · ? help +|3: 1 Help Help h Help t Help c Help l +|4: |5: == snap abandoned grid=100x41 cursor=7,3 |2: /tmp/pardes-snap/leader/cwd/cmds.txt Keep Save Term Collapse Follow Del -|3: 1 Help Help h Help t Help c Help l -|4: == snap unmapped grid=100x41 cursor=7,5 -|2: /tmp/pardes-snap/leader/cwd/cmds.txt Keep ␣ ▸ b buffer… c column… f file… h help… j jump… l l -|3: sp… n new… s session… t view… ' Resume / All ? Help d Del e Message p ClipPaste P ClipPa -|4: steBefore q Exit R ClipReplace w Window y ClipYank Y ClipYankMain x ↓ unroll · ? help +|2: ␣ ▸ b buffer… c column… f file… h help… j jump… l lsp… n new… s session… t view… ' Resume +|3: / All ? Help d Del e Message p ClipPaste P ClipPasteBefore q Exit R ClipReplace w Window +|4: y ClipYank Y ClipYankMain x ↓ unroll · ? help |5: 1 Help Help h Help t Help c Help l == snap help-group grid=100x41 cursor=7,6 |2: /tmp/pardes-snap/leader/cwd/cmds.txt Keep Save Term Collapse Follow Del diff --git a/test/snapshots/lsp.golden b/test/snapshots/lsp.golden index 6a53098e..445c5d4b 100644 --- a/test/snapshots/lsp.golden +++ b/test/snapshots/lsp.golden @@ -56,30 +56,29 @@ |13: 9 } |14: ~ |40: ✓ /tmp/pardes-snap/lsp/cwd/a.zig Hover 1 message · SPC h m -== snap symbols grid=120x41 cursor=60,2 -|2: ^ a.zig:8 › /tmp/pardes-snap/lsp/cwd/a.zig Keep ␣ l Symbols 1/3 -|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Find Grep Recent P -|4: anes Symbols All Jumplist -|5: ▶ a.zig:1:7-9 std -|6: a.zig:3:4-9 helper -|7: a.zig:7:8-11 main -|8: 1 const std = @import("std"); -|9: 2 -|10: 3 fn helper(x: u32) u32 { -|11: fn helper(x: u32) u32 -|12: (fn (u32) u32) -|13: 4 return x + 1; -|14: 5 } -|15: 6 -|16: 7 pub fn main() void { -|17: 8 _ = helper(41); -|18: 9 } -|19: ~ +== snap symbols grid=120x41 cursor=24,2 +|2: ^ a.zig:8 › ␣ l Symbols 1/3 +|3: │ │ Walk Look Split Newcol Grep Edit Copy Keep Drop | Find Grep Recent Panes Symbols All Jumplist +|4: │ │ ▶ a.zig:1:7-9 std +|5: │ │ a.zig:3:4-9 helper +|6: │ │ a.zig:7:8-11 main +|7: 1 const std = @import("std"); +|8: 2 +|9: 3 fn helper(x: u32) u32 { +|10: fn helper(x: u32) u32 +|11: (fn (u32) u32) +|12: 4 return x + 1; +|13: 5 } +|14: 6 +|15: 7 pub fn main() void { +|16: 8 _ = helper(41); +|17: 9 } +|18: ~ |40: ✓ /tmp/pardes-snap/lsp/cwd/a.zig Symbols 2 messages · SPC h m -== snap step grid=120x41 cursor=63,2 -|2: ^ a.zig:8 › /tmp/pardes-snap/lsp/cwd/a.zig Keep ␣ l Symbols jn 0/0 -|5: nothing matches -|6: -|7: -== snap nothing grid=120x41 cursor=65,2 -|2: ^ a.zig:8 › /tmp/pardes-snap/lsp/cwd/a.zig Keep ␣ l Symbols jngd 0/0 +== snap step grid=120x41 cursor=27,2 +|2: ^ a.zig:8 › ␣ l Symbols jn 0/0 +|4: │ │ nothing matches +|5: │ │ +|6: │ │ +== snap nothing grid=120x41 cursor=29,2 +|2: ^ a.zig:8 › ␣ l Symbols jngd 0/0 diff --git a/test/snapshots/msg.golden b/test/snapshots/msg.golden index a53cb8d3..7e622261 100644 --- a/test/snapshots/msg.golden +++ b/test/snapshots/msg.golden @@ -47,12 +47,12 @@ |8: |9: |16: · reloaded /tmp/pardes-snap/msg/cwd/a.txt 5 messages · SPC h m -== snap prompt grid=70x17 cursor=43,2 -|2: ^ /tmp/pardes-snap/msg/cwd/a.txt Keep s EXT = Exec Edit x/EXT/ 0 -|3: ⏎ select · M-⏎ as a list · C-r history · esc +== snap prompt grid=70x17 cursor=7,2 +|2: ^ s EXT = Exec Edit x/EXT/ 0 ⏎ select · M-⏎ as a list · C-r histo +|3: ry · esc |4: 1 EXTERNAL |5: ~ -== snap prompt-wins grid=70x17 cursor=43,2 +== snap prompt-wins grid=70x17 cursor=7,2 |4: 1 AGAIN |16: · reloaded /tmp/pardes-snap/msg/cwd/a.txt ×2 5 messages · SPC h m == snap esc grid=70x17 cursor=7,4 diff --git a/test/snapshots/pipe.golden b/test/snapshots/pipe.golden index faa16bc3..a8d2aa31 100644 --- a/test/snapshots/pipe.golden +++ b/test/snapshots/pipe.golden @@ -1,7 +1,7 @@ -== snap prompt grid=180x13 cursor=54,2 +== snap prompt grid=180x13 cursor=14,2 | Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit | New Term Find Grep Joincol Delcol -|^ /tmp/pardes-snap/pipe/cwd/pipe.txt Keep | tr a-z A-Z = Exec Edit |tr a-z A-Z 1 line → 1 · exit 0 ⏎ replace · C-r history · esc +|^ | tr a-z A-Z = Exec Edit |tr a-z A-Z 1 line → 1 · exit 0 ⏎ replace · C-r history · esc | 1 alpha beta | ALPHA BETA | 2 gamma delta diff --git a/test/snapshots/selregex.golden b/test/snapshots/selregex.golden index 0cf3abed..df68f85a 100644 --- a/test/snapshots/selregex.golden +++ b/test/snapshots/selregex.golden @@ -1,7 +1,7 @@ -== snap prompt-armed grid=160x25 cursor=45,2 +== snap prompt-armed grid=160x25 cursor=4,2 | Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit | New Term Find Grep Joincol Delcol -|^ /tmp/pardes-snap/selregex/cwd/m.zig Keep s ⏎ select · M-⏎ as a list · C-r history · esc +|^ s ⏎ select · M-⏎ as a list · C-r history · esc | 1┃const one = 1; | 2┃const two = 2; | 3┃const three = 3; @@ -24,13 +24,13 @@ | | | /tmp/pardes-snap/selregex/cwd/m.zig:3 -== snap preview grid=160x25 cursor=50,2 -|2: ^ /tmp/pardes-snap/selregex/cwd/m.zig Keep s const = Exec Edit x/const/ 3 selections in 3 lines ⏎ select · M-⏎ as a list · C-r history · esc +== snap preview grid=160x25 cursor=9,2 +|2: ^ s const = Exec Edit x/const/ 3 selections in 3 lines ⏎ select · M-⏎ as a list · C-r history · esc |24: /tmp/pardes-snap/selregex/cwd/m.zig:1 == style preview grid=160x25 |0: 0-1 d,#1d2824, 2-159 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-159 #becfc4,#314738, -|2: 0-1 #000000,#add38a, 2-31 #becfc4,#2c2819, 32-37 #dfbce5,#2c2819, 38-42 #becfc4,#2c2819, 43-43 #add38a,#2c2819,b 44-44 #add38a,#2c2819, 45-49 #becfc4,#2c2819, 50-57 #becfc4,#2c2819,f 58-100 #becfc4,#2c2819, 101-144 #becfc4,#2c2819,f 145-159 #becfc4,#2c2819, +|2: 0-1 #000000,#add38a, 2-2 #add38a,#2c2819,b 3-3 #add38a,#2c2819, 4-8 #becfc4,#2c2819, 9-16 #becfc4,#2c2819,f 17-59 #becfc4,#2c2819, 60-103 #becfc4,#2c2819,f 104-159 #becfc4,#2c2819, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-5 #616f64,#0d1410,b 6-6 #add38a,#0d1410,b 7-10 #f5f7ee,#3c614a, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #f5f7ee,#243a2d, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #f5f7ee,#243a2d, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-20 #e5eee5,#0d1410, 21-21 #f8c082,#0d1410, 22-159 #e5eee5,#0d1410, @@ -63,13 +63,13 @@ |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #f5f7ee,#3c614a, 12-12 #f5f7ee,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #f5f7ee,#243a2d, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #f5f7ee,#243a2d, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-20 #e5eee5,#0d1410, 21-21 #f8c082,#0d1410, 22-159 #e5eee5,#0d1410, -== snap narrowed grid=160x25 cursor=62,2 -|2: ^ Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Keep s t = Exec Edit x/t/ 3 selections in 3 lines ⏎ select · M-⏎ as a list · C-r history · esc +== snap narrowed grid=160x25 cursor=21,2 +|2: ^ Edit x/const/ › s t = Exec Edit x/t/ 3 selections in 3 lines ⏎ select · M-⏎ as a list · C-r history · esc |3: 1┃const one = 1; |4: 2┃const two = 2; |5: 3┃const three = 3; == style narrowed grid=160x25 -|2: 0-1 #000000,#add38a, 2-47 #becfc4,#2c2819, 48-53 #dfbce5,#2c2819, 54-58 #becfc4,#2c2819, 59-59 #add38a,#2c2819,b 60-60 #add38a,#2c2819, 61-61 #becfc4,#2c2819, 62-69 #becfc4,#2c2819,f 70-108 #becfc4,#2c2819, 109-152 #becfc4,#2c2819,f 153-159 #becfc4,#2c2819, +|2: 0-1 #000000,#add38a, 2-17 #becfc4,#2c2819, 18-18 #add38a,#2c2819,b 19-19 #add38a,#2c2819, 20-20 #becfc4,#2c2819, 21-28 #becfc4,#2c2819,f 29-67 #becfc4,#2c2819, 68-111 #becfc4,#2c2819,f 112-159 #becfc4,#2c2819, |3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-5 #616f64,#0d1410,b 6-6 #add38a,#0d1410,b 7-10 #e5eee5,#0d1410, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, |4: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #e5eee5,#0d1410, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-159 #e5eee5,#0d1410, |5: 0-0 d,#608269, 1-4 d,#0d1410, 5-5 #59675c,#0d1410, 6-6 #add38a,#0d1410, 7-10 #e5eee5,#0d1410, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-20 #e5eee5,#0d1410, 21-21 #f8c082,#0d1410, 22-159 #e5eee5,#0d1410, diff --git a/test/snapshots/ttyhelp.golden b/test/snapshots/ttyhelp.golden index 200aab50..3eb84714 100644 --- a/test/snapshots/ttyhelp.golden +++ b/test/snapshots/ttyhelp.golden @@ -48,8 +48,8 @@ |19: shell (`Help Diff`); a setting or an addon's word the same. `Help <keys>`: the builtins unde↩ |20: r SPC and those keys (`Help l`, as `SPC l ?` shows them). Each fills the one +Help: a second |30: ✓ @p1 Help 1 message · SPC h m -== snap leaderworks grid=100x31 cursor=47,5 -|5: ^ /tmp/pardes-snap/ttyhelp/cwd/+Help Help tutor 1/136 +== snap leaderworks grid=100x31 cursor=12,5 +|5: ^ Help tutor 1/136 |6: ▶ SPC h t · Tutor · help│ t Tutor |7: │ Open the tutor, a document to work through. |8: │ keys SPC h t |
