summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/behaviour/keys.zig18
-rw-r--r--test/perf.zig109
-rw-r--r--test/snapshots/fsearch.golden132
-rw-r--r--test/snapshots/lookrange.golden33
-rw-r--r--test/snapshots/msg.golden14
-rw-r--r--test/snapshots/pipe.golden14
-rw-r--r--test/snapshots/selregex.golden50
7 files changed, 247 insertions, 123 deletions
diff --git a/test/behaviour/keys.zig b/test/behaviour/keys.zig
index cfa76aa5..e02b1fa5 100644
--- a/test/behaviour/keys.zig
+++ b/test/behaviour/keys.zig
@@ -16,18 +16,20 @@ test "keys: a prompt's entry and cancellation leave the tag, the body and its cu
const dot = s.at("/pane/{d}/dot", .{n});
try s.replace(tag, " keep");
for ([_]struct { keys: []const u8, shown: []const u8 }{
- .{ .keys = "s", .shown = " /zq" },
- .{ .keys = "|", .shown = " |zq" },
- .{ .keys = alt ++ "|", .shown = " |-zq" },
- .{ .keys = "!", .shown = " !zq" },
- .{ .keys = alt ++ "!", .shown = " !+zq" },
+ .{ .keys = "s", .shown = " s zq" },
+ .{ .keys = "|", .shown = " | zq" },
+ .{ .keys = alt ++ "|", .shown = " A-| zq" },
+ .{ .keys = "!", .shown = " ! zq" },
+ .{ .keys = alt ++ "!", .shown = " A-! zq" },
}) |case| {
try s.write(dot, "6 6");
try s.keys(case.keys);
- // The answer is typed into the prompt's own line, never the tag.
+ // The answer is typed into the tag's head (walk UI), shown in place
+ // of the tag's own text, which it never touches.
try s.keys("zq");
_ = try s.where(case.shown);
- try std.testing.expectEqualStrings("/test.txt keep", try s.read(tag));
+ 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 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 "));
@@ -58,8 +60,8 @@ test "keys: a prompt opens whatever the tag already holds" {
try s.keys(key);
try s.keys("zq");
_ = try s.where("zq");
- try std.testing.expectEqualStrings(full, try s.read(tag));
try s.keys("\x1b");
+ try std.testing.expectEqualStrings(full, try s.read(tag));
}
}
diff --git a/test/perf.zig b/test/perf.zig
index 17098f3d..8e622680 100644
--- a/test/perf.zig
+++ b/test/perf.zig
@@ -426,6 +426,8 @@ const Options = struct {
search: bool = false,
/// A picker's key and frame (`measurePick`).
pick: bool = false,
+ /// The walk UI's line F: registers, painted targets, themes (`measureWalkF`).
+ walkf: bool = false,
terminal_mib: ?usize = null,
/// The real binary's keystroke-to-present, `yes` stream and big open
/// (a tty pardes), or its keystrokes alone (a pardes-gui).
@@ -442,7 +444,7 @@ const Options = struct {
while (i < args.len) : (i += 1) {
const arg = args[i];
if (!std.mem.startsWith(u8, arg, "--")) return error.UnknownOption;
- const option = std.meta.stringToEnum(enum { json, creation, startup, mini, search, pick, @"terminal-mib", @"self-test", reps, cols, rows, base, only, op, @"max-ratio", live, @"live-gui" }, arg[2..]) orelse
+ const option = std.meta.stringToEnum(enum { json, creation, startup, mini, search, pick, walkf, @"terminal-mib", @"self-test", reps, cols, rows, base, only, op, @"max-ratio", live, @"live-gui" }, arg[2..]) orelse
return error.UnknownOption;
switch (option) {
.json => opts.json = true,
@@ -451,6 +453,7 @@ const Options = struct {
.mini => opts.mini = true,
.search => opts.search = true,
.pick => opts.pick = true,
+ .walkf => opts.walkf = true,
.@"self-test" => opts.self_test = true,
else => {
i += 1;
@@ -514,6 +517,7 @@ pub fn main(init: std.process.Init) !void {
if (opts.mini) return measureMini(init.io, init.gpa, reps, opts.json);
if (opts.search) return measureSearch(init.io);
if (opts.pick) return measurePick(init.io);
+ if (opts.walkf) return measureWalkF(init.io);
if (opts.live) |exe| return measureLive(init.io, exe, false, reps, opts.json);
if (opts.live_gui) |exe| return measureLive(init.io, exe, true, reps, opts.json);
// The image-frame cells load the image addon by the path the build baked
@@ -1920,6 +1924,38 @@ fn measureSearch(io: std.Io) !void {
}
slow.report("fill", pattern, set.hits.items.len);
}
+
+ // A key typed into a text prompt in the tag (core/Prompt.zig) on a 1 MB
+ // file, with its frame: `/` from the middle (its places from the view on,
+ // a frame's budget a tick after), `s` over the whole text (`%`).
+ const mb: Fixture = .{ .name = "onemeg", .lines = 17_000, .cols = 60 };
+ const mb_path = try std.fmt.allocPrint(gpa, "{s}/{s}.zig", .{ dir, mb.name });
+ defer gpa.free(mb_path);
+ const mb_text = try generate(mb);
+ try writeFile(mb_path, mb_text);
+ std.debug.print("prompt keys over {d} bytes\n", .{mb_text.len});
+ gpa.free(mb_text);
+ for ([_][]const u8{ "/", "%s" }) |opener| for ([_][]const u8{ "helper", "qqq" }) |typed| {
+ const core = try boot();
+ defer core.deinit();
+ pardes.look.lookAt(core, 0, mb_path);
+ pump(core);
+ const id = filePane(core) orelse return error.OpenDidNotOpenFile;
+ const pane = core.panes[id].?;
+ seek(pane, mb, 0);
+ pane.file.?.scroll = mb.lines / 2;
+ pane.body.cur_row = @intCast(mb.lines / 2);
+ _ = try frame(core);
+ for (opener) |c| core.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } });
+ _ = try frame(core);
+ for (typed, 0..) |c, n| {
+ const was = counter.read();
+ const t0 = nowNs();
+ core.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } });
+ _ = try frame(core);
+ std.debug.print("prompt {s} \"{s}\": {d} instructions, {d} us (key and frame)\n", .{ opener, typed[0 .. n + 1], counter.read() -| was, (nowNs() -| t0) / 1000 });
+ }
+ };
}
/// `--pick`: a picker's hot paths (core/Pick.zig, walk UI line D), each
@@ -1997,6 +2033,77 @@ fn measurePick(io: std.Io) !void {
if (!std.mem.endsWith(u8, landing.file.?.path, ".zig") or std.mem.indexOf(u8, landing.file.?.path, "pickme_") == null) return error.NoPreview;
}
+/// `--walkf`: line F's hot paths in a 2,000-line file, each a step and
+/// the frame that draws it, its instructions counted: a key in the
+/// registers' level unrolled (Down, its value step read again); a frame
+/// with `]`'s targets painted against one at rest; a cursor move in the
+/// themes picker (the window wearing the next theme).
+fn measureWalkF(io: std.Io) !void {
+ var random: [12]u8 = undefined;
+ io.random(&random);
+ const dir = try std.fmt.allocPrint(gpa, "/tmp/pardes-walkf-{x}", .{random});
+ defer gpa.free(dir);
+ try std.Io.Dir.createDirAbsolute(io, dir, .default_dir);
+ defer std.Io.Dir.cwd().deleteTree(io, dir) catch {};
+ const path = try std.fmt.allocPrint(gpa, "{s}/walkf.zig", .{dir});
+ defer gpa.free(path);
+ var body: std.ArrayList(u8) = .empty;
+ defer body.deinit(gpa);
+ for (0..250) |i| try body.print(gpa, "/// The {d}th.\nfn f{d}(a: u32) u32 {{\n const b = a + {d};\n return b;\n}}\n\ntest \"f{d}\" {{\n}}\n", .{ i, i, i, i });
+ try writeFile(path, body.items);
+ var counter: Instructions = try .open();
+ defer counter.close();
+ const core = try boot();
+ defer core.deinit();
+ core.settings.jumps = .walk;
+ pardes.look.lookAt(core, 0, path);
+ pump(core);
+ _ = filePane(core) orelse return error.OpenDidNotOpenFile;
+ for ("abcdefgh", 0..) |r, i| try core.registers.put(gpa, r, body.items[i * 40 ..][0..200], 0, 1, true);
+ try frame(core);
+ const Step = struct {
+ fn run(c: *pardes.Pardes, ev: pardes.Event, n: *Instructions, s: *Slowest) !void {
+ const was = n.read();
+ const t0 = nowNs();
+ c.update(ev);
+ try frame(c);
+ s.add(nowNs() -| t0, n.read() -| was, 0);
+ }
+ };
+ const shown = struct {
+ fn wait(c: *pardes.Pardes) !void {
+ c.advance(c.clock.now_ns);
+ c.clock.now_ns = c.view().tag_state.due_ns;
+ try frame(c);
+ }
+ };
+ // Registers: `"`, its level shown, unrolled; then Down over its rows.
+ core.update(.{ .key = .{ .cp = '"' } });
+ try shown.wait(core);
+ core.update(.{ .key = .{ .cp = pardes.Key.down } });
+ var regs: Slowest = .{};
+ for (0..8) |_| try Step.run(core, .{ .key = .{ .cp = pardes.Key.down } }, &counter, &regs);
+ regs.report("registers Down + frame", "\"", 0);
+ core.update(.{ .key = .{ .cp = pardes.Key.escape } });
+ // A frame at rest, then frames with `]`'s targets painted.
+ var rest: Slowest = .{};
+ var painted: Slowest = .{};
+ for (0..8) |_| try Step.run(core, .tick, &counter, &rest);
+ core.update(.{ .key = .{ .cp = ']' } });
+ try shown.wait(core);
+ for (0..8) |_| try Step.run(core, .tick, &counter, &painted);
+ rest.report("tick + frame at rest", "", 0);
+ painted.report("tick + frame, ] painted", "]", 0);
+ core.update(.{ .key = .{ .cp = pardes.Key.escape } });
+ // The themes picker: Down, the window wearing the next.
+ pardes.Pick.open(core, core.view().active, .themes, "", "", "");
+ try frame(core);
+ var themes: Slowest = .{};
+ for (0..8) |_| try Step.run(core, .{ .key = .{ .cp = pardes.Key.down } }, &counter, &themes);
+ themes.report("themes Down + frame", "", 0);
+ if (core.theme_preview == null) return error.NoThemePreview;
+}
+
/// The longest of a scan's calls.
const Slowest = struct {
calls: usize = 0,
diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden
index e982d6c4..bcd0fcfb 100644
--- a/test/snapshots/fsearch.golden
+++ b/test/snapshots/fsearch.golden
@@ -30,73 +30,73 @@
| 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=93,21
-|20: ^ +Search 0 Del
-|21: /
-|22:
-|23:
-|24:
-|25:
-|26:
-|27:
-|28:
-== snap typing grid=180x31 cursor=97,21
-|20: ^ +Search 1/3 Del
-|21: /MARK
-|22: g.txt:2:1 MARK a
-|23: g.txt:6:1 MARK b
-|24: g.txt:10:1 MARK c
+== 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
+|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
+|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,
-|2: 0-1 d,#496656, 2-30 #b2c3b8,#1d2824, 31-40 #d3b0d9,#1d2824, 41-89 #b2c3b8,#1d2824, 90-91 #b2c3b8,#496656, 92-120 #b2c3b8,#1d2824, 121-130 #d3b0d9,#1d2824, 131-179 #b2c3b8,#1d2824,
-|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-89 #e5eee5,#0d1410, 90-90 #e5eee5,#608269, 91-179 #e5eee5,#0d1410,
-|4: 0-0 d,#608269, 1-1 d,#0d1410, 2-89 #e5eee5,#0d1410, 90-90 #e5eee5,#608269, 91-179 #e5eee5,#0d1410,
-|5: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|6: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|7: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|8: 0-0 d,#608269, 1-3 d,#0d1410, 4-89 #e5eee5,#0d1410, 90-90 #e5eee5,#608269, 91-179 #e5eee5,#0d1410,
-|9: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|10: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|11: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|12: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|13: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|14: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|15: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|16: 0-1 d,#496656, 2-30 #b2c3b8,#1d2824, 31-40 #d3b0d9,#1d2824, 41-89 #b2c3b8,#1d2824, 90-91 #b2c3b8,#496656, 92-127 #b2c3b8,#2c2819, 128-133 #d3b0d9,#2c2819, 134-179 #b2c3b8,#2c2819,
-|17: 0-0 d,#608269, 1-1 d,#0d1410, 2-89 #e5eee5,#0d1410, 90-90 #e5eee5,#e5eee5, 91-94 #e5eee5,#0d1410, 95-96 #59675c,#0d1410, 97-179 #e5eee5,#0d1410,
-|18: 0-0 d,#608269, 1-1 d,#0d1410, 2-89 #e5eee5,#0d1410, 90-90 #e5eee5,#5e4923, 91-94 #e5eee5,#0d1410, 95-96 #59675c,#0d1410, 97-100 #f5f7ee,#3c614a, 101-101 #f5f7ee,#0d1410, 102-179 #e5eee5,#0d1410,
-|19: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#5e4923, 91-94 d,#0d1410, 95-96 #59675c,#0d1410, 97-179 #e5eee5,#0d1410,
-|20: 0-0 d,#608269, 1-89 d,#0d1410, 90-91 #000000,#add38a, 92-179 #becfc4,#314738,
-|21: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-91 d,#0d1410, 92-179 #e5eee5,#0d1410,
-|22: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-91 d,#0d1410, 92-105 #59675c,#243a2d, 106-109 #f7e4a5,#5e4923, 110-110 #f7e4a5,#243a2d, 111-179 #e5eee5,#243a2d,
-|23: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-91 d,#0d1410, 92-105 #59675c,#0d1410, 106-109 #f7e4a5,#352e19, 110-110 #f7e4a5,#0d1410, 111-179 #e5eee5,#0d1410,
-|24: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-91 d,#0d1410, 92-105 #59675c,#0d1410, 106-109 #f7e4a5,#352e19, 110-110 #f7e4a5,#0d1410, 111-179 #e5eee5,#0d1410,
-|25: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|26: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|27: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|28: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
-|29: 0-0 d,#608269, 1-89 d,#0d1410, 90-90 d,#608269, 91-179 d,#0d1410,
+|2: 0-1 d,#496656,f 2-30 #b2c3b8,#1d2824,f 31-40 #d3b0d9,#1d2824,f 41-89 #b2c3b8,#1d2824,f 90-91 #b2c3b8,#496656,f 92-120 #b2c3b8,#1d2824,f 121-130 #d3b0d9,#1d2824,f 131-179 #b2c3b8,#1d2824,f
+|3: 0-0 d,#608269,f 1-1 d,#0d1410,f 2-89 #e5eee5,#0d1410,f 90-90 #e5eee5,#608269,f 91-179 #e5eee5,#0d1410,f
+|4: 0-0 d,#608269,f 1-1 d,#0d1410,f 2-89 #e5eee5,#0d1410,f 90-90 #e5eee5,#608269,f 91-179 #e5eee5,#0d1410,f
+|5: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269,f 91-179 d,#0d1410,f
+|6: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269,f 91-179 d,#0d1410,f
+|7: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269,f 91-179 d,#0d1410,f
+|8: 0-0 d,#608269,f 1-3 d,#0d1410,f 4-89 #e5eee5,#0d1410,f 90-90 #e5eee5,#608269,f 91-179 #e5eee5,#0d1410,f
+|9: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269,f 91-179 d,#0d1410,f
+|10: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269,f 91-179 d,#0d1410,f
+|11: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269,f 91-179 d,#0d1410,f
+|12: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269,f 91-179 d,#0d1410,f
+|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,
+|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,
+|21: 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,
+|22: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#5e4923, 91-94 d,#0d1410, 95-96 #59675c,#0d1410, 97-179 #e5eee5,#0d1410,
+|23: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#608269, 91-94 d,#0d1410, 95-95 #59675c,#0d1410, 96-96 #add38a,#0d1410, 97-100 #e5eee5,#352e19, 101-179 #e5eee5,#0d1410,
+|24: 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,
+|25: 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,
+|26: 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,
+|27: 0-0 d,#608269,f 1-89 d,#0d1410,f 90-90 d,#5e4923, 91-93 d,#0d1410, 94-95 #59675c,#0d1410, 96-96 #add38a,#0d1410, 97-100 #e5eee5,#352e19, 101-179 #e5eee5,#0d1410,
+|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=97,21
-|17: ls 5 l5
-|18: g.txt 6 MARK b
-|19: 7 l7
-|20: ^ +Search 2/3 Del
-== snap landed grid=180x31 cursor=100,18
-|20: +Search 2/3 Save Undock Del
-== snap n grid=180x31 cursor=100,18
-|17: ls 9 l9
-|18: g.txt 10 MARK c
-|19: 11 l11
-== snap N grid=180x31 cursor=100,18
-|17: ls 5 l5
-|18: g.txt 6 MARK b
-|19: 7 l7
-== snap cancel grid=180x31 cursor=100,18
-== snap nomatch grid=180x31 cursor=97,21
-|20: ^ +Search 0 Del
-|21: /zzqq
-|22:
-|23:
-|24:
+== 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
+|19: 2 MARK a
+|23: 6 MARK b
+|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
diff --git a/test/snapshots/lookrange.golden b/test/snapshots/lookrange.golden
index 8953a774..63171bff 100644
--- a/test/snapshots/lookrange.golden
+++ b/test/snapshots/lookrange.golden
@@ -82,38 +82,31 @@
== snap stale grid=150x31 cursor=10,7
== style stale grid=150x31
== snap hit1 grid=150x31 cursor=15,9
-|20: +Search 1/2 Save Undock Del
-|21: /NEEDLE
-|22: r.txt:7:4 gg NEEDLE gg
-|23: r.txt:8:6 hhhh NEEDLE
+|2: look.txt:1 › /NEEDLE/ 1/2 › /tmp/pardes-snap/lookrange/cwd/r.txt Keep Save Term Collapse Follow Del
|30: /tmp/pardes-snap/lookrange/cwd/r.txt:7
== style hit1 grid=150x31
+|2: 0-1 d,#add38a, 2-60 #becfc4,#2c2819, 61-66 #dfbce5,#2c2819, 67-149 #becfc4,#2c2819,
|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410,
|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410,
|7: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-149 #e5eee5,#0d1410,
|9: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-9 #e5eee5,#0d1410, 10-15 #f5f7ee,#3c614a, 16-16 #f5f7ee,#0d1410, 17-149 #e5eee5,#0d1410,
|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-11 #e5eee5,#0d1410, 12-17 #e5eee5,#352e19, 18-149 #e5eee5,#0d1410,
-|14: 0-0 d,#e5eee5, 1-149 d,#0d1410,
-|16: 0-0 d,#5e4923, 1-149 d,#0d1410,
-|20: 0-1 d,#496656, 2-149 #b2c3b8,#1d2824,
-|21: 0-0 d,#608269, 1-1 d,#0d1410, 2-149 #e5eee5,#0d1410,
-|22: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #59675c,#243a2d, 15-17 #e5eee5,#243a2d, 18-23 #f7e4a5,#5e4923, 24-24 #f7e4a5,#243a2d, 25-149 #e5eee5,#243a2d,
-|23: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #59675c,#0d1410, 15-19 #e5eee5,#0d1410, 20-25 #f7e4a5,#352e19, 26-149 #f7e4a5,#0d1410,
+|20: 0-0 d,#e5eee5, 1-149 d,#0d1410,
+|23: 0-0 d,#5e4923, 1-149 d,#0d1410,
== snap hit2 grid=150x31 cursor=17,10
-|30: /tmp/pardes-snap/lookrange/cwd/r.txt:8
+|2: look.txt:1 › /NEEDLE/ 2/2 › /tmp/pardes-snap/lookrange/cwd/r.txt Keep Save Term Collapse Follow Del
+|30: · /tmp/pardes-snap/lookrange/cwd/r.txt /NEEDLE/ 2/2 · line 8 1 message · SPC h m
== style hit2 grid=150x31
|9: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-9 #e5eee5,#0d1410, 10-15 #e5eee5,#352e19, 16-149 #e5eee5,#0d1410,
|10: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-11 #e5eee5,#0d1410, 12-17 #f5f7ee,#3c614a, 18-149 #f5f7ee,#0d1410,
-|14: 0-0 d,#5e4923, 1-149 d,#0d1410,
-|16: 0-0 d,#e5eee5, 1-149 d,#0d1410,
-|22: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #59675c,#243a2d, 15-17 #e5eee5,#243a2d, 18-23 #f7e4a5,#352e19, 24-24 #f7e4a5,#243a2d, 25-149 #e5eee5,#243a2d,
-|23: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #59675c,#0d1410, 15-19 #e5eee5,#0d1410, 20-25 #f7e4a5,#5e4923, 26-149 #f7e4a5,#0d1410,
+|20: 0-0 d,#5e4923, 1-149 d,#0d1410,
+|23: 0-0 d,#e5eee5, 1-149 d,#0d1410,
+|30: 0-1 d,#1d2824, 2-149 #67756e,#1d2824,
== snap back grid=150x31 cursor=15,9
-|30: /tmp/pardes-snap/lookrange/cwd/r.txt:7
+|2: look.txt:1 › /NEEDLE/ 1/2 › /tmp/pardes-snap/lookrange/cwd/r.txt Keep Save Term Collapse Follow Del
+|30: · /tmp/pardes-snap/lookrange/cwd/r.txt /NEEDLE/ 1/2 · line 7 2 messages · SPC h m
== style back grid=150x31
|9: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-9 #e5eee5,#0d1410, 10-15 #f5f7ee,#3c614a, 16-16 #f5f7ee,#0d1410, 17-149 #e5eee5,#0d1410,
|10: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-11 #e5eee5,#0d1410, 12-17 #e5eee5,#352e19, 18-149 #e5eee5,#0d1410,
-|14: 0-0 d,#e5eee5, 1-149 d,#0d1410,
-|16: 0-0 d,#5e4923, 1-149 d,#0d1410,
-|22: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #59675c,#243a2d, 15-17 #e5eee5,#243a2d, 18-23 #f7e4a5,#5e4923, 24-24 #f7e4a5,#243a2d, 25-149 #e5eee5,#243a2d,
-|23: 0-0 d,#608269, 1-1 d,#0d1410, 2-14 #59675c,#0d1410, 15-19 #e5eee5,#0d1410, 20-25 #f7e4a5,#352e19, 26-149 #f7e4a5,#0d1410,
+|20: 0-0 d,#e5eee5, 1-149 d,#0d1410,
+|23: 0-0 d,#5e4923, 1-149 d,#0d1410,
diff --git a/test/snapshots/msg.golden b/test/snapshots/msg.golden
index 3d2e0760..01dbf380 100644
--- a/test/snapshots/msg.golden
+++ b/test/snapshots/msg.golden
@@ -47,13 +47,19 @@
|8:
|9:
|16: · reloaded /tmp/pardes-snap/msg/cwd/a.txt 5 messages · SPC h m
-== snap prompt grid=70x17 cursor=69,3
-|3: 1 EXTERNAL Select /EXT
-== snap prompt-wins grid=70x17 cursor=69,3
-|3: 1 AGAIN Select /EXT
+== 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 · C-r history · esc
+|4: 1 EXTERNAL
+|5: ~
+== snap prompt-wins grid=70x17 cursor=43,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
+|2: /tmp/pardes-snap/msg/cwd/a.txt Keep Save Term Collapse Follow Del
|3: 1 AGAIN
+|4: ~
+|5:
== snap msgbuiltin grid=70x17 cursor=29,5
|2: */tmp/pardes-snap/msg/cwd/a.txt Save Term Collapse Follow Del
|4: 2
diff --git a/test/snapshots/pipe.golden b/test/snapshots/pipe.golden
index bd3f752b..faa16bc3 100644
--- a/test/snapshots/pipe.golden
+++ b/test/snapshots/pipe.golden
@@ -1,8 +1,9 @@
-== snap prompt grid=180x13 cursor=179,3
+== snap prompt grid=180x13 cursor=54,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 Save Term Collapse Follow Del
-| 1 alpha beta |tr a-z A-Z
+|^ /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
+| 1 alpha beta
+| ALPHA BETA
| 2 gamma delta
|
|
@@ -10,11 +11,12 @@
|
|
|
-|
| /tmp/pardes-snap/pipe/cwd/pipe.txt:1
== snap filtered grid=180x13 cursor=17,3
-|2: */tmp/pardes-snap/pipe/cwd/pipe.txt Save Term Collapse Follow Del
+|2: *Edit |tr a-z A-Z › /tmp/pardes-snap/pipe/cwd/pipe.txt Save Term Collapse Follow Del
|3: 1 ALPHA BETA
+|4: 2 gamma delta
+|5:
== snap undone grid=180x13 cursor=17,3
-|2: /tmp/pardes-snap/pipe/cwd/pipe.txt Save Term Collapse Follow Del
+|2: Edit |tr a-z A-Z › /tmp/pardes-snap/pipe/cwd/pipe.txt Save Term Collapse Follow Del
|3: 1 alpha beta
diff --git a/test/snapshots/selregex.golden b/test/snapshots/selregex.golden
index ba303c31..1cfd5844 100644
--- a/test/snapshots/selregex.golden
+++ b/test/snapshots/selregex.golden
@@ -1,10 +1,10 @@
-== snap prompt-armed grid=160x25 cursor=159,3
+== snap prompt-armed grid=160x25 cursor=45,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 Save Term Collapse Follow TreeContext Def Refs Del
-| 1 const one = 1; Select /
-| 2 const two = 2;
-| 3 const three = 3;
+|^ /tmp/pardes-snap/selregex/cwd/m.zig Keep s ⏎ select · C-r history · esc
+| 1┃const one = 1;
+| 2┃const two = 2;
+| 3┃const three = 3;
| ~
|
|
@@ -24,16 +24,16 @@
|
|
| /tmp/pardes-snap/selregex/cwd/m.zig:3
-== snap preview grid=160x25 cursor=159,3
-|3: 1 const one = 1; Select /const
+== 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 · 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 d,#add38a, 2-31 #becfc4,#2c2819, 32-37 #dfbce5,#2c2819, 38-159 #becfc4,#2c2819,
-|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #f5f7ee,#3c614a, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-143 #e5eee5,#0d1410, 144-145 #e5eee5,#1d2824, 146-159 #b2c3b8,#1d2824,
-|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,
+|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-128 #becfc4,#2c2819,f 129-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,
|6: 0-0 d,#608269, 1-4 d,#0d1410, 5-159 #59675c,#0d1410,
|7: 0-0 d,#608269, 1-159 d,#0d1410,
|8: 0-0 d,#608269, 1-159 d,#0d1410,
@@ -54,28 +54,42 @@
|23: 0-0 d,#608269, 1-159 d,#0d1410,
|24: 0-1 d,#1d2824, 2-159 #b2c3b8,#1d2824,
== snap three-selected grid=160x25 cursor=11,3
+|2: Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Keep Save Term Collapse Follow TreeContext Def Refs Del
|3: 1 const one = 1;
+|4: 2 const two = 2;
+|5: 3 const three = 3;
== style three-selected grid=160x25
+|2: 0-1 d,#add38a, 2-47 #becfc4,#2c2819, 48-53 #dfbce5,#2c2819, 54-159 #becfc4,#2c2819,
|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,
-== snap narrowed grid=160x25 cursor=159,3
-|3: 1 const one = 1; Select /t
+|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 · C-r history · esc
+|3: 1┃const one = 1;
+|4: 2┃const two = 2;
+|5: 3┃const three = 3;
== style narrowed grid=160x25
-|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-11 #3c614a,#f5f7ee, 12-12 #3c614a,#0d1410, 13-18 #e5eee5,#0d1410, 19-19 #f8c082,#0d1410, 20-147 #e5eee5,#0d1410, 148-149 #e5eee5,#1d2824, 150-159 #b2c3b8,#1d2824,
-|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#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-6 #59675c,#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,
+|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-136 #becfc4,#2c2819,f 137-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,
== snap esc-restores grid=160x25 cursor=11,3
+|2: Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Keep Save Term Collapse Follow TreeContext Def Refs Del
|3: 1 const one = 1;
+|4: 2 const two = 2;
+|5: 3 const three = 3;
== style esc-restores grid=160x25
+|2: 0-1 d,#add38a, 2-47 #becfc4,#2c2819, 48-53 #dfbce5,#2c2819, 54-159 #becfc4,#2c2819,
|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 commented grid=160x25 cursor=14,3
-|2: */tmp/pardes-snap/selregex/cwd/m.zig Save Term Collapse Follow TreeContext Def Refs Del
+|2: *Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Save Term Collapse Follow TreeContext Def Refs Del
|3: 1 // const one = 1;
|4: 2 // const two = 2;
|5: 3 // const three = 3;
== snap uncommented grid=160x25 cursor=11,3
-|2: /tmp/pardes-snap/selregex/cwd/m.zig Save Term Collapse Follow TreeContext Def Refs Del
+|2: Edit x/const/ › /tmp/pardes-snap/selregex/cwd/m.zig Save Term Collapse Follow TreeContext Def Refs Del
|3: 1 const one = 1;
|4: 2 const two = 2;
|5: 3 const three = 3;