diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-18 23:10:21 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 01:31:56 -0300 |
| commit | 808efd09c7bbd4ca055463ae95ca4c2f5f474085 (patch) | |
| tree | aa796e157f19ebbab3afcca3cb2e711d82595feb | |
| parent | 250d34c1b942cd6e3726e96f6d80a9cf98d6e20e (diff) | |
| download | pardes-808efd09c7bbd4ca055463ae95ca4c2f5f474085.tar.gz pardes-808efd09c7bbd4ca055463ae95ca4c2f5f474085.zip | |
File: the row after a text's last newline shows ~ where its line number was, as helix's gutter does: the slot the cursor can sit on there is no line yet (File.endSlot: the index's last row, starting at the text's end, never the first row), so the row writer puts `~` under the number's last digit and the gutter never lights it as the cursor's line (helix draws it in ui.linenr, never ui.linenr.selected); a text with no final newline has no such row and an empty text keeps its 1; the slot is found once a paint and each numbered row compares with it (asked of every row it cost body-appends +0.18%: 23,101,945 -> 23,142,809 instructions an operation); 36 tty goldens follow, regenerated and then filtered line by line so that only a number become `~` was kept (75 lines; callstack's and diffview's style rows start a cell later, msg's delta lists row 4 where `~` becomes 2; lspcomplete's and lspcompletemoved's failing rows are the base's still), the macOS drop golden's three rows by reading (not run here); tui core-test 823/964 (141 skipped), shell-test 999/1002, pane-test 183/184, behaviour-test 275/275 (one new: the row after a file's last newline), process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's; winch, headersweep and grep each failed once in a whole run and pass alone: grep's golden pins a search count caught as 0+); gui unit-test 1597/1601 (the four addon tests), its perf check passing; the frame corpus: 5 of 77 frames differ from the base's (57 to 61), each in a glyph-sized box of the gutter where 2 or 3 became ~; pardes-perf's 97 per-operation counts within 0.1% of the base's (the largest terminal on all +0.055%; body-appends -0.04% to -0.06%)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
41 files changed, 122 insertions, 87 deletions
diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 5fcfd378..1b28267e 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +- The row after a file's last newline, where the cursor can sit and no + line is yet, shows `~` in the gutter where its line number was, as + helix's does. - `pardes` has commands, and they describe themselves: `ps`, `attach`, `kill` and `new` for sessions, `do WORD` and `words` for the builtins, `fs ls|read|write|ask|follow|stat|help|complete PATH` for the tree (a diff --git a/core/File.zig b/core/File.zig index 2e5a8306..f85a6f87 100644 --- a/core/File.zig +++ b/core/File.zig @@ -334,6 +334,13 @@ pub fn byteAtRowDisplay(pane: *const Pane, row: i32, from_raw: i32, display_col: return @intCast(byteAtDisplayFrom(line_text, @intCast(@max(0, from_raw)), @intCast(@max(0, display_col)))); } +/// The slot after a text's last newline: a line the cursor can sit on that +/// is not there yet. Its gutter shows `~` for a number, as helix's does. +pub fn endSlot(pane: *const Pane, row: usize) bool { + const f = if (pane.file) |*file| file else return false; + return row > 0 and row + 1 == f.line_starts.len and f.line_starts[row] == f.content.len; +} + pub fn gutterWidth(pane: *const Pane) u16 { if (pane.file == null) return 0; const file = &pane.file.?; @@ -1734,6 +1741,9 @@ fn fillBody(dst: ?[]u8, pane: *Pane, f: *State, width: usize, record_wrap: bool) if (record_wrap) pane.wrap_n = 0; const prefix_width = gutterWidth(pane); const total = nlines(pane.gpa, f); + // The slot after the text's last newline, found once: every numbered + // row below asks whether it is that one. + const end_slot: usize = if (total > 0 and endSlot(pane, total - 1)) total - 1 else std.math.maxInt(usize); var body_line: usize = f.scroll; var body_at: usize = 0; var written: usize = 0; @@ -1773,7 +1783,9 @@ fn fillBody(dst: ?[]u8, pane: *Pane, f: *State, width: usize, record_wrap: bool) if (at == 0 and prefix.len > 0) { var lineno = row + 1; var digit: usize = prefix.len - 1; - while (true) { + if (row == end_slot) { + prefix[digit - 1] = '~'; + } else while (true) { digit -= 1; prefix[digit] = '0' + @as(u8, @intCast(lineno % 10)); lineno /= 10; diff --git a/core/body_layer.zig b/core/body_layer.zig index 101bbe9c..30d5a622 100644 --- a/core/body_layer.zig +++ b/core/body_layer.zig @@ -250,7 +250,8 @@ fn drawGutter(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, tx: u16, tw: const row_line: i32 = if (pane.wrap_n == 0) goff + @as(i32, vr) else if (vr < pane.wrap_n) pane.wrap_line[vr] else std.math.maxInt(i32); - const on_cursor = row_line == cur_line; + // The `~` of the slot past the text is no line's number: never lit. + const on_cursor = row_line == cur_line and row_line >= 0 and !panes.File.endSlot(pane, @intCast(row_line)); var c: u16 = 0; while (c < prefix_width and c < tw) : (c += 1) { const cell = s.at(tx + c, body_y + vr); diff --git a/test/behaviour/panes.zig b/test/behaviour/panes.zig index b42cab76..67155776 100644 --- a/test/behaviour/panes.zig +++ b/test/behaviour/panes.zig @@ -903,3 +903,21 @@ test "panes: a rename colours a source its new name's language names, its text u try std.testing.expect(!std.mem.eql(u8, coloured[y * cols + x], plain[y * cols + x])); try s.expect(s.at("/pane/{d}/body", .{n}), "fn check() void {}\n"); } + +test "panes: the row after a file's last newline has ~ where a line number would be, as helix's has, and a last line with no newline has none after it" { + inline for (.{ .{ "one\ntwo\n", true }, .{ "one\ntwo", false } }) |case| { + var s = try Session.initFile(std.testing.allocator, case[0]); + defer s.deinit(); + const tag_row = (try s.where("/test.txt"))[1]; + var rows = std.mem.splitScalar(u8, try s.screen(), '\n'); + for (0..tag_row + 1) |_| _ = rows.next(); + var firsts: [3][]const u8 = undefined; + for (&firsts) |*first| { + var words = std.mem.tokenizeScalar(u8, rows.next() orelse "", ' '); + first.* = words.next() orelse ""; + } + try std.testing.expectEqualStrings("1", firsts[0]); + try std.testing.expectEqualStrings("2", firsts[1]); + try std.testing.expectEqual(case[1], std.mem.eql(u8, firsts[2], "~")); + } +} diff --git a/test/macos-snapshots/drop.golden b/test/macos-snapshots/drop.golden index 75302bde..eeb9fcf3 100644 --- a/test/macos-snapshots/drop.golden +++ b/test/macos-snapshots/drop.golden @@ -37,7 +37,7 @@ | $ | /private/tmp/pardes-macos-e2e/drop/cwd/one.txt Save Tty Del Collapse | 1 first file -| 2 +| ~ | | | @@ -68,7 +68,7 @@ | $ | /private/tmp/pardes-macos-e2e/drop/cwd/one.txt Save Tty Del Collapse | 1 first file -| 2 +| ~ | | | @@ -81,7 +81,7 @@ | | /private/tmp/pardes-macos-e2e/drop/cwd/two.txt Save Tty Del Collapse | 1 second file -| 2 +| ~ | | | diff --git a/test/snapshots/argv.golden b/test/snapshots/argv.golden index a9354fd0..c88ca476 100644 --- a/test/snapshots/argv.golden +++ b/test/snapshots/argv.golden @@ -32,7 +32,7 @@ | 6 line 6 | 7 line 7 | 8 line 8 -| 9 +| ~ == snap filearg-n3 grid=100x31 cursor=7,3 | Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit | New Term Find Grep Joincol Delcol @@ -45,7 +45,7 @@ | 6 line 6 | 7 line 7 | 8 line 8 -| 9 +| ~ == snap dirarg grid=100x31 cursor=4,5 | Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit | New Term Find Grep Joincol Delcol diff --git a/test/snapshots/badutf.golden b/test/snapshots/badutf.golden index 95b9d754..be23a9b2 100644 --- a/test/snapshots/badutf.golden +++ b/test/snapshots/badutf.golden @@ -6,7 +6,7 @@ | 2 latin-1 caf� tail | 3 truncated �� here | 4 end -| 5 +| ~ == snap hscroll-midglyph grid=50x31 cursor=46,4 | Newcol Joincol Find Grep Help Changelog Tutor Du | New Term Find Grep Joincol Delcol @@ -14,4 +14,4 @@ | ollapse Follow Del | 1 日本語 日本語 日本語 日本語 日本語 tail | 2 -| 3 +| ~ diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index 8bd54096..65fb024c 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -8,7 +8,7 @@ | 4 line 4 | 5 line 5 | 6 line 6 -| 7 +| ~ == snap column-group grid=120x67 cursor=7,10 |9: /tmp/pardes-snap/builtins/cwd/+Help Save Term Collapse Follow Del |10: 1 pardes builtins under SPC c @@ -17,7 +17,7 @@ |13: 4 SPC c f Follow |14: 5 SPC c j Joincol topbar |15: 6 SPC c n Newcol topbar -|16: 7 +|16: ~ == snap docs-group grid=120x67 cursor=7,10 |10: 1 pardes builtins under SPC h |12: 3 SPC h b Build diff --git a/test/snapshots/callstack.golden b/test/snapshots/callstack.golden index bcad1582..2f666c89 100644 --- a/test/snapshots/callstack.golden +++ b/test/snapshots/callstack.golden @@ -22,7 +22,7 @@ | 10 │ let x = add(1, 2); | 11 ╰─ main.rs:5:13-15 | 12 let y = add(3, 4); -| 13 +| ~ == style hierarchy grid=110x40 |0: 0-1 d,#1d2824, 2-109 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-109 #becfc4,#314738, @@ -47,7 +47,7 @@ |20: 0-0 d,#608269, 1-3 d,#0d1410, 4-12 #59675c,#0d1410, 13-15 #92d1de,#0d1410, 16-19 #c9a7ed,#0d1410, 20-23 #e5eee5,#0d1410, 24-26 #f7e4a5,#5e4923, 27-109 #e5eee5,#0d1410, |21: 0-0 d,#608269, 1-3 d,#0d1410, 4-12 #59675c,#0d1410, 13-15 #92d1de,#0d1410, 16-109 #59675c,#0d1410, |22: 0-0 d,#608269, 1-3 d,#0d1410, 4-15 #59675c,#0d1410, 16-19 #c9a7ed,#0d1410, 20-23 #e5eee5,#0d1410, 24-26 #f7e4a5,#5e4923, 27-109 #e5eee5,#0d1410, -|23: 0-0 d,#608269, 1-3 d,#0d1410, 4-109 #59675c,#0d1410, +|23: 0-0 d,#608269, 1-4 d,#0d1410, 5-109 #59675c,#0d1410, |24: 0-0 d,#608269, 1-109 d,#0d1410, |25: 0-0 d,#608269, 1-109 d,#0d1410, |26: 0-0 d,#608269, 1-109 d,#0d1410, diff --git a/test/snapshots/chordcut.golden b/test/snapshots/chordcut.golden index 78e1fd68..e711855a 100644 --- a/test/snapshots/chordcut.golden +++ b/test/snapshots/chordcut.golden @@ -13,7 +13,7 @@ | 3 line 3 | 4 line 4 | 5 line 5 -| 6 +| ~ | | | /tmp/pardes-snap/chordcut/cwd Term+bash Save Mode Filter C @@ -44,7 +44,7 @@ |23: low Del |24: 1 line 1 |25: 2 line 2 -|26: 3 +|26: ~ == style chordsel grid=120x31 |0: 0-1 d,#1d2824, 2-119 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-59 #becfc4,#314738, 60-61 #becfc4,#887455, 62-119 #b2c3b8,#1d2824, @@ -86,7 +86,7 @@ |24: Collapse Follow Delel |25: 1 line 1 /tmp/pardes-snap/chordcut/cwd/g.stty -icanon -echo; printf |26: 2 line 2 '\x1b[?2004h\x1b[?1000h\x1b[?1006h'; cat -vtxt Save Term -|27: 3 Collapse Follow Del Unfollow -|28: 3 +|27: ~ Collapse Follow Del Unfollow +|28: ~ == snap ttyprompt grid=120x31 cursor=24,24 |24: Collapse Follow Delelel diff --git a/test/snapshots/cmdword.golden b/test/snapshots/cmdword.golden index 2a08bb35..44c50036 100644 --- a/test/snapshots/cmdword.golden +++ b/test/snapshots/cmdword.golden @@ -19,7 +19,7 @@ == snap nested grid=120x31 cursor=7,9 |8: /tmp/pardes-snap/cmdword/cwd/ Get Term Collapse Del |9: 1 cmds.txt p.txt zzmark.txt -|10: 2 +|10: ~ == snap execword grid=120x31 cursor=7,9 |8: /tmp/pardes-snap/cmdword/cwd/ Get Term Collapse Del Exec == snap tagcmd grid=120x31 cursor=7,9 diff --git a/test/snapshots/diffview.golden b/test/snapshots/diffview.golden index 929c65b2..50e1b195 100644 --- a/test/snapshots/diffview.golden +++ b/test/snapshots/diffview.golden @@ -21,7 +21,7 @@ | 17 + \\summed | 18 ; | 19 }; -| 20 +| ~ == style diff-colours grid=100x31 |0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-99 #becfc4,#314738, @@ -45,7 +45,7 @@ |19: 0-0 d,#608269, 1-3 d,#0d1410, 4-6 #59675c,#0d1410, 7-7 #b6ce94,#263025,b 8-15 #b6ce94,#263025, 16-99 #b8d88a,#263025, |20: 0-0 d,#608269, 1-3 d,#0d1410, 4-11 #59675c,#0d1410, 12-99 #e5eee5,#0d1410, |21: 0-0 d,#608269, 1-3 d,#0d1410, 4-7 #59675c,#0d1410, 8-99 #e5eee5,#0d1410, -|22: 0-0 d,#608269, 1-3 d,#0d1410, 4-99 #59675c,#0d1410, +|22: 0-0 d,#608269, 1-4 d,#0d1410, 5-99 #59675c,#0d1410, |23: 0-0 d,#608269, 1-99 d,#0d1410, |24: 0-0 d,#608269, 1-99 d,#0d1410, |25: 0-0 d,#608269, 1-99 d,#0d1410, @@ -68,13 +68,13 @@ |26: 10 \\summed |27: 11 ; |28: 12 }; -|29: 13 +|29: ~ == snap command-pane grid=100x31 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/diffview/cwd/cmds.txt Save Term Collapse Follow Del | 1 cat change.diff Exec -| 2 +| ~ | | | diff --git a/test/snapshots/dirpane.golden b/test/snapshots/dirpane.golden index dd7ff9ae..e8cca4f9 100644 --- a/test/snapshots/dirpane.golden +++ b/test/snapshots/dirpane.golden @@ -7,7 +7,7 @@ | /tmp/pardes-snap/dirpane/cwd/sub/ Get Term Collapse Del | 1 .hidden beta-gamma.txt inner.txt | 2 alpha.txt deeper/ zeta -| 3 +| ~ == snap entry-open grid=80x24 cursor=7,9 |8: /tmp/pardes-snap/dirpane/cwd/sub/inner.txt Save Term Collapse Follow Del |9: 1 inner-marker diff --git a/test/snapshots/filewatch.golden b/test/snapshots/filewatch.golden index 0561a070..26ba330d 100644 --- a/test/snapshots/filewatch.golden +++ b/test/snapshots/filewatch.golden @@ -27,12 +27,12 @@ | 6 line 6 | 7 line 7 | 8 line 8 -| 9 +| ~ == snap kept grid=210x31 cursor=15,7 |7: 1 liMYEDITne 1 /tmp/pardes-snap/filewatch/cwd/w.txt changed on disk (get reloads it, Save overwrites it) == snap reloaded_sub grid=210x31 cursor=15,7 |20: 1 RENAMED --:--:-- reloaded /tmp/pardes-snap/filewatch/cwd/sub/s.txt -|21: 2 +|21: ~ |22: |23: |24: diff --git a/test/snapshots/jumps.golden b/test/snapshots/jumps.golden index 8ea6b8b7..6cb8a45f 100644 --- a/test/snapshots/jumps.golden +++ b/test/snapshots/jumps.golden @@ -138,7 +138,7 @@ |19: 2 /tmp/pardes-snap/jumps/cwd/big.txt:1:1 line 1 |20: 3 @p2:3:3 /tmp/pardes-snap/jumps/cwd |21: 4 /tmp/pardes-snap/jumps/cwd/big.txt:100:1 line 100 -|22: 5 +|22: ~ |23: |24: |25: @@ -213,4 +213,4 @@ == snap look-row grid=150x31 cursor=7,23 |22: /tmp/pardes-snap/jumps/cwd/ Get Term Collapse Del |23: 1 big.txt -|24: 2 +|24: ~ diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index 2d6bdf3c..d8e57385 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -16,7 +16,7 @@ |9: 4 SPC h c Changelog topbar |10: 5 SPC h m Messages |11: 6 SPC h t Tutor topbar -|12: 7 +|12: ~ == snap tutor grid=100x41 cursor=7,13 |6: 1 pardes builtins under SPC h Tutor |12: /tmp/pardes-snap/leader/cwd/+Tutor Save Term Collapse Follow Del @@ -93,7 +93,7 @@ |9: 4 SPC c f Follow |10: 5 SPC c j Joincol topbar |11: 6 SPC c n Newcol topbar -|12: 7 +|12: ~ |34: |35: |36: @@ -122,7 +122,7 @@ |24: 19 Callstack: static caller chains, |25: 20 with signatures and clickable call sites. |26: 21 Callers / Callees: one direction at a time. -|27: 22 +|27: ~ == snap del-output grid=100x41 cursor=7,3 |5: |6: diff --git a/test/snapshots/lookpanes.golden b/test/snapshots/lookpanes.golden index 716e7193..e3fbe1ed 100644 --- a/test/snapshots/lookpanes.golden +++ b/test/snapshots/lookpanes.golden @@ -9,13 +9,13 @@ | /tmp/pardes-snap/lookpanes/cwd/alpha/ Get Term Collapse Del | 1 amark.txt pick.txt zqonly.txt | 2 both.txt twin.txt -| 3 +| ~ == snap other-dir grid=130x51 cursor=7,8 |6: /tmp/pardes-snap/lookpanes/cwd/alpha/zqonly.txt Save Term Colla |7: pse Follow Del /tmp/pardes-snap/lookpanes/cwd/alpha/ Get Term Collapse Del |8: 1 ONLY-IN-ALPHA 1 amark.txt pick.txt zqonly.txt == snap clicked-wins grid=130x51 cursor=7,12 -|10: /tmp/pardes-snap/lookpanes/cwd/beta/both.txt Save Term Collapse 3 +|10: /tmp/pardes-snap/lookpanes/cwd/beta/both.txt Save Term Collapse ~ |11: Follow Del |12: 1 BOTH-FROM-BETA == snap mru-alpha grid=130x51 cursor=72,12 diff --git a/test/snapshots/lsp-client-edit.golden b/test/snapshots/lsp-client-edit.golden index d502209d..5911baa4 100644 --- a/test/snapshots/lsp-client-edit.golden +++ b/test/snapshots/lsp-client-edit.golden @@ -10,7 +10,7 @@ | 6 let y = add(3, 4); | 7 let _ = x + y; | 8 } -| 9 +| ~ == snap unformatted grid=100x25 cursor=7,3 |2: /tmp/pardes-snap/lsp-client-edit/cwd/main.rs Save Term Collapse Follow TreeContext Def Refs Del |3: 1 mod lib; @@ -20,7 +20,7 @@ |7: 5 let y = add(3, 4); |8: 6 let _ = x + y; |9: 7 } -|10: 8 +|10: ~ |11: == snap renamed grid=100x25 cursor=12,5 |2: */tmp/pardes-snap/lsp-client-edit/cwd/main.rs Save Term Collapse Follow TreeContext Def Refs Del diff --git a/test/snapshots/lsp-client.golden b/test/snapshots/lsp-client.golden index f6a5da3c..44b16309 100644 --- a/test/snapshots/lsp-client.golden +++ b/test/snapshots/lsp-client.golden @@ -14,7 +14,7 @@ | 2 pub fn add(a: i32, b: i32) -> i32 { | 3 a + b | 4 } -| 5 +| ~ == snap gr-list grid=100x25 cursor=2,16 |3: 1 mod lib; |13: +Search 1/3 Del diff --git a/test/snapshots/lsp-rename-files.golden b/test/snapshots/lsp-rename-files.golden index 3658cc4c..7d984b41 100644 --- a/test/snapshots/lsp-rename-files.golden +++ b/test/snapshots/lsp-rename-files.golden @@ -14,7 +14,7 @@ | 5 let y = add(3, 4); | 6 let _ = x + y; | 7 } -| 8 +| ~ == snap previewed grid=100x25 cursor=14,4 |3: 1 // main.rs Rename: 3 edit(s) across files, previewed, not applied |15: /tmp/pardes-snap/lsp-rename-files/cwd/+Search Save Term Collapse Follow LocationsConfig Del @@ -24,4 +24,4 @@ |19: 4 sum |20: 5 main.rs:5:13-15 |21: 6 sum -|22: 7 +|22: ~ diff --git a/test/snapshots/lsp-rename.golden b/test/snapshots/lsp-rename.golden index 308ac9bf..aa44d7a2 100644 --- a/test/snapshots/lsp-rename.golden +++ b/test/snapshots/lsp-rename.golden @@ -16,7 +16,7 @@ | 12 const helper: u32 = 7; | 13 _ = helper; | 14 } -| 15 +| ~ == snap undone grid=110x25 cursor=17,10 |2: /tmp/pardes-snap/lsp-rename/cwd/rename.zig Save Term Collapse Follow TreeContext Def Refs Del |3: 1 const std = @import("std"); diff --git a/test/snapshots/lsp.golden b/test/snapshots/lsp.golden index 9b8994b0..58452eb8 100644 --- a/test/snapshots/lsp.golden +++ b/test/snapshots/lsp.golden @@ -11,7 +11,7 @@ | 7 pub fn main() void { | 8 _ = helper(41); | 9 } -| 10 +| ~ == snap cursor grid=120x41 cursor=17,10 == snap definition grid=120x41 cursor=15,5 |3: 1 const std = @import("std"); --:--:-- lsp zls ready — /tmp/pardes-snap/lsp/cwd @@ -20,7 +20,7 @@ |12: /tmp/pardes-snap/lsp/cwd/+Hover Save Term Collapse Follow Del |13: 1 fn helper(x: u32) u32 |14: 2 (fn (u32) u32) -|15: 3 +|15: ~ == snap symbols grid=120x41 cursor=15,5 |3: 1 const std = @import("std"); Symbols |15: /tmp/pardes-snap/lsp/cwd/+Search Save Term Collapse Follow LocationsConfig Del @@ -30,7 +30,7 @@ |19: 4 helper |20: 5 a.zig:7:8-11 |21: 6 main -|22: 7 +|22: ~ == snap step grid=120x41 cursor=15,3 |3: 1 const std = @import("std"); == snap nothing grid=120x41 cursor=7,5 diff --git a/test/snapshots/lspcomplete.golden b/test/snapshots/lspcomplete.golden index cd8592fb..48dac907 100644 --- a/test/snapshots/lspcomplete.golden +++ b/test/snapshots/lspcomplete.golden @@ -14,7 +14,7 @@ | 10 } | 11 | 12 // note. see below -| 13 +| ~ == snap indent grid=120x41 cursor=11,12 |2: ^*/tmp/pardes-snap/lspcomplete/cwd/a.zig Save Term Collapse Follow TreeContext Def Refs Del |12: 10 } @@ -28,7 +28,7 @@ |15: /tmp/pardes-snap/lspcomplete/cwd/+Search Save Term Collapse Follow Del |16: 1 a.zig:8:10 verdigris |17: 2 a.zig:8:10 cinnabar -|18: 3 +|18: ~ == snap refill grid=120x41 cursor=16,10 == snap step grid=120x41 cursor=16,10 |2: */tmp/pardes-snap/lspcomplete/cwd/a.zig Save Term Collapse Follow TreeContext Def Refs Del @@ -37,7 +37,7 @@ | New Term Find Grep Joincol Delcol |^*/tmp/pardes-snap/lspcomplete/cwd/notes.txt Save Term Collapse Follow Del | 1 abc. def ghi -| 2 +| ~ == snap nosemi grid=100x19 cursor=29,9 | Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit | New Term Find Grep Joincol Delcol @@ -53,7 +53,7 @@ | /tmp/pardes-snap/lspcomplete/cwd/+Search Save Term Collapse Follow Del | 1 c.zig:7:23 verdigris Shade | 2 c.zig:7:23 cinnabar Shade -| 3 +| ~ == snap nobrace grid=100x19 cursor=16,10 | Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit | New Term Find Grep Joincol Delcol @@ -68,4 +68,4 @@ | /tmp/pardes-snap/lspcomplete/cwd/+Search Save Term Collapse Follow Del | 1 d.zig:8:10 verdigris | 2 d.zig:8:10 cinnabar -| 3 +| ~ diff --git a/test/snapshots/lspcompletemoved.golden b/test/snapshots/lspcompletemoved.golden index 3ff6ddc6..4971ad94 100644 --- a/test/snapshots/lspcompletemoved.golden +++ b/test/snapshots/lspcompletemoved.golden @@ -14,7 +14,7 @@ | 10 } | 11 | 12 // note.x see below -| 13 +| ~ == file buffer const Shade = enum { verdigris, diff --git a/test/snapshots/lspdebug.golden b/test/snapshots/lspdebug.golden index 703d4dbe..b3e2f2a5 100644 --- a/test/snapshots/lspdebug.golden +++ b/test/snapshots/lspdebug.golden @@ -12,7 +12,7 @@ | 8 const v = helper(); | 9 _ = v; | 10 } -| 11 +| ~ == snap ctrlclick grid=120x45 cursor=15,5 |3: 1 const std = @import("std"); --:--:-- lsp zls ready — /tmp/pardes-snap/lspdebug/cwd == snap plainclick grid=120x45 cursor=21,10 diff --git a/test/snapshots/lsprelpath.golden b/test/snapshots/lsprelpath.golden index 0deb8531..36f411ef 100644 --- a/test/snapshots/lsprelpath.golden +++ b/test/snapshots/lsprelpath.golden @@ -9,7 +9,7 @@ | 5 | 6 }; | 7 } -| 8 +| ~ | | | @@ -35,7 +35,7 @@ |28: 2 verdigris, |29: 3 cinnabar, |30: 4 }; -|31: 5 +|31: ~ == style abslook grid=100x35 |0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-99 #becfc4,#314738, @@ -83,7 +83,7 @@ | 5 | 6 }; | 7 } -| 8 +| ~ | | | @@ -110,7 +110,7 @@ |29: 2 ochre, |30: 3 indigo, |31: 4 }; -|32: 5 +|32: ~ == style sublook grid=100x35 |0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-99 #becfc4,#314738, diff --git a/test/snapshots/markup.golden b/test/snapshots/markup.golden index f9976bcf..d4c1cc5b 100644 --- a/test/snapshots/markup.golden +++ b/test/snapshots/markup.golden @@ -10,7 +10,7 @@ | 6 ```zig | 7 fn widget() u8 { return 99; } | 8 ``` -| 9 +| ~ == style typst grid=92x25 |0: 0-1 d,#1d2824, 2-91 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-91 #becfc4,#314738, @@ -48,7 +48,7 @@ | 5 ```zig | 6 fn gadget() u8 { return 77; } | 7 ``` -| 8 +| ~ == style markdown grid=92x25 |0: 0-1 d,#1d2824, 2-91 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-91 #becfc4,#314738, diff --git a/test/snapshots/mini.golden b/test/snapshots/mini.golden index c32397d5..105d329c 100644 --- a/test/snapshots/mini.golden +++ b/test/snapshots/mini.golden @@ -8,7 +8,7 @@ | 1 ⠭⠍⣥⢩⣭⡭⣭⣬⣌⢭⣭⠌⠬⠅⠍⠁ | 2 ⣂⢀⣉⣉⢉⣈⢁⣀⣀⢀⣀⣀⣀⢀⣀⣀⣀⣀⣀ | 3 ⠉⠉⠁⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ -| 4 +| ~ == style opened grid=90x23 |0: 0-1 d,#1d2824, 2-89 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-89 #becfc4,#314738, @@ -55,7 +55,7 @@ |8: 3 ⠉⠉⠁⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ +8: 7="⠉" 8="⠉" 9="⠁" 10="⠉" 11="⠉" 12="⠉" 13="⠈" 14="⠈" 15="⠉" 16="⠉" 17="⠉" 18="⠉" 19="⠉" 20="⠉" @8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-17 #e5eee5,#0d1410,,body 18-19 #f8c082,#0d1410,,body 20-20 #e5eee5,#0d1410,,body 21-89 d,#0d1410,,body -|9: 4 +|9: ~ @9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body |10: @10: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body @@ -94,7 +94,7 @@ | 1 ⠭⠍⣥⢩⣭⡭⣭⣬⣌⢭⣭⠌⠬⠅⠍⠁ | 2 ⣂⢀⣉⣉⢉⣈⢁⣀⣀⢀⣀⣀⣀⢀⣀⣀⣀⣀⣀ | 3 ⠉⠉⠁⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ -| 4 +| ~ == 9p resized grid=105x27 cursor=7,7,block |0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit @0: 0-84 #b2c3b8,#1d2824,,tagline 85-104 d,#1d2824,,tagline @@ -119,7 +119,7 @@ |9: 3 ⠉⠉⠁⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ +9: 7="⠉" 8="⠉" 9="⠁" 10="⠉" 11="⠉" 12="⠉" 13="⠈" 14="⠈" 15="⠉" 16="⠉" 17="⠉" 18="⠉" 19="⠉" 20="⠉" @9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-17 #e5eee5,#0d1410,,body 18-19 #f8c082,#0d1410,,body 20-20 #e5eee5,#0d1410,,body 21-104 d,#0d1410,,body -|10: 4 +|10: ~ @10: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body |11: @11: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body diff --git a/test/snapshots/msg.golden b/test/snapshots/msg.golden index 6b91bbcb..7f83cacf 100644 --- a/test/snapshots/msg.golden +++ b/test/snapshots/msg.golden @@ -8,7 +8,7 @@ | 4 line 4 | 5 line 5 | 6 line 6 -| 7 +| ~ == snap saved grid=70x15 cursor=7,3 |3: 1 line 1 --:--:-- saved /tmp/pardes-snap/msg/cwd/a.txt == snap repainted grid=70x17 cursor=7,3 @@ -21,7 +21,7 @@ | 4 line 4 | 5 line 5 | 6 line 6 -| 7 +| ~ == snap keycleared grid=70x17 cursor=7,4 |3: 1 line 1 == snap saved-again grid=70x17 cursor=7,4 @@ -30,7 +30,7 @@ |3: 1 line 1 == snap reloaded grid=70x17 cursor=7,4 |3: 1 EXTERNAL --:--:-- reloaded /tmp/pardes-snap/msg/cwd/a.txt -|4: 2 +|4: ~ |5: |6: |7: @@ -40,13 +40,14 @@ |3: 1 EXTERNAL Select /EXT == snap prompt-wins grid=70x17 cursor=69,4 |3: 1 AGAIN --:--:-- reloaded /tmp/pardes-snap/msg/cwd/a.txt -|4: 2 Select /EXT +|4: ~ Select /EXT == snap esc grid=70x17 cursor=7,4 |3: 1 AGAIN -|4: 2 +|4: ~ == snap msgbuiltin grid=70x17 cursor=29,5 |2: */tmp/pardes-snap/msg/cwd/a.txt Save Term Collapse Follow Del |3: 1 AGAIN hand-written report +|4: 2 |5: 3 Msg hand-written report == snap msgtail grid=70x17 cursor=32,7 |3: 6789 0123456789 0123456789 0123456789 0123456789 0123456789 THE-END diff --git a/test/snapshots/nested-optout.golden b/test/snapshots/nested-optout.golden index f1da7d69..914c400d 100644 --- a/test/snapshots/nested-optout.golden +++ b/test/snapshots/nested-optout.golden @@ -7,7 +7,7 @@ | /tmp/pardes-snap/nested-optout/cwd/nested.txt Save Term Collapse Follow Del | 1 optout-marker | 2 second-optout-line -| 3 +| ~ | | | @@ -51,4 +51,4 @@ |7: New Term Find Grep Joincol Delcol |8: /tmp/pardes-snap/nested-optout/cwd/innerdir/deeper.txt Save Term Collapse Follow Del |9: 1 deepest-marker -|10: 2 +|10: ~ diff --git a/test/snapshots/nested.golden b/test/snapshots/nested.golden index d80a1585..ec0fcf1f 100644 --- a/test/snapshots/nested.golden +++ b/test/snapshots/nested.golden @@ -7,7 +7,7 @@ | /tmp/pardes-snap/nested/cwd/nested.txt Save Term Collapse Follow Del | 1 hello-from-nested | 2 second-nested-line -| 3 +| ~ | | | @@ -54,7 +54,7 @@ | $ | /tmp/pardes-snap/nested/cwd/nestdir/ Get Term Collapse Del | 1 inside-nested.txt -| 2 +| ~ | | | diff --git a/test/snapshots/ninep.golden b/test/snapshots/ninep.golden index c1406ecd..66a36c9f 100644 --- a/test/snapshots/ninep.golden +++ b/test/snapshots/ninep.golden @@ -8,7 +8,7 @@ | 4 if (ok) return 42; | 5 return 7; | 6 } -| 7 +| ~ == style opened grid=90x15 |0: 0-1 d,#1d2824, 2-89 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-89 #becfc4,#314738, @@ -45,7 +45,7 @@ @7: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-16 #c9a7ed,#0d1410,,body 17-17 #e5eee5,#0d1410,,body 18-18 #f8c082,#0d1410,,body 19-19 #e5eee5,#0d1410,,body 20-89 d,#0d1410,,body |8: 6 } @8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-7 #e5eee5,#0d1410,,body 8-89 d,#0d1410,,body -|9: 7 +|9: ~ @9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body |10: @10: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body @@ -66,7 +66,7 @@ |7: 5 if (ok) return 42; |8: 6 return 7; |9: 7 } -|10: 8 +|10: ~ == 9p edited grid=90x15 cursor=7,4,block |2: */tmp/pardes-snap/ninep/cwd/demo.zig Save Term Collapse Follow TreeContext Def Refs Del @2: 0-0 #000000,#add38a,,tagline 1-1 #000000,#f9cb70,b,tagline 2-28 #becfc4,#314738,,tagline 29-36 #dfbce5,#314738,,tagline 37-87 #becfc4,#314738,,tagline 88-89 d,#314738,,tagline @@ -86,7 +86,7 @@ @8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-16 #c9a7ed,#0d1410,,body 17-17 #e5eee5,#0d1410,,body 18-18 #f8c082,#0d1410,,body 19-19 #e5eee5,#0d1410,,body 20-89 d,#0d1410,,body |9: 7 } @9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-7 #e5eee5,#0d1410,,body 8-89 d,#0d1410,,body -|10: 8 +|10: ~ @10: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-89 d,#0d1410,,body == style edited grid=90x15 |2: 0-0 d,#add38a, 1-1 #000000,#f9cb70,b 2-28 #becfc4,#314738, 29-37 #dfbce5,#314738, 38-89 #becfc4,#314738, @@ -142,7 +142,7 @@ @8: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-10 #e5eee5,#0d1410,,body 11-16 #c9a7ed,#0d1410,,body 17-17 #e5eee5,#0d1410,,body 18-18 #f8c082,#0d1410,,body 19-19 #e5eee5,#0d1410,,body 20-104 d,#0d1410,,body |9: 7 } @9: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-7 #e5eee5,#0d1410,,body 8-104 d,#0d1410,,body -|10: 8 +|10: ~ @10: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body |11: @11: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body @@ -173,5 +173,5 @@ | 5 if (ok) return 42; | 6 return 7; | 7 } -| 8 +| ~ == 9p unchanged grid=105x20 cursor=7,4,block diff --git a/test/snapshots/psearch.golden b/test/snapshots/psearch.golden index 8321acbf..380324d5 100644 --- a/test/snapshots/psearch.golden +++ b/test/snapshots/psearch.golden @@ -33,7 +33,7 @@ |14: 4 x MARK b |15: 5 @p1:6:3-6 |16: 6 x MARK c -|17: 7 +|17: ~ == style results grid=140x31 |0: 0-1 d,#1d2824, 2-139 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-139 #becfc4,#314738, diff --git a/test/snapshots/scrolloff.golden b/test/snapshots/scrolloff.golden index 3b756d44..3482065a 100644 --- a/test/snapshots/scrolloff.golden +++ b/test/snapshots/scrolloff.golden @@ -45,7 +45,7 @@ |12: 38 line 38 |13: 39 line 39 |14: 40 line 40 -|15: 41 +|15: ~ == snap kup grid=210x16 cursor=7,10 |7: 29 line 29 |8: 30 line 30 diff --git a/test/snapshots/selregex.golden b/test/snapshots/selregex.golden index e4cb7dfa..4e456d99 100644 --- a/test/snapshots/selregex.golden +++ b/test/snapshots/selregex.golden @@ -5,7 +5,7 @@ | 1 const one = 1; Select / | 2 const two = 2; | 3 const three = 3; -| 4 +| ~ == snap preview grid=160x25 cursor=159,3 |3: 1 const one = 1; Select /const == style preview grid=160x25 diff --git a/test/snapshots/tagcmd.golden b/test/snapshots/tagcmd.golden index 7ab9d4ce..0b71f106 100644 --- a/test/snapshots/tagcmd.golden +++ b/test/snapshots/tagcmd.golden @@ -8,7 +8,7 @@ | 4 line 4 | 5 line 5 | 6 line 6 -| 7 +| ~ == snap colon grid=100x31 cursor=36,2 == snap word grid=100x31 cursor=40,2 == snap saved grid=100x31 cursor=13,3 diff --git a/test/snapshots/tagpath.golden b/test/snapshots/tagpath.golden index 0732718f..e9a6234f 100644 --- a/test/snapshots/tagpath.golden +++ b/test/snapshots/tagpath.golden @@ -6,7 +6,7 @@ | 2 line 2 | 3 line 3 | 4 line 4 -| 5 +| ~ == snap colon grid=100x31 cursor=37,2 == snap col0 grid=100x31 cursor=2,2 == snap sel-path grid=100x31 cursor=35,2 diff --git a/test/snapshots/themesel.golden b/test/snapshots/themesel.golden index 6c16537b..a1d5e10a 100644 --- a/test/snapshots/themesel.golden +++ b/test/snapshots/themesel.golden @@ -750,7 +750,7 @@ |27: 314 Theme zed_onedark |28: 315 Theme zed_onelight |29: 316 Theme zenburn -|30: 317 +|30: ~ == snap picked grid=100x31 cursor=7,3 |16: 14 line 14 |17: 15 line 15 diff --git a/test/snapshots/ttylook.golden b/test/snapshots/ttylook.golden index 915688f9..49a17f97 100644 --- a/test/snapshots/ttylook.golden +++ b/test/snapshots/ttylook.golden @@ -67,4 +67,4 @@ |23: llow LocationsConfig Del |24: 1 @p1:1:1-2 |25: 2 ls -|26: 3 +|26: ~ diff --git a/test/snapshots/wrap.golden b/test/snapshots/wrap.golden index 996aa1bc..431664ee 100644 --- a/test/snapshots/wrap.golden +++ b/test/snapshots/wrap.golden @@ -10,7 +10,7 @@ | G---------H---------I---------J--------- | 2 second line | 3 third line -| 4 +| ~ == snap clicked grid=48x15 cursor=17,4 == snap logical-j grid=48x15 cursor=17,9 == snap visual-gj grid=48x15 cursor=10,5 @@ -21,7 +21,7 @@ |4: 1 0---------1---------2---------3---- Wrap |5: 2 second line |6: 3 third line -|7: 4 +|7: ~ |8: |9: |10: @@ -33,7 +33,7 @@ |8: G---------H---------I---------J--------- |9: 2 second line |10: 3 third line -|11: 4 +|11: ~ == snap on-wide grid=128x15 cursor=7,3 | Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit | New Term Find Grep Joincol Delcol @@ -42,4 +42,4 @@ | C---------D---------E---------F---------G---------H---------I---------J--------- | 2 second line | 3 third line -| 4 +| ~ diff --git a/test/snapshots/yankpaste.golden b/test/snapshots/yankpaste.golden index 1a61d3d6..6519db3e 100644 --- a/test/snapshots/yankpaste.golden +++ b/test/snapshots/yankpaste.golden @@ -8,12 +8,12 @@ | 4 line 2 | 5 line 4 | 6 line 5 -| 7 +| ~ == snap linewise-above grid=100x31 cursor=13,7 |8: 6 line 2 |9: 7 line 4 |10: 8 line 5 -|11: 9 +|11: ~ == snap charwise-inline grid=100x31 cursor=10,3 |3: 1 liline 1 == snap blankline grid=100x31 cursor=7,5 @@ -23,4 +23,4 @@ |10: 8 line 2 |11: 9 line 4 |12: 10 line 5 -|13: 11 +|13: ~ |
