From 89fb37907f34c0a55b85da44ea8f016b3e41081d Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 25 Nov 2026 14:16:47 -0300 Subject: Messages: a message's cause longer than its word's room (Said.src, 96 bytes) keeps the path's END, `…` first, so the file's name is whole: causeWord set the path and Buf.set kept its first 96 bytes, so a file whose path is 97 bytes or more was named by a cut-off word on the notice row (S2 08b at 16 px: `…/core/Query.zi the build …`, the `g` lost, a Look on it a file that is not there); the notice row's "its words name it already" check reads a cut cause by what it kept, so `saved PATH` still leaves it out; no layout change (src stays 96 bytes); TEST FIRST: Messages "a cause longer than its word's room keeps the path's end ..." (fails on the base at Messages.zig:1694, the cause not starting with `…`); a user hits it with any message about a pane whose path is 97 bytes or longer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE --- core/Messages.zig | 43 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) (limited to 'core/Messages.zig') diff --git a/core/Messages.zig b/core/Messages.zig index 72d5193d..90194e30 100644 --- a/core/Messages.zig +++ b/core/Messages.zig @@ -297,8 +297,16 @@ pub fn say(p: *Pardes, kind: Kind, id: usize, text: []const u8) *Said { /// A pane as a message names its cause: a file's path (a kind's too), else /// `@pN` and the command it runs. fn causeWord(pane: *const Pane, out: *Buf(96)) void { - if (pane.file) |f| return out.set(f.path); - if (pane.addon) |k| if (k.path.len > 0) return out.set(k.path); + const path = if (pane.file) |f| f.path else if (pane.addon) |k| k.path else ""; + if (path.len > 0) { + if (path.len <= out.bytes.len) return out.set(path); + // Longer than the room: its end, `…` first, so its name is whole + // (UX D2: a path is cut from the left). + var from = path.len - (out.bytes.len - "\u{2026}".len); + while (from < path.len and path[from] & 0xC0 == 0x80) from += 1; + _ = out.print("\u{2026}{s}", .{path[from..]}); + return; + } const line = pane.command orelse { _ = out.print(config.pane_addr ++ "{d}", .{pane.serial}); return; @@ -729,9 +737,12 @@ pub fn noticeRow(p: *Pardes, width: usize, out: *[notice_row_cap]u8) Row { w.writeAll(line) catch {}; } else if (lead) |s| { w.print("{s} ", .{s.kind.glyph()}) catch {}; - // Its cause first, unless its words name it already. + // Its cause first, unless its words name it already (a cut one by + // what it kept). const words = s.words(); - if (s.src.len > 0 and std.mem.indexOf(u8, words, s.src.slice()) == null) w.print("{s} ", .{s.src.slice()}) catch {}; + const cause = s.src.slice(); + const named = if (std.mem.startsWith(u8, cause, "\u{2026}")) cause["\u{2026}".len..] else cause; + if (cause.len > 0 and std.mem.indexOf(u8, words, named) == null) w.print("{s} ", .{cause}) catch {}; w.writeAll(words) catch {}; if (s.n > 1) w.print(" \u{d7}{d}", .{s.n}) catch {}; for (s.places[0..s.places_len], 0..) |*place, i| w.print("{s} {s}:{d}:{d}", .{ if (i > 0) " \u{b7}" else "", place.path.slice(), place.line, place.col }) catch {}; @@ -1680,3 +1691,27 @@ test "the notice row's left is cut with `…` two blanks before its right block row = noticeRow(p, 200, &buf); try std.testing.expect(std.mem.indexOf(u8, row.text, "…") == null); } + +test "a cause longer than its word's room keeps the path's end, `…` first, so the file's name is whole (S2 08b at 16 px: `…/core/Query.zi`, its last letter lost)" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 200, .rows = 24 }); + defer p.deinit(); + const pane = try p.setTestFile("one\n"); + const id = p.view().active; + const long = "/tmp/claude-1000/wS2g16/proj/a/rather/long/way/down/to/the/sources/of/this/project/core/Query.zig"; + p.gpa.free(pane.file.?.path); + pane.file.?.path = try p.gpa.dupe(u8, long); + p.messages.live_len = 0; + const s = say(p, .notice, id, "the build finished"); + try std.testing.expect(std.mem.startsWith(u8, s.src.slice(), "\u{2026}")); + try std.testing.expect(std.mem.endsWith(u8, long, s.src.slice()["\u{2026}".len..])); + // The notice row names the file whole, its words after it. + var buf: [notice_row_cap]u8 = undefined; + var row = noticeRow(p, 190, &buf); + try std.testing.expect(std.mem.endsWith(u8, row.text[0..row.left], "/core/Query.zig the build finished")); + // Words that name the path already leave the cause out, cut or not + // (S2 08a: `saved PATH`). + p.messages.live_len = 0; + _ = say(p, .notice, id, "saved " ++ long); + row = noticeRow(p, 190, &buf); + try std.testing.expectEqualStrings("\u{b7} saved " ++ long, row.text[0..row.left]); +} -- cgit v1.3 From f1b8c2acf131a38a85232c5c268b9b900c21d877 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 25 Nov 2026 14:20:01 -0300 Subject: Messages: a message too wide for the notice row gives way by its items, each cut showing `…` (UX D2, E5.4, F2): its cause first (a path from its left down to its name, `…Query.zig`; a command from its right down to its pane, `@p2…`), then each path its words and places name, from its left down to its name, and its words last, from the right, two blanks before the right part as before: noticeRow cut a message's whole left from the right, so a long cause path took the row and the words never showed (S2 08b at 26 px: `· /tmp/…/sources/of/th… 3 messages`, the message itself gone), a path in its words was cut on the right (08a: `saved /tmp/…/to/the/sources…`), and the place an error names was cut into (09a: `… exit 1 /tmp/c…`); causeWord's command cut (64 bytes) ends in `…` too (09a: `argument(s), fo exit 1`); the new giveWay walks an item's cells once from the end it cuts (no width sum per byte); a row that fits is built as before, byte for byte; TEST FIRST: Messages "a message too wide for the notice row gives way by its items ..." (08b, 08a and 09a's rows at 97 cells, and a command pane's cause word: fails on the base at Messages.zig:1735, 08b's left not `· …Query.zig the build in the other column finished`); a user hits it whenever a message and its cause or place are wider than the window's foot row; goldens (process-test, regenerated and every changed row read): the notice row of badutf, shellset, savepane, msg (two rows), lookloaded, lsp-rename-files, wrap, tagpath, tagalign (two rows) and wheeldrift now shows the message's words where the cause path took the row (`· …des-snap/msg/cwd/a.txt hand-written report` for `· /tmp/pardes-snap/msg/cwd/a.txt hand-writte…`, `✗ …cmd.txt Shell: shell "zznosuchshell" not found (a name on the…` for `✗ /tmp/pardes-snap/shellset/cwd/cmd.txt Shell: shell "zznosuchsh…`), a path in the words whole (savepane's `saved …/saved.txt`); wrap gains a frame, its `Wrap ×2` now shown where both frames read `✓ /tmp/pardes-snap/wrap…`; nothing else moved MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE --- core/Messages.zig | 133 ++++++++++++++++++++++++++++++--- test/snapshots/badutf.golden | 2 +- test/snapshots/lookloaded.golden | 2 +- test/snapshots/lsp-rename-files.golden | 2 +- test/snapshots/msg.golden | 4 +- test/snapshots/savepane.golden | 2 +- test/snapshots/shellset.golden | 2 +- test/snapshots/tagalign.golden | 4 +- test/snapshots/tagpath.golden | 2 +- test/snapshots/wheeldrift.golden | 2 +- test/snapshots/wrap.golden | 3 +- 11 files changed, 137 insertions(+), 21 deletions(-) (limited to 'core/Messages.zig') diff --git a/core/Messages.zig b/core/Messages.zig index 90194e30..6233f7e5 100644 --- a/core/Messages.zig +++ b/core/Messages.zig @@ -314,7 +314,8 @@ fn causeWord(pane: *const Pane, out: *Buf(96)) void { const first = line[0 .. std.mem.indexOfAny(u8, line, "\r\n") orelse line.len]; var cut = @min(first.len, 64); while (cut < first.len and cut > 0 and first[cut] & 0xC0 == 0x80) cut -= 1; - _ = out.print(config.pane_addr ++ "{d} {s}", .{ pane.serial, first[0..cut] }); + // A command cut shows it (UX F2: every cut ends in `…`). + _ = out.print(config.pane_addr ++ "{d} {s}{s}", .{ pane.serial, first[0..cut], if (cut < first.len) "\u{2026}" else "" }); } /// Make a message live, and return it (for its places and its detail): @@ -733,6 +734,8 @@ pub fn noticeRow(p: *Pardes, width: usize, out: *[notice_row_cap]u8) Row { var doc_buf: [notice_row_cap]u8 = undefined; const doc = if (said == null) pardes.Band.docLeft(p, &doc_buf) else null; const lead = if (said == null and doc == null) m.headline() else null; + // A message's cause, in bytes of `out`: the first item to give way. + var cause_at: [2]usize = .{ 0, 0 }; if (said != null) {} else if (doc) |line| { w.writeAll(line) catch {}; } else if (lead) |s| { @@ -742,7 +745,12 @@ pub fn noticeRow(p: *Pardes, width: usize, out: *[notice_row_cap]u8) Row { const words = s.words(); const cause = s.src.slice(); const named = if (std.mem.startsWith(u8, cause, "\u{2026}")) cause["\u{2026}".len..] else cause; - if (cause.len > 0 and std.mem.indexOf(u8, words, named) == null) w.print("{s} ", .{cause}) catch {}; + cause_at = .{ w.end, w.end }; + if (cause.len > 0 and std.mem.indexOf(u8, words, named) == null) { + w.writeAll(cause) catch {}; + cause_at[1] = w.end; + w.writeByte(' ') catch {}; + } w.writeAll(words) catch {}; if (s.n > 1) w.print(" \u{d7}{d}", .{s.n}) catch {}; for (s.places[0..s.places_len], 0..) |*place, i| w.print("{s} {s}:{d}:{d}", .{ if (i > 0) " \u{b7}" else "", place.path.slice(), place.line, place.col }) catch {}; @@ -785,14 +793,38 @@ pub fn noticeRow(p: *Pardes, width: usize, out: *[notice_row_cap]u8) Row { w.writeAll(name) catch {}; cut = w.end; } else { - cut = panes.File.rawAtDisplay(tab, out[0..left_end], room -| 1); - while (cut > 0 and panes.File.displayWidth(tab, out[0..cut]) > room -| 1) { - cut -= 1; - while (cut > 0 and out[cut] & 0xC0 == 0x80) cut -= 1; + // A message (UX D2, F2): its cause gives way first (a path down + // to its name, `…Query.zig`; a command down to its pane, + // `@p2…`), then each path its words and places name, down to + // its name; its words are cut last, from the right below. + if (lead != null) { + var over = panes.File.displayWidth(tab, out[0..left_end]) - room; + var kept: [notice_row_cap]u8 = undefined; + var k: std.Io.Writer = .fixed(&kept); + k.writeAll(out[0..cause_at[0]]) catch {}; + const cause = out[cause_at[0]..cause_at[1]]; + over -|= giveWay(tab, &k, cause, over, !std.mem.startsWith(u8, cause, config.pane_addr) and std.mem.indexOfScalar(u8, cause, '/') != null); + var items = std.mem.splitScalar(u8, out[cause_at[1]..left_end], ' '); + var first = true; + while (items.next()) |item| { + if (!first) k.writeByte(' ') catch {}; + first = false; + if (std.mem.indexOfScalar(u8, item, '/') != null) over -|= giveWay(tab, &k, item, over, true) else k.writeAll(item) catch {}; + } + cut = k.end; + @memcpy(out[0..cut], k.buffered()); + } + if (panes.File.displayWidth(tab, out[0..cut]) > room) { + const end = cut; + cut = panes.File.rawAtDisplay(tab, out[0..end], room -| 1); + while (cut > 0 and panes.File.displayWidth(tab, out[0..cut]) > room -| 1) { + cut -= 1; + while (cut > 0 and out[cut] & 0xC0 == 0x80) cut -= 1; + } + w.end = cut; + w.writeAll(if (room > 0) "…" else "") catch {}; + cut = w.end; } - w.end = cut; - w.writeAll(if (room > 0) "…" else "") catch {}; - cut = w.end; } } w.end = cut; @@ -803,6 +835,38 @@ pub fn noticeRow(p: *Pardes, width: usize, out: *[notice_row_cap]u8) Row { return .{ .left = cut, .right = right_at, .text = w.buffered(), .lead = lead, .quiet_left = said != null, .word = said orelse .{ 0, 0 } }; } +/// `item` written to `w` with `over` cells of it given back where it has +/// them, `…` in their place (UX D2): a path from its left, never into its +/// name (what follows its last `/`); anything else from its right, never +/// into its first word. The cells it gave. +fn giveWay(tab: u16, w: *std.Io.Writer, item: []const u8, over: usize, path: bool) usize { + var edge: usize = if (path) 0 else item.len; + var cells: usize = 0; + if (path) { + const name = if (std.mem.lastIndexOfScalar(u8, item, '/')) |slash| slash + 1 else 0; + while (edge < name and cells < over + 1) { + const next = @min(item.len, edge + (std.unicode.utf8ByteSequenceLength(item[edge]) catch 1)); + cells += panes.File.displayWidth(tab, item[edge..next]); + edge = next; + } + } else { + const first = std.mem.indexOfScalar(u8, item, ' ') orelse item.len; + while (edge > first and cells < over + 1) { + var prev = edge - 1; + while (prev > first and item[prev] & 0xC0 == 0x80) prev -= 1; + cells += panes.File.displayWidth(tab, item[prev..edge]); + edge = prev; + } + } + // The `…` takes a cell of what was given. + if (cells < 2) { + w.writeAll(item) catch {}; + return 0; + } + if (path) w.print("\u{2026}{s}", .{item[edge..]}) catch {} else w.print("{s}\u{2026}", .{item[0..edge]}) catch {}; + return cells - 1; +} + /// What notice band `i` says. The grid pass and the band layers both /// read it here, so a terminal and a pixel shell show the same line. pub fn noticeText(pane: *const Pane, i: usize) []const u8 { @@ -1715,3 +1779,54 @@ test "a cause longer than its word's room keeps the path's end, `…` first, so row = noticeRow(p, 190, &buf); try std.testing.expectEqualStrings("\u{b7} saved " ++ long, row.text[0..row.left]); } + +test "a message too wide for the notice row gives way by its items, each cut showing `…`: its cause first (a path down to its name, a command down to its pane), then the paths it names down to theirs, then its words from the right; its right part whole, two blanks before it (UX D2, F2; S2 08a, 08b, 09a at 26 px)" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 30 }); + defer p.deinit(); + const pane = try p.setTestFile("one\n"); + const id = p.view().active; + const long = "/tmp/claude-1000/wS2g26/proj/a/rather/long/way/down/to/the/sources/of/this/project/core/Query.zig"; + p.gpa.free(pane.file.?.path); + pane.file.?.path = try p.gpa.dupe(u8, long); + p.messages.live_len = 0; + p.messages.len = 0; + const tab = p.settings.tab; + var buf: [notice_row_cap]u8 = undefined; + // 08b: the cause a long path, the words longer than the row. + _ = say(p, .notice, id, "the build in the other column finished with three warnings and one error, the error in a file this pane does not show"); + var row = noticeRow(p, 97, &buf); + var left = row.text[0..row.left]; + try std.testing.expect(std.mem.startsWith(u8, left, "\u{b7} \u{2026}Query.zig the build in the other column finished")); + try std.testing.expect(std.mem.endsWith(u8, left, "\u{2026}")); + try std.testing.expect(row.right - row.left >= 2); + try std.testing.expectEqual(@as(usize, 97), panes.File.displayWidth(tab, row.text)); + // 08a: the words name a path: it is cut from its left, its name whole. + p.messages.live_len = 0; + _ = say(p, .notice, id, "saved " ++ long); + row = noticeRow(p, 97, &buf); + left = row.text[0..row.left]; + try std.testing.expect(std.mem.startsWith(u8, left, "\u{b7} saved \u{2026}")); + try std.testing.expect(std.mem.endsWith(u8, left, "/core/Query.zig")); + try std.testing.expect(row.right - row.left >= 2); + // 09a: a command pane's cause gives way from its right, down to its + // `@pN`, before the place it names: the place stays whole. + p.messages.live_len = 0; + const err = keep(p, .@"error", 0, "@p2 sh -c 'printf \"Store.zig:20:5: error: expected 2 argument(s), found 3", "exit 1"); + err.places[0] = .{ .line = 20, .col = 5 }; + err.places[0].path.set("/tmp/claude-1000/wS2g26/proj/core/Store.zig"); + err.places_len = 1; + row = noticeRow(p, 97, &buf); + left = row.text[0..row.left]; + try std.testing.expect(std.mem.startsWith(u8, left, "\u{2717} @p2 sh -c")); + try std.testing.expect(std.mem.endsWith(u8, left, "\u{2026} exit 1 /tmp/claude-1000/wS2g26/proj/core/Store.zig:20:5")); + try std.testing.expect(std.mem.endsWith(u8, row.text, "SPC e walk")); + try std.testing.expect(row.right - row.left >= 2); + // A command's echo cut for its word ends in `…` too (S2 09a: `fo exit 1`). + pane.command = try p.gpa.dupe(u8, "sh -c 'printf \"Store.zig:20:5: error: expected 2 argument(s), found 3\\n\"; exit 1'"); + const file = pane.file; + pane.file = null; + defer pane.file = file; + var word: Buf(96) = .{}; + causeWord(pane, &word); + try std.testing.expect(std.mem.endsWith(u8, word.slice(), "\u{2026}")); +} diff --git a/test/snapshots/badutf.golden b/test/snapshots/badutf.golden index 02a6a159..fc04cca5 100644 --- a/test/snapshots/badutf.golden +++ b/test/snapshots/badutf.golden @@ -61,4 +61,4 @@ | | | -| ✓ /tmp/pardes-snap/badutf… 1 message · SPC h m +| ✓ …adutf/cwd/wide.txt Wrap 1 message · SPC h m diff --git a/test/snapshots/lookloaded.golden b/test/snapshots/lookloaded.golden index ff90c6eb..b406d639 100644 --- a/test/snapshots/lookloaded.golden +++ b/test/snapshots/lookloaded.golden @@ -34,7 +34,7 @@ |6: rm big.txt; echo GO''NE |7: GONE |21: */tmp/pardes-snap/lookloaded/cwd/big.txt Save Ter -|30: · /tmp/pardes-snap/lookloaded/cwd/big.txt deleted on disk (Save writes it … 2 messages · SPC h m +|30: · …ardes-snap/lookloaded/cwd/big.txt deleted on disk (Save writes it again) 2 messages · SPC h m == snap look-noFS grid=100x31 cursor=14,26 |8: big.txt:40 big.txt:10 big.txt:10 |23: 7 line 7 diff --git a/test/snapshots/lsp-rename-files.golden b/test/snapshots/lsp-rename-files.golden index 52b8829c..95b1ca1e 100644 --- a/test/snapshots/lsp-rename-files.golden +++ b/test/snapshots/lsp-rename-files.golden @@ -33,4 +33,4 @@ |20: 5 main.rs:5:13-15 |21: 6 sum |22: ~ -|24: · /tmp/pardes-snap/lsp-rename-files/cwd/lib.rs Rename: 3 edit(s) across fi… 2 messages · SPC h m +|24: · …-files/cwd/lib.rs Rename: 3 edit(s) across files, previewed, not applied 2 messages · SPC h m diff --git a/test/snapshots/msg.golden b/test/snapshots/msg.golden index 834d2219..529b3ad9 100644 --- a/test/snapshots/msg.golden +++ b/test/snapshots/msg.golden @@ -58,8 +58,8 @@ |2: */tmp/pardes-snap/msg/cwd/a.txt Save Term Collapse Follow Del |4: 2 |5: 3 Msg hand-written report -|16: · /tmp/pardes-snap/msg/cwd/a.txt hand-writte… 7 messages · SPC h m +|16: · …des-snap/msg/cwd/a.txt hand-written report 7 messages · SPC h m == snap msgtail grid=70x17 cursor=32,7 |6: 4 Msg 0123456789 0123456789 0123456789 0123456789 0123456789 012↩ |7: 3456789 0123456789 THE-END -|16: · /tmp/pardes-snap/msg/cwd/a.txt 0123456789 … 9 messages · SPC h m +|16: · …a.txt 0123456789 0123456789 0123456789 01… 9 messages · SPC h m diff --git a/test/snapshots/savepane.golden b/test/snapshots/savepane.golden index 41c7ca3e..c434bd40 100644 --- a/test/snapshots/savepane.golden +++ b/test/snapshots/savepane.golden @@ -36,7 +36,7 @@ == snap saved grid=100x31 cursor=20,17 |16: /tmp/pardes-snap/savepane/cwd/saved.txt Keep Save Term Collapse Follow Del |17: 1 scratch bytes -|30: · /tmp/pardes-snap/savepane/cwd/+New saved /tmp/pardes-snap/savepane/cwd/s… 3 messages · SPC h m +|30: · …des-snap/savepane/cwd/+New saved /tmp/pardes-snap/savepane/cwd/saved.txt 3 messages · SPC h m == file bytes scratch bytes == end file diff --git a/test/snapshots/shellset.golden b/test/snapshots/shellset.golden index 2a59619f..8fb2abed 100644 --- a/test/snapshots/shellset.golden +++ b/test/snapshots/shellset.golden @@ -22,7 +22,7 @@ | /tmp/pardes-snap/shellset/cwd/cmd.txt:1 == snap builtin-ran grid=90x21 cursor=25,3 |2: ✗/tmp/pardes-snap/shellset/cwd/cmd.txt Keep Save Term Collapse Follow Del -|20: ✗ /tmp/pardes-snap/shellset/cwd/cmd.txt Shell: shell "zznosuchsh… 3 messages · SPC h m +|20: ✗ …cmd.txt Shell: shell "zznosuchshell" not found (a name on the… 3 messages · SPC h m == snap fallback-shell grid=90x21 cursor=49,6 |1: New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol |2: ✗/tmp/pardes-snap/shellset/cwd/cmd.txt Keep /tmp/pardes-snap/shellset/cwd Term+bash Sav diff --git a/test/snapshots/tagalign.golden b/test/snapshots/tagalign.golden index e64d7297..f42ce294 100644 --- a/test/snapshots/tagalign.golden +++ b/test/snapshots/tagalign.golden @@ -157,7 +157,7 @@ | | | -| · /tmp/pardes-snap/tagalign/cwd/deep/nested-p… 1 message · SPC h m +| · …document.txt name drafted: Enter renames t… 1 message · SPC h m == snap alone grid=70x31 cursor=4,6 |2: /tmp/pardes-snap/tagalign/cwd Term+bash Save Mode Filter Collapse De |3: l @@ -168,4 +168,4 @@ |8: |9: |10: -|30: ✓ /tmp/pardes-snap/tagalign/cwd/deep/nested-… 3 messages · SPC h m +|30: ✓ …/nested-project-directory/document.txt Del 3 messages · SPC h m diff --git a/test/snapshots/tagpath.golden b/test/snapshots/tagpath.golden index 9ec3d963..df331438 100644 --- a/test/snapshots/tagpath.golden +++ b/test/snapshots/tagpath.golden @@ -77,6 +77,6 @@ |30: ✓ /tmp/pardes-snap/tagpath/cwd/c.txt Last 1 message · SPC h m == snap name-cancelled grid=100x31 cursor=41,3 |2: */tmp/pardes-snap/tagpath/cwd/c.txt Save Term Collapse Follow Del -|30: · /tmp/pardes-snap/tagpath/cwd/c.txt name drafted: Enter renames the buffe… 2 messages · SPC h m +|30: · …th/cwd/c.txt name drafted: Enter renames the buffer, Esc drops the draft 2 messages · SPC h m == snap name-committed grid=100x31 cursor=41,3 |2: */renamed/tmp/pardes-snap/tagpath/cwd/c.txt Save Term Collapse Follow Del diff --git a/test/snapshots/wheeldrift.golden b/test/snapshots/wheeldrift.golden index 30d0f6ab..7cb647d4 100644 --- a/test/snapshots/wheeldrift.golden +++ b/test/snapshots/wheeldrift.golden @@ -15,7 +15,7 @@ | 10 line 10_0123456789_abcdefghij_ZEND | 11 line 11_0123456789_abcdefghij_ZEND | 12 line 12_0123456789_abcdefghij_ZEND -| ✓ /tmp/pardes-snap/wheeldrift/cwd/drift.txt W… 1 message · SPC h m +| ✓ …p/pardes-snap/wheeldrift/cwd/drift.txt Wrap 1 message · SPC h m == snap drifted grid=70x17 cursor=hidden |4: 6 line 6_0123456789_abcdefghij_ZEND |5: 7 line 7_0123456789_abcdefghij_ZEND diff --git a/test/snapshots/wrap.golden b/test/snapshots/wrap.golden index 2940bdb2..5c9b085e 100644 --- a/test/snapshots/wrap.golden +++ b/test/snapshots/wrap.golden @@ -31,7 +31,7 @@ |9: |10: |11: -|14: ✓ /tmp/pardes-snap/wrap… 1 message · SPC h m +|14: ✓ …rap/cwd/long.txt Wrap 1 message · SPC h m == snap on-again grid=48x15 cursor=10,7 |4: 1 0---------1---------2---------3---------↩ |5: 4---------5---------6---------7---------↩ @@ -41,6 +41,7 @@ |9: 2 second line |10: 3 third line |11: ~ +|14: ✓ …/cwd/long.txt Wrap ×2 1 message · SPC h m == 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 -- cgit v1.3