summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-25 00:44:54 -0300
committerGabriel Schneider <[email protected]>2026-11-25 01:05:40 -0300
commit32f8f603f30a6e6e196da929fa0df82b8e94f4c1 (patch)
treeed2a839e5aa06da9bd540cb1d9b46b165353fa43
parentab4e13779ccda0ac5ce497fd2b706930e2f2845c (diff)
downloadpardes-32f8f603f30a6e6e196da929fa0df82b8e94f4c1.tar.gz
pardes-32f8f603f30a6e6e196da929fa0df82b8e94f4c1.zip
Prompt, Pick: lines D's pickers and E's prompts work together where jumps walk (walk UI M3 item 2, pick-ui SPEC §7.2, §6.3, §7.3): Alt-Enter in a search (`/ ?`) or a sam prompt (`s S K A-K`) keeps the result as a list, a row a place (`path:line:col: text`, the text's leading blanks off, cut to 160 bytes, look.parsePathLine's form so the column lands too), the first Query.max_rows (2000) and a message saying how many there were past it: where jumps walk (Pick.asked: never a 9P script's) a picker of those rows (Pick.Source.list, titled by the prompt's plain word, `/dirty/` or `Edit x/dirty/`, cut to the picker's word at a character's start) in the tag of the pane its Enter lands in, the body as it was before the prompt, its Enter the list word `/dirty/ 3/7` in the trail; under `Jumps new-pane` a search keeps E's query pane (Query.open) and a sam prompt's selections are a +Search list (Output.fillResults), where before Alt-Enter in a sam prompt did nothing; the sam prompts' hints say `M-⏎ as a list` as the search's do; one owner for n and N (§6.3: the newest list or search word, or the one Looked at): a search's places answer n while they light its word (§7.3: tinted while it is the word n walks), so a list landed in the pane (Pick.listed, after Trail.through) puts a search's tints out, n then walking the list (D's walkList already gives way to a newer search word), and Look on the search word (Prompt.lookWord) lights it and takes n back; F's colors.previewTheme stays the one theme preview (no other in the tree; it is derived each step from the live themes picker, Pick.produceAll, so E2's `:theme ` either goes through Pick.Source.themes or derives it the same way); TEST FIRST: Prompt.zig "Alt-Enter in / or s keeps the result as a list ..." (failed before: no picker, Pick.live null), Pick.zig "n and N walk the newest list or search word, or the one Looked at ..." (failed before: the search's places still lit after the list landed, Pick.zig:1912, n stepping the search); E's `?` test loses its Alt-Enter tail (now in the new test, both routings), its `s` head test reads the new hint; five Query/Stream tests about today's query pane opened by Alt-Enter in `/` set `Jumps new-pane` (G's newpane.py); goldens: selregex and msg regenerated (process-test --update), each changed row the sam prompt's hint `⏎ select · M-⏎ as a list · C-r history · esc` and nothing else; tui core-test 1053/1223 (170 skipped, 0 failed); process-test 9 of 146 failed before the two updates: those two and item 1's seven left to item 3
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
-rw-r--r--core/Pick.zig31
-rw-r--r--core/Prompt.zig130
-rw-r--r--core/Query.zig8
-rw-r--r--core/Stream.zig2
-rw-r--r--test/snapshots/msg.golden2
-rw-r--r--test/snapshots/selregex.golden10
6 files changed, 161 insertions, 22 deletions
diff --git a/core/Pick.zig b/core/Pick.zig
index 6c86cb98..3bab0970 100644
--- a/core/Pick.zig
+++ b/core/Pick.zig
@@ -1161,6 +1161,9 @@ fn listed(p: *Pardes, pk: *const Pick) void {
var w: Trail.Word = .{ .index = pk.id };
_ = wordOf(p, pk, &w.text);
Trail.through(&pane.trail, .{ .list = w });
+ // The newest list or search is the word n and N walk (SPEC §6.3): a
+ // search's tints go with it (§7.3: lit while it is n's).
+ if (pane.places.provenance == .search) pane.places.clear(p.gpa);
}
/// `n` and `N` in a reading pane whose trail's newest list or search word
@@ -1894,3 +1897,31 @@ test "SPC t t is a picker of the themes in the asking pane's tag, the whole wind
try std.testing.expect(p.theme_preview == null);
try std.testing.expectEqualStrings(themes[shown].name, p.theme().name);
}
+
+test "n and N walk the newest list or search word, or the one Looked at (SPEC §6.3, §7.3): a list landed after a search puts the search's tints out and n walks the list; Look on the search word lights it again and n steps its places" {
+ const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 140, .rows = 40 });
+ defer p.deinit();
+ p.settings.jumps = .walk;
+ const pane = try p.setTestFile("dirty one\nclean\ndirty two\nclean\ndirty three\n");
+ const id = p.view().active;
+ for ("/dirty") |c| p.update(.{ .key = .{ .cp = c, .text = &[_]u8{c} } });
+ p.update(.{ .key = .{ .cp = Key.enter } });
+ try std.testing.expect(pane.places.started);
+ // A list lands in the pane after the search: the list is n's.
+ open(p, id, .list, "Refs", "", "/test.txt:2:1 clean\n/test.txt:4:1 clean\n");
+ landHere(p);
+ try std.testing.expectEqual(id, p.view().active);
+ try std.testing.expectEqual(@as(i32, 1), pane.body.cur_row);
+ try std.testing.expect(!pane.places.started);
+ p.update(.{ .key = .{ .cp = 'n', .text = "n" } });
+ try std.testing.expectEqual(@as(i32, 3), pane.body.cur_row);
+ // Look on the search word: lit again, and n steps its places.
+ var i: u8 = 0;
+ while (i < pane.trail.n and pane.trail.steps[i] != .search) i += 1;
+ try std.testing.expect(i < pane.trail.n);
+ Trail.lookStep(p, id, i);
+ try std.testing.expect(pane.places.started);
+ const was = pane.places.current;
+ p.update(.{ .key = .{ .cp = 'n', .text = "n" } });
+ try std.testing.expect(pane.places.current != null and !std.meta.eql(was, pane.places.current));
+}
diff --git a/core/Prompt.zig b/core/Prompt.zig
index 8081f7f9..6b177c19 100644
--- a/core/Prompt.zig
+++ b/core/Prompt.zig
@@ -123,10 +123,10 @@ const Info = struct {
const info = std.EnumArray(Op, Info).init(.{
.search = .{ .cell = "/", .hint = "⏎ land · M-⏎ as a list · C-r history · esc" },
.search_back = .{ .cell = "?", .hint = "⏎ land · M-⏎ as a list · C-r history · esc" },
- .select = .{ .cell = "s", .hint = "⏎ select · C-r history · esc" },
- .split = .{ .cell = "S", .hint = "⏎ select · C-r history · esc" },
- .keep = .{ .cell = "K", .hint = "⏎ keep · C-r history · esc" },
- .remove = .{ .cell = "A-K", .hint = "⏎ keep · C-r history · esc" },
+ .select = .{ .cell = "s", .hint = "⏎ select · M-⏎ as a list · C-r history · esc" },
+ .split = .{ .cell = "S", .hint = "⏎ select · M-⏎ as a list · C-r history · esc" },
+ .keep = .{ .cell = "K", .hint = "⏎ keep · M-⏎ as a list · C-r history · esc" },
+ .remove = .{ .cell = "A-K", .hint = "⏎ keep · M-⏎ as a list · C-r history · esc" },
.pipe = .{ .cell = "|", .hint = "⏎ replace · C-r history · esc" },
.pipe_to = .{ .cell = "A-|", .hint = "⏎ run · C-r history · esc" },
.insert = .{ .cell = "!", .hint = "⏎ insert · C-r history · esc" },
@@ -415,19 +415,71 @@ fn land(p: *Pardes, id: usize, pane: *Pane, op: Op, pat: []const u8, bad: bool)
word(pane, if (op == .search_back) '?' else '/', pat);
}
-/// Alt-Enter in `/` or `?`: the places kept as a list, a row each, in the
-/// pane's query pane (Query.zig), the body as it was before the prompt.
+/// Alt-Enter in `/ ?` or `s S K A-K` (SPEC §7.2): the result kept as a
+/// list, a row a place, the body as it was before the prompt. Where jumps
+/// walk, a picker of those rows (Pick.zig's `list`, titled by the plain
+/// word, `/dirty/`) in the tag of the pane its Enter lands in; else `/`'s
+/// query pane (Query.zig) and the selections as a +Search list.
fn asList(p: *Pardes, id: usize, pane: *Pane) void {
const s = &p.view().tag_state;
const op = s.prompt.op;
- if (!searches(op)) return;
+ if (!searches(op) and mode(op) == null) return;
+ if (s.prompt.bad) return;
var kept: [Field.max]u8 = undefined;
const typed = kept[0..s.field.len];
@memcpy(typed, s.field.text());
+ var said: [Trail.max_text]u8 = undefined;
+ var sw: std.Io.Writer = .fixed(&said);
+ _ = plainWord(&sw, op, typed) catch {};
+ // The word cut at a character's start to a picker's word's room.
+ const plain = sw.buffered();
+ const title = plain[0..modal.graphemeStart(plain, @min(plain.len, 24))];
+ var rows: std.Io.Writer.Allocating = .init(p.gpa);
+ defer rows.deinit();
+ const total = listRows(p, pane, op, &rows.writer) catch |err| return p.reportError(.at(id), "prompt", err);
s.kind = .rest;
TagState.toRest(p);
undo(p, pane, op);
- panes.Query.open(p, id, .text, typed, true);
+ if (total > panes.Query.max_rows) {
+ var cut: [96]u8 = undefined;
+ p.setMessage(.at(id), std.fmt.bufPrint(&cut, "{s}: the first {d} of {d} places", .{ title, panes.Query.max_rows, total }) catch "");
+ }
+ if (pardes.Pick.asked(p)) return pardes.Pick.open(p, id, .list, title, "", rows.written());
+ if (searches(op)) return panes.Query.open(p, id, .text, typed, true);
+ const content = rows.toOwnedSlice() catch |err| return p.reportError(.at(id), "prompt", err);
+ panes.Output.fillResults(p, id, panes.paneDir(pane), .search, title, content, null) catch |err| return p.reportError(.at(id), "prompt", err);
+}
+
+/// The live result of prompt `op` in `pane` as a list's rows,
+/// `path:line:col text` each, the first `Query.max_rows`: a search's
+/// places (every one found within a search's budget) or a sam prompt's
+/// selections. How many there were.
+fn listRows(p: *Pardes, pane: *Pane, op: Op, w: *std.Io.Writer) !usize {
+ const f = &pane.file.?;
+ const index = try File.lineIndex(p.gpa, f);
+ if (searches(op)) {
+ const set = &pane.places;
+ set.fill(p, pane, std.math.maxInt(usize), regexp.Regex.budget);
+ const hits = set.hits.items;
+ for (hits[0..@min(hits.len, panes.Query.max_rows)]) |h| try placeRow(w, f, index, h.start);
+ return hits.len;
+ }
+ var sels: [Text.max_selections]modal.Selection = undefined;
+ const got = pane.body.ranges(f.content, 0, &sels);
+ for (sels[0..@min(got.n, panes.Query.max_rows)]) |r| try placeRow(w, f, index, @min(r.anchor, r.head));
+ return got.n;
+}
+
+/// Byte `at` of file `f` as a list's row: its place (`path:line:col:`,
+/// look.parsePathLine's) and its line's text, the blanks it starts with
+/// off, cut to `row_text` bytes.
+fn placeRow(w: *std.Io.Writer, f: *const File.State, index: []const usize, at: usize) !void {
+ const row_text = 160;
+ const line = Places.lineOf(index, at);
+ const start = index[line];
+ const end = std.mem.indexOfScalarPos(u8, f.content, start, '\n') orelse f.content.len;
+ const text = std.mem.trimStart(u8, f.content[start..end], " \t");
+ try w.print("{s}:{d}:{d}: {s}\n", .{ f.path, line + 1, at - start + 1, text[0..modal.graphemeStart(text, @min(text.len, row_text))] });
}
/// The filters a pipe prompt runs live as it is typed: commands that
@@ -998,7 +1050,7 @@ fn strike(p: *Pardes, s: *Surface, pane: *Pane, r: pardes.Rect, line: i32, lo_:
}
/// The head of the prompt's tag: ` s self▌ = Exec Edit x/self/ 4
-/// selections in 6 lines ⏎ select · C-r history · esc`.
+/// selections in 6 lines ⏎ select · M-⏎ as a list · C-r history · esc`.
pub fn head(p: *Pardes, arena: std.mem.Allocator, pane: *Pane) !TagState.Head {
const s = &p.view().tag_state;
const pr = &s.prompt;
@@ -1197,7 +1249,7 @@ test "s asks in the tag's head: its key cell, the field, the plain word and the
try std.testing.expectEqual(TagState.Kind.prompt, p.view().tag_state.kind);
// No chip on the notice band: the prompt is the tag's.
try std.testing.expectEqual(Pane.Prompt.none, pane.prompt);
- try std.testing.expect(std.mem.endsWith(u8, try tagOf(p), " s ⏎ select · C-r history · esc"));
+ try std.testing.expect(std.mem.endsWith(u8, try tagOf(p), " s ⏎ select · M-⏎ as a list · C-r history · esc"));
typeKeys(p, "self");
try std.testing.expect(has(try tagOf(p), " s self = Exec Edit x/self/ 2 selections in 3 lines ⏎ select"));
try std.testing.expectEqual(@as(u16, 1), pane.body.nsel);
@@ -1329,7 +1381,7 @@ test "/ searches the body as it is typed: the current place selected, the gutter
try std.testing.expectEqual(@as(u8, 1), pane.trail.n);
}
-test "? searches back from the caret; no match is 0; a pattern that is no regex keeps the last places dimmed; Esc puts the body back; * makes the search word with no prompt; Alt-Enter keeps the places as the query pane's rows" {
+test "? searches back from the caret; no match is 0; a pattern that is no regex keeps the last places dimmed; Esc puts the body back; * makes the search word with no prompt" {
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 200, .rows = 30 });
defer p.deinit();
const pane = try p.setTestFile(dirty);
@@ -1354,11 +1406,6 @@ test "? searches back from the caret; no match is 0; a pattern that is no regex
typeKeys(p, "gge*");
try std.testing.expectEqual(TagState.Kind.rest, p.view().tag_state.kind);
try std.testing.expect(std.mem.startsWith(u8, try tagOf(p), "/\\bdirty\\b/ 1/7 › "));
- // Alt-Enter: the query pane, its line `/dirty`.
- typeKeys(p, "/dirty");
- p.update(.{ .key = .{ .cp = Key.enter, .alt = true } });
- try std.testing.expectEqual(TagState.Kind.rest, p.view().tag_state.kind);
- try std.testing.expect(p.panes[p.view().active].?.query != null);
}
test "sam prompts one after another make one recipe word, the Edit line it is; a motion ends it and the next starts the pane's one again; ! adds nothing; the scope fenced in the gutter, what K drops struck; Look puts its selections back, Exec runs it as Edit" {
@@ -1512,3 +1559,54 @@ test "a live run's framing says each run's output, stderr and status in a real s
// `grep x` finds nothing: exit 1 for both, an empty stderr.
try std.testing.expectEqualSlices(u8, &.{ 1, 1 }, p.pipe.preview.?.codes);
}
+
+test "Alt-Enter in / or s keeps the result as a list (SPEC §7.2): where jumps walk, a picker of a row a place in the tag of the pane its Enter lands in, the body as it was, its Enter the list word in the trail; more than a list holds, the first ones and a word saying so; under Jumps new-pane, /'s query pane as before" {
+ const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 200, .rows = 30 });
+ defer p.deinit();
+ const Pick = pardes.Pick;
+ const pane = try p.setTestFile(dirty);
+ typeKeys(p, "/dirty");
+ p.update(.{ .key = .{ .cp = Key.enter, .alt = true } });
+ const pk = Pick.live(p) orelse return error.TestUnexpectedResult;
+ try std.testing.expectEqual(Pick.Source.list, pk.source);
+ try std.testing.expectEqualStrings("/dirty/", pk.word.slice());
+ try std.testing.expectEqual(@as(usize, 7), Pick.count(p, pk));
+ try std.testing.expectEqual(pane.serial, p.view().tag_state.host);
+ try std.testing.expect(!pane.places.started);
+ // The third place (line 3's second `dirty`): Enter lands there, the
+ // list word before it.
+ p.update(.{ .key = .{ .cp = Key.down } });
+ p.update(.{ .key = .{ .cp = Key.down } });
+ p.update(.{ .key = .{ .cp = Key.enter } });
+ try std.testing.expectEqual(TagState.Kind.rest, p.view().tag_state.kind);
+ try std.testing.expectEqual(@as(i32, 2), pane.body.cur_row);
+ try std.testing.expectEqual(@as(i32, 10), pane.body.cur_col);
+ try std.testing.expect(has(try tagOf(p), "/dirty/ 3/7 › "));
+ // `s` over the whole text: its selections the rows, its word the Edit
+ // line it stands for; Esc rolls the list up, the selection as it was.
+ typeKeys(p, "%sdirty");
+ p.update(.{ .key = .{ .cp = Key.enter, .alt = true } });
+ const sel = Pick.live(p) orelse return error.TestUnexpectedResult;
+ try std.testing.expectEqualStrings("Edit x/dirty/", sel.word.slice());
+ try std.testing.expectEqual(@as(usize, 7), Pick.count(p, sel));
+ p.update(.{ .key = .{ .cp = Key.escape } });
+ try std.testing.expectEqual(TagState.Kind.rest, p.view().tag_state.kind);
+ try std.testing.expectEqual(@as(usize, 0), pane.body.nsel);
+ // More places than a list holds (Query.max_rows): the first ones.
+ const many = try std.testing.allocator.alloc(u8, 2 * (panes.Query.max_rows + 5));
+ defer std.testing.allocator.free(many);
+ for (0..panes.Query.max_rows + 5) |i| @memcpy(many[2 * i ..][0..2], "x\n");
+ _ = try p.setTestFile(many);
+ typeKeys(p, "/x");
+ p.update(.{ .key = .{ .cp = Key.enter, .alt = true } });
+ const big = Pick.live(p) orelse return error.TestUnexpectedResult;
+ try std.testing.expectEqual(@as(usize, panes.Query.max_rows), Pick.count(p, big));
+ try std.testing.expect(has(p.messages.saidBy(p.panes[p.view().active].?), "the first 2000 of 2005 places"));
+ p.update(.{ .key = .{ .cp = Key.escape } });
+ // Under Jumps new-pane, `/`'s query pane, as before.
+ p.settings.jumps = .@"new-pane";
+ typeKeys(p, "/x");
+ p.update(.{ .key = .{ .cp = Key.enter, .alt = true } });
+ try std.testing.expectEqual(TagState.Kind.rest, p.view().tag_state.kind);
+ try std.testing.expect(p.panes[p.view().active].?.query != null);
+}
diff --git a/core/Query.zig b/core/Query.zig
index a090929a..e64f5b89 100644
--- a/core/Query.zig
+++ b/core/Query.zig
@@ -2179,6 +2179,8 @@ test "parse: line 1's first word names the source" {
test "a / query: keystroke by keystroke, the owner shows the set, rows from its own rows alone, zero hits a state, Esc puts all back" {
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 40 });
defer p.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ p.settings.jumps = .@"new-pane";
const pane = try p.setTestFile("alpha one\nbeta\nalphabet\ngamma alpha\nalpha two\ndelta\n");
p.newScratchBelow(0);
const below = p.view().cols[0].panes[1];
@@ -2244,6 +2246,8 @@ test "a / query: keystroke by keystroke, the owner shows the set, rows from its
test "a dump holding a query pane, live or frozen, restores it as it was" {
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 40 });
defer p.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ p.settings.jumps = .@"new-pane";
_ = try p.setTestFile("alpha one\nbeta\nalphabet\n");
slash(p, "/alpha");
for (0..2) |_| {
@@ -2263,6 +2267,8 @@ test "a dump holding a query pane, live or frozen, restores it as it was" {
test "a / query: Enter lands and freezes, the register filled, n and N step silently, a later / reuses the pane and Esc brings the frozen rows back" {
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 40 });
defer p.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ p.settings.jumps = .@"new-pane";
const pane = try p.setTestFile("alpha one\nbeta\nalphabet\ngamma alpha\nalpha two\ndelta\n");
slash(p, "/alpha");
const qid = queryPane(p).?;
@@ -2536,6 +2542,8 @@ test "a language server's list: one answer lands with no pane, several open the
test "B1 on a query pane's rows places the caret and selects, nothing else, the current row's mark kept; j, k and n make a row current, Enter lands the current" {
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 40 });
defer p.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ p.settings.jumps = .@"new-pane";
const pane = try p.setTestFile("alpha one\nbeta\nalphabet\ngamma alpha\nalpha two\ndelta\n");
slash(p, "/alpha");
const qid = queryPane(p).?;
diff --git a/core/Stream.zig b/core/Stream.zig
index bcd4f4f8..e9e7793b 100644
--- a/core/Stream.zig
+++ b/core/Stream.zig
@@ -1331,6 +1331,8 @@ test "Stream: a big text's declarations are parsed on a worker, never the loop,
if (comptime !syntax.minimal_grammars) return error.SkipZigTest;
const p = try Pardes.init(testing.allocator, .{ .tty_only = true, .cols = 120, .rows = 40 });
defer p.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ p.settings.jumps = .@"new-pane";
var text: std.ArrayList(u8) = .empty;
defer text.deinit(testing.allocator);
for (0..4000) |i| try text.print(testing.allocator, "fn f{d}() void {{\n _ = needle;\n}}\n", .{i});
diff --git a/test/snapshots/msg.golden b/test/snapshots/msg.golden
index 01dbf380..a53cb8d3 100644
--- a/test/snapshots/msg.golden
+++ b/test/snapshots/msg.golden
@@ -49,7 +49,7 @@
|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 · C-r history · esc
+|3: ⏎ select · M-⏎ as a list · C-r history · esc
|4: 1 EXTERNAL
|5: ~
== snap prompt-wins grid=70x17 cursor=43,2
diff --git a/test/snapshots/selregex.golden b/test/snapshots/selregex.golden
index 1cfd5844..0cf3abed 100644
--- a/test/snapshots/selregex.golden
+++ b/test/snapshots/selregex.golden
@@ -1,7 +1,7 @@
== 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 s ⏎ select · C-r history · esc
+|^ /tmp/pardes-snap/selregex/cwd/m.zig Keep s ⏎ select · M-⏎ as a list · C-r history · esc
| 1┃const one = 1;
| 2┃const two = 2;
| 3┃const three = 3;
@@ -25,12 +25,12 @@
|
| /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 · C-r history · esc
+|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
|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-128 #becfc4,#2c2819,f 129-159 #becfc4,#2c2819,
+|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,
|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,
@@ -64,12 +64,12 @@
|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
+|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
|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-136 #becfc4,#2c2819,f 137-159 #becfc4,#2c2819,
+|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,
|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,