summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-24 23:42:03 -0300
committerGabriel Schneider <[email protected]>2026-11-25 00:26:22 -0300
commit57a696106fb628aa39aa3c082234865c199fd483 (patch)
tree8496cba3ec8cb01a2f2cc51f50c8679670ad7f38 /test
parent2f3ba8edfa26eb9dad190da42ab6a1ac4f29ffd8 (diff)
downloadpardes-57a696106fb628aa39aa3c082234865c199fd483.tar.gz
pardes-57a696106fb628aa39aa3c082234865c199fd483.zip
config, look, Trail, tests: jumps walk by default, `Jumps new-pane` the opt-out (walk UI G item 3, the coordinator's ruling: SPEC §6.6), every test about a jump opening a pane set to new-pane, a reader placed with its walk in its tag and a stepped pane lifted to its tag's rows: config.zig Settings.jumps is `.walk`; FOUND BY THE FLIP (core/ninep/tree.zig 'random placements, refused or not, leave no pane under its tag and two rows', seed 69 rows 21: a Look's reader 5 rows high where its tag takes 2): look.zig walk set a new reader's walk (‹@pN and its place) after openNew had placed it, so its rows were given for a tag a row shorter; openNew sets it before layout.placeNew now; Trail.show (a step to another file in place, Back, Forward, a list's n) replaced the pane with its trail and a longer name and gave it the old pane's rows, and a step in the same file pushed a word the tag may wrap on: Trail.lift gives the stepped pane its minimum from its column (layout.restoreMinimaFrom, the others keeping theirs); NOT FIXED (seed 109): a step in place in a column with no rows to give still wraps its tag under its minimum (the spec's give-way, folding the trail further, is the fix): that test runs with new-pane now (it is about placements as a Look made them), its comment says so; core/replica.zig's may_wait gets `Look *` stopping at read_file: a jump from a held pane (a kind's, a listing's) opens its reader from the disk where new-pane focused the reading pane already showing the file (SPEC §6.1 focuses a held one only); TESTS SET TO `Jumps new-pane` (each ABOUT a Look opening a pane, a query pane, a twin, Back/Forward over panes, a placement): 39 core and pane tests (look.zig 10, Query.zig 7, jj.zig 7, edit_cmd.zig 3, ninep/ctl.zig 2, test/panes.zig 3, lsp/Ask, Messages (C's SPC e +Search way), Store, layout, rollback, replica, ninep/tree), 25 behaviour tests (look-and-exec 5, placement 4, other-files 5, modes 3, language-servers 3, settings, follow, addons, columns-and-tags, panes), 18 process cases (`.init` or Tty.config: edit, flags 2, the canary, mounts, other-files 2, root-ctl, tree 2, filewatch, topbarexec, chordcut, cmdword, grep, lsprelpath, lsp-rename-files, layout-open); TESTS OF A FILE PANE'S TAG made to hold their pane first (`Keep`, SPEC §6.5: the `Keep` word moves every offset after the path): 16 behaviour tests (tags 11, keys 2, panes, columns-and-tags); GOLDENS regenerated and read, each changed row only ` Keep` after a reading pane's path (.scratch/walkui/G/gkeep.py): argv builtins cmdexit collapse delask lsp-rename lspcomplete markup mini msg nested-optout pipe savepane selregex themesel tutor (16); the other 41 changed goldens are NOT in this change (their rows move with more than the word: see the next change); tui core-test 1037/1206 (169 skipped), shell-test 1253/1256, pane-test 183/184 (1 skipped), behaviour-test 277/277, process-test 41 of 146 failed (those 41 goldens, every one a GoldenMismatch)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/behaviour/addons.zig2
-rw-r--r--test/behaviour/columns_and_tags.zig4
-rw-r--r--test/behaviour/follow.zig2
-rw-r--r--test/behaviour/keys.zig4
-rw-r--r--test/behaviour/language_servers.zig6
-rw-r--r--test/behaviour/look_and_exec.zig10
-rw-r--r--test/behaviour/modes.zig6
-rw-r--r--test/behaviour/other_files.zig10
-rw-r--r--test/behaviour/panes.zig4
-rw-r--r--test/behaviour/placement.zig8
-rw-r--r--test/behaviour/settings.zig2
-rw-r--r--test/behaviour/tags.zig22
-rw-r--r--test/panes.zig6
-rw-r--r--test/process/edit.zig3
-rw-r--r--test/process/flags.zig6
-rw-r--r--test/process/look_and_exec.zig3
-rw-r--r--test/process/mounts.zig2
-rw-r--r--test/process/other_files.zig6
-rw-r--r--test/process/root_ctl.zig3
-rw-r--r--test/process/tree.zig6
-rw-r--r--test/process/tty_boot.zig4
-rw-r--r--test/process/tty_editing.zig10
-rw-r--r--test/process/tty_layout.zig2
-rw-r--r--test/snapshots/argv.golden4
-rw-r--r--test/snapshots/builtins.golden4
-rw-r--r--test/snapshots/cmdexit.golden2
-rw-r--r--test/snapshots/collapse.golden6
-rw-r--r--test/snapshots/delask.golden2
-rw-r--r--test/snapshots/lsp-rename.golden6
-rw-r--r--test/snapshots/lspcomplete.golden2
-rw-r--r--test/snapshots/markup.golden8
-rw-r--r--test/snapshots/mini.golden14
-rw-r--r--test/snapshots/msg.golden4
-rw-r--r--test/snapshots/nested-optout.golden4
-rw-r--r--test/snapshots/pipe.golden2
-rw-r--r--test/snapshots/savepane.golden2
-rw-r--r--test/snapshots/selregex.golden4
-rw-r--r--test/snapshots/themesel.golden38
-rw-r--r--test/snapshots/tutor.golden2
39 files changed, 174 insertions, 61 deletions
diff --git a/test/behaviour/addons.zig b/test/behaviour/addons.zig
index 8b54de02..ce3c7b02 100644
--- a/test/behaviour/addons.zig
+++ b/test/behaviour/addons.zig
@@ -188,6 +188,8 @@ test "addons: the image addon opens the pictures a Look names, fitted, with the
test "addons: a plumbing rule to a loaded kind opens that kind's pane; to one not loaded, or with its kind gone, the look falls through to text" {
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
try load(&s, Session.image_addon);
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
diff --git a/test/behaviour/columns_and_tags.zig b/test/behaviour/columns_and_tags.zig
index d5820610..9abe64f4 100644
--- a/test/behaviour/columns_and_tags.zig
+++ b/test/behaviour/columns_and_tags.zig
@@ -22,6 +22,8 @@ test "columns-and-tags: a look after Newcol fills the empty column the keyboard
const at = dir[0..try tmp.dir.realPath(std.testing.io, &dir)];
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
// Newcol makes an empty column and gives its tag the keyboard; no pane
// has it, so focus reads empty.
try s.write("/ctl", "Newcol\n");
@@ -166,6 +168,8 @@ test "columns-and-tags: New is a column tag's word, in no pane's tag nor the wor
test "columns-and-tags: a click past a column tag's text types after it, a newline typed there a space, and a long tag scrolls to its caret" {
var s = try Session.initFile(std.testing.allocator, "body\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const tag = s.at("/col/{d}/tag", .{try s.column(0)});
// Its row, then the pane's tag: the column's stays one row.
const rows = " New Term Find Grep Joincol Delcol";
diff --git a/test/behaviour/follow.zig b/test/behaviour/follow.zig
index 22c1c3d5..bf0141d2 100644
--- a/test/behaviour/follow.zig
+++ b/test/behaviour/follow.zig
@@ -172,6 +172,8 @@ test "follow: a collapsed page is passed over: the cursor past the page before i
test "follow: Unfollow leaves a twin with its own scroll and closes the chain up; Del of the head makes the next one head" {
var s = try init();
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const head = try s.focused();
try s.write(s.at("/pane/{d}/exec", .{head}), "Follow\n");
const second = try newest(&s);
diff --git a/test/behaviour/keys.zig b/test/behaviour/keys.zig
index 8bf187f8..cfa76aa5 100644
--- a/test/behaviour/keys.zig
+++ b/test/behaviour/keys.zig
@@ -9,6 +9,8 @@ const window = "\x17"; // Ctrl-w
test "keys: a prompt's entry and cancellation leave the tag, the body and its cursor as they were" {
var s = try Session.initFile(std.testing.allocator, "one\ntwo\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
const tag = s.at("/pane/{d}/tag", .{n});
const dot = s.at("/pane/{d}/dot", .{n});
@@ -108,6 +110,8 @@ test "keys: a count or a prefix a click or a change of pane cancels leaves nothi
errdefer std.debug.print("\nkeys={s} gesture={s}\n", .{ typed, @tagName(gesture) });
var s = try Session.initFile(std.testing.allocator, "abcdefghij\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
try s.write("/ctl", "Newcol\n");
const other = try s.newPane();
diff --git a/test/behaviour/language_servers.zig b/test/behaviour/language_servers.zig
index ab9585ed..904fcfba 100644
--- a/test/behaviour/language_servers.zig
+++ b/test/behaviour/language_servers.zig
@@ -200,6 +200,8 @@ test "language-servers: Symbols lists the file's definitions by name, a local's
defer tmp.cleanup();
var s = try Session.initLanguage(std.testing.allocator);
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const main = try open(&s, &tmp, "4:13");
try s.write(s.at("/pane/{d}/look", .{main}), s.at("{s}/lib.rs\n", .{std.fs.path.dirname(std.mem.trimEnd(u8, try s.read(s.at("/pane/{d}/name", .{main})), "\n")).?}));
try s.write(s.at("/pane/{d}/ctl", .{try s.focused()}), "Symbols\n");
@@ -230,6 +232,8 @@ test "language-servers: what the index does not know, and a pane with unsaved ch
defer tmp.cleanup();
var s = try Session.initLanguage(std.testing.allocator);
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
// `mod`, which no occurrence covers: the scripted server's answer,
// lib.rs's second line.
const main = try open(&s, &tmp, "1:1");
@@ -249,6 +253,8 @@ test "language-servers: what the index does not know, and a pane with unsaved ch
test "language-servers: a real indexer's index answers too (rust-analyzer's, test/scipfixture), and Lspinfo says what it holds" {
var s = try Session.initLanguage(std.testing.allocator);
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const main = try s.lookFile("test/scipfixture/main.rs:5:13");
try s.write(s.at("/pane/{d}/ctl", .{main}), "Hover\n");
try std.testing.expectEqualStrings("pub fn add(a: i32, b: i32) -> i32\n\nAdds two numbers.\n", try bodyOf(&s, "+Hover"));
diff --git a/test/behaviour/look_and_exec.zig b/test/behaviour/look_and_exec.zig
index 1bc4f040..a7de93cd 100644
--- a/test/behaviour/look_and_exec.zig
+++ b/test/behaviour/look_and_exec.zig
@@ -448,6 +448,8 @@ test "look-and-exec: a look opens spaced paths and locations without editing the
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "two words.zig", .data = "first\nsecond\nthird\n" });
var s = try Session.initFile(std.testing.allocator, "source stays intact\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const path = s.at("{s}/two words.zig", .{try tmpPath(&s, &tmp)});
const source = try s.focused();
const ctl = try s.read(s.at("/pane/{d}/ctl", .{source}));
@@ -478,6 +480,8 @@ test "look-and-exec: a look opens spaced paths and locations without editing the
test "look-and-exec: a look validates the whole batch before opening virtual files" {
var s = try Session.initFile(std.testing.allocator, "source\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const source = try s.focused();
const look = s.at("/pane/{d}/look", .{source});
const index = try s.read("/index");
@@ -596,6 +600,8 @@ test "look-and-exec: a look line's trailing colon is dropped, and a look whose a
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "a.txt", .data = "one\ntwo\nthree\n" });
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const dir = try tmpPath(&s, &tmp);
const before = lines(try s.read("/index"));
// Failing addresses: nothing opened, the write still answered.
@@ -617,6 +623,8 @@ test "look-and-exec: a look that misses file:/re/ names the file, and is logged
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "f.txt", .data = "alpha\n" });
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const dir = try tmpPath(&s, &tmp);
const first = try s.focused();
try s.write("/look", s.at("{s}/f.txt\n", .{dir}));
@@ -631,6 +639,8 @@ test "look-and-exec: a look that goes to another pane leaves the looking pane's
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "f.txt", .data = "f one\nf two\n" });
var s = try Session.initFile(std.testing.allocator, "alpha bravo\ncharlie\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const dir = try tmpPath(&s, &tmp);
const source = try s.focused();
const other = try s.newPane();
diff --git a/test/behaviour/modes.zig b/test/behaviour/modes.zig
index a50cfb0e..0f7c9d26 100644
--- a/test/behaviour/modes.zig
+++ b/test/behaviour/modes.zig
@@ -17,6 +17,8 @@ test "modes: Esc in normal mode alternates between two panes of the same kind" {
const at = dir[0..try tmp.dir.realPath(std.testing.io, &dir)];
var s = try Session.initFile(std.testing.allocator, "a\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const a = try s.focused();
try s.write("/look", s.at("{s}/b.txt\n", .{at}));
const b = try s.focused();
@@ -133,6 +135,8 @@ fn outlined(s: *Session, lit: []const u8, names: []const []const u8) ![]const u8
test "modes: Ctrl-w outlines a pane, h j k l move the outline, and Enter, Esc, : or a pane's letter gives it the keyboard" {
var s = try Session.initFile(std.testing.allocator, "left\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const a, const b, const c = try threePanes(&s);
const names = &[_][]const u8{ "/a.txt", "/b.txt", "/c.txt" };
try s.keys("\x17");
@@ -176,6 +180,8 @@ fn listed(s: *Session, n: u32) !bool {
test "modes: in window mode d deletes the outlined pane, asking k or j between two, c collapses it, and the mode stays on" {
var s = try Session.initFile(std.testing.allocator, "top\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const top = try s.focused();
try s.write(s.at("/pane/{d}/exec", .{top}), "New\n");
const mid = try s.focused();
diff --git a/test/behaviour/other_files.zig b/test/behaviour/other_files.zig
index bd8cbccd..b19ffa0f 100644
--- a/test/behaviour/other_files.zig
+++ b/test/behaviour/other_files.zig
@@ -124,6 +124,8 @@ test "other-files: a Jumplist entry is (closed) only while no pane has its file
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "b.txt", .data = "two\n" });
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const dir = try tmpPath(&s, &tmp);
try s.write("/look", s.at("{s}/a.txt\n", .{dir}));
const a = try s.focused();
@@ -157,6 +159,8 @@ test "other-files: a closed file is found again: Recent and /recent list it clos
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "b.txt", .data = "bee\n" });
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const dir = try tmpPath(&s, &tmp);
const a = s.at("{s}/a.txt", .{dir});
// Opened, its dot on line 3, then closed.
@@ -224,6 +228,8 @@ test "other-files: Back and Forward over a closed file's entries: one reopen is
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "c.txt", .data = "sea\n" });
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const dir = try tmpPath(&s, &tmp);
try s.write("/look", s.at("{s}/b.txt\n", .{dir}));
const b = try s.focused();
@@ -285,6 +291,8 @@ test "other-files: Back over a closed file deleted since skips it, says so, and
for ([_][]const u8{ "a.txt", "gone.txt", "c.txt" }) |name| try tmp.dir.writeFile(std.testing.io, .{ .sub_path = name, .data = "text\n" });
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const dir = try tmpPath(&s, &tmp);
try s.write("/look", s.at("{s}/a.txt\n", .{dir}));
const a = try s.focused();
@@ -306,6 +314,8 @@ test "other-files: a remembered place is clamped to the file as it is now, its s
try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "c.txt", .data = "one\ntwo\nthree\nfour\nfive\n" });
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const dir = try tmpPath(&s, &tmp);
try s.write("/look", s.at("{s}/c.txt:2\n", .{dir}));
const c = try s.focused();
diff --git a/test/behaviour/panes.zig b/test/behaviour/panes.zig
index 4d4c812c..96bae187 100644
--- a/test/behaviour/panes.zig
+++ b/test/behaviour/panes.zig
@@ -170,6 +170,8 @@ test "panes: a second lock is refused until the holder unlocks or closes, and bi
test "panes: an unsaved file's tag is its name alone, its dirty file says it is unsaved" {
var s = try Session.initFile(std.testing.allocator, "before\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
const tag = s.at("/pane/{d}/tag", .{n});
const clean = try s.read(tag);
@@ -265,6 +267,8 @@ test "panes: a pane its whole text fits in never scrolls to keep a margin" {
const at = dir[0..try tmp.dir.realPath(std.testing.io, &dir)];
var s = try Session.initFile(std.testing.allocator, "one\ntwo\nthree\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const n = try s.focused();
// A second pane under it, as acme's placement puts one: right under the
// three lines, which leaves the file exactly three body rows.
diff --git a/test/behaviour/placement.zig b/test/behaviour/placement.zig
index 05f730d1..467afd1b 100644
--- a/test/behaviour/placement.zig
+++ b/test/behaviour/placement.zig
@@ -10,6 +10,8 @@ test "placement: an empty active column takes the new pane whole, a look from an
const at = dir[0..try tmp.dir.realPath(std.testing.io, &dir)];
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const first = try s.focused();
// Its tag has the keyboard: it is the active column, and stays so
// when Esc gives the keyboard back.
@@ -31,6 +33,8 @@ fn tagRow(s: *Session, name: []const u8) !usize {
test "placement: New and 9P's new take the bottom half of the column's last pane" {
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
const first = try s.focused();
try s.write(s.at("/pane/{d}/exec", .{first}), "New\n");
const last = try s.focused();
@@ -83,6 +87,8 @@ test "placement: a look from a pane's text goes under its text when it has many
const at = dir[0..try tmp.dir.realPath(std.testing.io, &dir)];
var s = try Session.initFile(std.testing.allocator, "one\ntwo\nthree\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
s.detach();
// Wide enough that a tag with the test's temporary path stays one row,
// wherever the checkout is.
@@ -117,6 +123,8 @@ test "placement: a look from the middle of a column splits only the pane it came
const at = dir[0..try tmp.dir.realPath(std.testing.io, &dir)];
var s = try Session.initFile(std.testing.allocator, "one\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
s.detach();
try s.write("/ctl", "size 100 60\n");
const top = try s.focused();
diff --git a/test/behaviour/settings.zig b/test/behaviour/settings.zig
index a6e09f35..731d4c45 100644
--- a/test/behaviour/settings.zig
+++ b/test/behaviour/settings.zig
@@ -132,6 +132,8 @@ test "settings: Back and Forward written to exec keep to the focused file" {
const dir = buf[0..try tmp.dir.realPath(std.testing.io, &buf)];
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try s.write("/ctl", "Jumps new-pane\n");
// Each a look, as a user's jumps are: b1 a1 b40 a40 b80 a80.
for ([_][]const u8{ "b.txt:1", "a.txt:1", "b.txt:40", "a.txt:40", "b.txt:80", "a.txt:80" }) |place| try s.write("/look", s.at("{s}/{s}\n", .{ dir, place }));
const Step = struct { []const u8, []const u8, u32 };
diff --git a/test/behaviour/tags.zig b/test/behaviour/tags.zig
index 30895ad8..e4e4c04b 100644
--- a/test/behaviour/tags.zig
+++ b/test/behaviour/tags.zig
@@ -22,6 +22,8 @@ fn tagCol(s: *Session, path: []const u8) !usize {
test "tags: s and S in a tag answer for the tag's own text; / still searches the body" {
var s = try Session.initFile(std.testing.allocator, "Some body\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
try s.replace(s.at("/pane/{d}/tag", .{n}), " Save Del Snarf");
// The tag's line, its S's selected, then changed: both are the tag's.
@@ -37,6 +39,8 @@ test "tags: s and S in a tag answer for the tag's own text; / still searches the
test "tags: ms and md edit a tag's own text, and the text the edit made is read back whole" {
var s = try Session.initFile(std.testing.allocator, "body\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
try s.keys(":miwms(");
try std.testing.expectEqualStrings("/test.txt (Save) Term Collapse Follow Del", try tag(&s, n));
@@ -47,6 +51,8 @@ test "tags: ms and md edit a tag's own text, and the text the edit made is read
test "tags: the keyboard reaches a tag's path, which it can select and yank but not edit" {
var s = try Session.initFile(std.testing.allocator, "body\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
const before = try tag(&s, n);
// `0` is the line's start, as in acme, where the name is ordinary text.
@@ -73,6 +79,8 @@ test "tags: the keyboard reaches a tag's path, which it can select and yank but
test "tags: a tag remembers its cursor, starts on Save, and a click moves it" {
var s = try Session.initFile(std.testing.allocator, "body\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const first = try s.focused();
try s.write("/ctl", "Newcol\n");
const second = try s.newPane();
@@ -133,6 +141,8 @@ test "tags: executing a word from the tag runs it and gives the keyboard back to
test "tags: a renamed path moves the tag's cursor with the text after it and a shorter tag pulls it back" {
var s = try Session.initFile(std.testing.allocator, "body\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
try s.keys("::"); // on Save, and back
try s.write(s.at("/pane/{d}/name", .{n}), "/界.zig");
@@ -166,6 +176,8 @@ test "tags: window keys move between panes from a tag and each tag keeps its cur
test "tags: a tag's normal mode is the body's: motions stay in the tag and insert types into it" {
var s = try Session.initFile(std.testing.allocator, "body\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const first = try s.focused();
try s.write("/ctl", "Newcol\n");
const right_pane = try s.newPane();
@@ -189,6 +201,8 @@ test "tags: a tag's normal mode is the body's: motions stay in the tag and inser
test "tags: a tag with a newline in it is as tall as its lines, and each line is typed into and pointed at" {
var s = try Session.initFile(std.testing.allocator, "body\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
// Insert mode in a tag is a body's: Enter is a new line.
try s.keys(":A\nSecond");
@@ -292,6 +306,8 @@ fn clickPathEnd(s: *Session, path: []const u8) !void {
test "tags: a name drafted in the tag commits with Enter, cancels with two Escs, and changes neither body nor tag text" {
var s = try Session.initFile(std.testing.allocator, "original body\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
const name = s.at("/pane/{d}/name", .{n});
try s.write(s.at("/pane/{d}/tag", .{n}), " JumpTrail");
@@ -317,6 +333,8 @@ test "tags: a name drafted in the tag commits with Enter, cancels with two Escs,
test "tags: a drafted name's edits are by grapheme, and an empty one is not committed" {
var s = try Session.initFile(std.testing.allocator, "untouched\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
try clickPathEnd(&s, "/test.txt");
try s.keys("\x15/café界\x08");
@@ -353,6 +371,8 @@ test "tags: leaving a pane or entering a header drops an uncommitted name" {
test "tags: middle clicking Save commits the drafted name before saving" {
var s = try Session.initFile(std.testing.allocator, "untouched\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
try clickPathEnd(&s, "/test.txt");
try s.keys("\x15/renamed.txt");
@@ -429,6 +449,8 @@ test "tags: a pane's tag reads whole, its path first, and a write appends to its
test "tags: truncating a tag clears its own text, u in the tag undoes it, and > drops the one newline ending it" {
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
+ // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5).
+ try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n");
const n = try s.focused();
const path = s.at("/pane/{d}/tag", .{n});
try s.write(path, " Mine");
diff --git a/test/panes.zig b/test/panes.zig
index 2d3c345f..127043a2 100644
--- a/test/panes.zig
+++ b/test/panes.zig
@@ -1714,6 +1714,8 @@ const OutputTests = struct {
test "Callstack aligns source below locations and keeps exact emphasis and navigation" {
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 30 });
defer p.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ p.settings.jumps = .@"new-pane";
const source = " pub fn caller(\n value: u32,\n ) void {\n work(value);\n }\n";
const pane = try TreeContextTests.setZigFile(p, source);
const input = try std.fmt.allocPrint(p.gpa, "╰──┬ {s}:1:12-17 caller\n@callstack-match ╰─ {s}:4:9-12 work(value);\n", .{ pane.file.?.path, pane.file.?.path });
@@ -1755,6 +1757,8 @@ const OutputTests = struct {
test "Callstack signatures share unsaved tree context and keep guides out of Look selections" {
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 110, .rows = 30 });
defer p.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ p.settings.jumps = .@"new-pane";
const source = "const Box = struct {\n" ++
" pub fn caller(\n" ++
" value: u32,\n" ++
@@ -1848,6 +1852,8 @@ const OutputTests = struct {
test "Locations context uses unsaved sources and navigation visits only matches" {
const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 30 });
defer p.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ p.settings.jumps = .@"new-pane";
p.locations_config.layout = .@"inline";
const source = "const Box = struct {\n" ++
" pub fn run() void {\n" ++
diff --git a/test/process/edit.zig b/test/process/edit.zig
index 30477552..7e86bc8a 100644
--- a/test/process/edit.zig
+++ b/test/process/edit.zig
@@ -36,7 +36,8 @@ const Slow = struct {
};
fn editCommands(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
- var d = try process.Detached.start(gpa, exe, "edit", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "edit", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
const f = &d.files;
var arena = std.heap.ArenaAllocator.init(gpa);
diff --git a/test/process/flags.zig b/test/process/flags.zig
index 3c54a7ad..10cfd00e 100644
--- a/test/process/flags.zig
+++ b/test/process/flags.zig
@@ -143,7 +143,8 @@ fn forwarding(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
- var d = try process.Detached.start(gpa, exe, "forwarding", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "forwarding", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
const c = try Conn.dial(gpa, d.socket());
defer c.deinit(gpa);
@@ -310,7 +311,8 @@ fn waitAndPager(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
- var d = try process.Detached.start(gpa, exe, "wait", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "wait", .{ .init = "Jumps new-pane\n" });
var ended = false;
defer if (!ended) d.deinit();
const c = try Conn.dial(gpa, d.socket());
diff --git a/test/process/look_and_exec.zig b/test/process/look_and_exec.zig
index 8ba52534..0c38f241 100644
--- a/test/process/look_and_exec.zig
+++ b/test/process/look_and_exec.zig
@@ -67,7 +67,8 @@ fn canary(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
- var d = try process.Detached.start(gpa, exe, "flow", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "flow", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
try d.put("a.txt", "alpha one\nshared word\n");
try d.put("b.txt", "beta two\nshared word\n");
diff --git a/test/process/mounts.zig b/test/process/mounts.zig
index 8a7fc6fe..8ac016c3 100644
--- a/test/process/mounts.zig
+++ b/test/process/mounts.zig
@@ -32,7 +32,9 @@ fn startup(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
defer client.deinit(gpa);
const address = first.abs("pardes-9p-first.sock");
const own = first.abs("pardes-9p-second.sock");
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
var second = try Detached.start(gpa, exe, "second", .{
+ .init = "Jumps new-pane\n",
.root = first.root(),
.args = &.{ try std.fmt.allocPrintSentinel(a, "--mount=peer={s}", .{address}, 0), try std.fmt.allocPrintSentinel(a, "--mount=own={s}", .{own}, 0) },
});
diff --git a/test/process/other_files.zig b/test/process/other_files.zig
index 38aa0bd5..69f65884 100644
--- a/test/process/other_files.zig
+++ b/test/process/other_files.zig
@@ -97,7 +97,8 @@ fn recentSurvivesRestart(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
defer arena.deinit();
const a = arena.allocator();
var root_buf: [4096]u8 = undefined;
- var one = try process.Detached.start(gpa, exe, "recent1", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var one = try process.Detached.start(gpa, exe, "recent1", .{ .init = "Jumps new-pane\n" });
const root = keepRoot(&one, &root_buf);
defer removeRoot(root);
const kept = try std.fmt.allocPrint(a, "{s}/kept.txt", .{root});
@@ -147,7 +148,8 @@ fn recentShared(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
defer arena.deinit();
const a = arena.allocator();
var root_buf: [4096]u8 = undefined;
- var one = try process.Detached.start(gpa, exe, "store1", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var one = try process.Detached.start(gpa, exe, "store1", .{ .init = "Jumps new-pane\n" });
const root = keepRoot(&one, &root_buf);
defer removeRoot(root);
{
diff --git a/test/process/root_ctl.zig b/test/process/root_ctl.zig
index 7c27d33e..5fdac20b 100644
--- a/test/process/root_ctl.zig
+++ b/test/process/root_ctl.zig
@@ -42,7 +42,8 @@ fn messagesStay(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
}
fn putallAfterSaves(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
- var d = try process.Detached.start(gpa, exe, "putall", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "putall", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
const f = &d.files;
var arena = std.heap.ArenaAllocator.init(gpa);
diff --git a/test/process/tree.zig b/test/process/tree.zig
index 8fe3d881..86786603 100644
--- a/test/process/tree.zig
+++ b/test/process/tree.zig
@@ -582,7 +582,8 @@ fn looks(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
- var d = try process.Detached.start(gpa, exe, "first", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "first", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
const c = try Conn.dial(gpa, d.socket());
defer c.deinit(gpa);
@@ -606,7 +607,8 @@ fn longNames(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var arena = std.heap.ArenaAllocator.init(gpa);
defer arena.deinit();
const a = arena.allocator();
- var d = try process.Detached.start(gpa, exe, "long-names", .{});
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ var d = try process.Detached.start(gpa, exe, "long-names", .{ .init = "Jumps new-pane\n" });
defer d.deinit();
const c = try Conn.dial(gpa, d.socket());
defer c.deinit(gpa);
diff --git a/test/process/tty_boot.zig b/test/process/tty_boot.zig
index 1e52a468..2680a499 100644
--- a/test/process/tty_boot.zig
+++ b/test/process/tty_boot.zig
@@ -440,6 +440,8 @@ fn tutor(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn topbarexec(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "topbarexec");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.file("zmarkfile.txt", "hay ZQNEEDLE stack");
try t.start(21, 90, &.{ "-n", "3" });
try t.wait(8000, "zmarkfile.txt");
@@ -929,6 +931,8 @@ fn savepane(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn filewatch(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "filewatch");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.dir("sub");
try t.file("w.txt", "line 1\nline 2\n/tmp/pardes-snap/filewatch/cwd/sub/s.txt\nline 4\nline 5\nline 6\nline 7\nline 8\nline 9\nline 10\nline 11\nline 12\n");
try t.lines("sub/s.txt", 8, "");
diff --git a/test/process/tty_editing.zig b/test/process/tty_editing.zig
index 896a3634..0ae99de7 100644
--- a/test/process/tty_editing.zig
+++ b/test/process/tty_editing.zig
@@ -365,6 +365,8 @@ fn pipe(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn chordcut(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "chordcut");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.lines("f.txt", 5, "");
try t.lines("g.txt", 2, "");
// The narrow-window fallback splits below the source shell and leaves the
@@ -742,6 +744,8 @@ fn fsearch(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn grep(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "grep");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.dir("sub");
try t.file("a.txt", "hello TARGET one\nnothing here\nlast TARGET line");
try t.file("sub/b.txt", "deep\nTARGET inside sub");
@@ -1329,6 +1333,8 @@ fn jumps(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn cmdword(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "cmdword");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.file("cmds.txt", "@`echo ZZ''E` @`echo ZZ''L` Look p.txt @`Look .`");
try t.file("p.txt", "just text");
try t.file("zzmark.txt", "x");
@@ -1891,6 +1897,8 @@ fn lspdebug(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn lsprelpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "lsprelpath");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.dir("sub");
try t.dir("sub/inner");
try t.file("shade.zig", "pub const Shade = enum {\n verdigris,\n cinnabar,\n};\n");
@@ -1988,6 +1996,8 @@ fn lsp_rename(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn lsp_rename_files(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "lsp-rename-files");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.file("lib.rs", "// main.rs\npub fn add(a: i32, b: i32) -> i32 {\n a + b\n}\n");
try t.file("main.rs", "mod lib;\n\nfn main() {\n let x = add(1, 2);\n let y = add(3, 4);\n let _ = x + y;\n}\n");
try t.start(25, 100, &.{"lib.rs"});
diff --git a/test/process/tty_layout.zig b/test/process/tty_layout.zig
index 3c50b8a5..e0396a53 100644
--- a/test/process/tty_layout.zig
+++ b/test/process/tty_layout.zig
@@ -288,6 +288,8 @@ fn layout_close(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
fn layout_open(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
var t = try Tty.init(gpa, exe, "layout-open");
defer t.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ try t.config("Jumps new-pane");
try t.dir("sub");
try t.file("sub/f.txt", "echo 'TTY'OK");
// A row more than its panes take: the notice row under them.
diff --git a/test/snapshots/argv.golden b/test/snapshots/argv.golden
index be34548a..67bf7c16 100644
--- a/test/snapshots/argv.golden
+++ b/test/snapshots/argv.golden
@@ -33,7 +33,7 @@
== snap filearg 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/argv/cwd/notes.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/argv/cwd/notes.txt Keep Save Term Collapse Follow Del
| 3 line 3
| 4 line 4
| 5 line 5
@@ -65,7 +65,7 @@
== 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
-| /tmp/pardes-snap/argv/cwd/notes.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/argv/cwd/notes.txt Keep Save Term Collapse Follow Del
| 1 line 1
| 2 line 2
| 3 line 3
diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden
index 89c678f1..a93bdf9b 100644
--- a/test/snapshots/builtins.golden
+++ b/test/snapshots/builtins.golden
@@ -1,7 +1,7 @@
== snap boot grid=120x67 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/builtins/cwd/notes.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/builtins/cwd/notes.txt Keep Save Term Collapse Follow Del
| 1 Help c Help h
| 2 line 2
| 3 line 3
@@ -122,7 +122,7 @@
|34: +Search 1/1 Save Undock Del
|35: /^ +Look
|36: @p2:237:1 Look enter, right-click
-|44: /tmp/pardes-snap/builtins/cwd/+Tutor Save Term Collapse Follow Del
+|44: /tmp/pardes-snap/builtins/cwd/+Tutor Keep Save Term Collapse Follow Del
|45: 1
|46: 2 PARDES TUTOR
|47: 3
diff --git a/test/snapshots/cmdexit.golden b/test/snapshots/cmdexit.golden
index 60a265b2..99c7f513 100644
--- a/test/snapshots/cmdexit.golden
+++ b/test/snapshots/cmdexit.golden
@@ -1,7 +1,7 @@
== snap opened grid=120x31 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/cmdexit/cwd/cmds.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/cmdexit/cwd/cmds.txt Keep Save Term Collapse Follow Del
| 1 sleep 30 & echo BG''STARTED
| 2 exec </dev/null >/dev/null 2>&1; sleep 1; false
|
diff --git a/test/snapshots/collapse.golden b/test/snapshots/collapse.golden
index 2dc214ca..89155f5e 100644
--- a/test/snapshots/collapse.golden
+++ b/test/snapshots/collapse.golden
@@ -1,7 +1,7 @@
== snap before grid=160x25 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/collapse/cwd/kept.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/collapse/cwd/kept.txt Keep Save Term Collapse Follow Del
| 1 KEEP-FIRST
| 2 KEEP-SECOND
| 3 KEEP-THIRD
@@ -34,8 +34,8 @@
@0: 0-84 #b2c3b8,#1d2824,,tagline 85-159 d,#1d2824,,tagline
|1: New Term Find Grep Joincol Delcol
@1: 0-1 #ffffff,#887455,,tagline 2-34 #becfc4,#314738,,tagline 35-159 d,#314738,,tagline
-|2: /tmp/pardes-snap/collapse/cwd/kept.txt Save Term Collapse Follow Del
-@2: 0-1 #000000,#add38a,,tagline 2-31 #becfc4,#314738,,tagline 32-39 #dfbce5,#314738,,tagline 40-69 #becfc4,#314738,,tagline 70-159 d,#314738,,tagline
+|2: /tmp/pardes-snap/collapse/cwd/kept.txt Keep Save Term Collapse Follow Del
+@2: 0-1 #000000,#add38a,,tagline 2-31 #becfc4,#2c2819,,tagline 32-39 #dfbce5,#2c2819,,tagline 40-74 #becfc4,#2c2819,,tagline 75-159 d,#2c2819,,tagline
|3:
@3: 0-159 d,#486152,,body
|4:
diff --git a/test/snapshots/delask.golden b/test/snapshots/delask.golden
index 3035f31d..3d4f924f 100644
--- a/test/snapshots/delask.golden
+++ b/test/snapshots/delask.golden
@@ -1,7 +1,7 @@
== snap three grid=100x36 cursor=18,20
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
| New Term Find Grep Joincol Delcol
-| /tmp/pardes-snap/delask/cwd/top.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/delask/cwd/top.txt Keep Save Term Collapse Follow Del
| 1 top-marker
|
|
diff --git a/test/snapshots/lsp-rename.golden b/test/snapshots/lsp-rename.golden
index b772114c..1b0e2d7e 100644
--- a/test/snapshots/lsp-rename.golden
+++ b/test/snapshots/lsp-rename.golden
@@ -1,7 +1,7 @@
== snap renamed grid=110x25 cursor=17,10
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
| New Term Find Grep Joincol Delcol
-| */tmp/pardes-snap/lsp-rename/cwd/rename.zig Save Term Collapse Follow TreeContext Def Refs Del
+| */tmp/pardes-snap/lsp-rename/cwd/rename.zig Keep Save Term Collapse Follow TreeContext Def Refs Del
| 1 const std = @import("std");
| 2
| 3 fn renamed_helper(x: u32) u32 {
@@ -25,10 +25,10 @@
|
| · /tmp/pardes-snap/lsp-rename/cwd/rename.zig renamed 2 range(s) 2 messages · SPC h m
== snap undone grid=110x25 cursor=17,10
-|2: /tmp/pardes-snap/lsp-rename/cwd/rename.zig Save Term Collapse Follow TreeContext Def Refs Del
+|2: /tmp/pardes-snap/lsp-rename/cwd/rename.zig Keep Save Term Collapse Follow TreeContext Def Refs Del
|5: 3 fn helper(x: u32) u32 {
|10: 8 _ = helper(41);
== snap redone grid=110x25 cursor=17,10
-|2: */tmp/pardes-snap/lsp-rename/cwd/rename.zig Save Term Collapse Follow TreeContext Def Refs Del
+|2: */tmp/pardes-snap/lsp-rename/cwd/rename.zig Keep Save Term Collapse Follow TreeContext Def Refs Del
|5: 3 fn renamed_helper(x: u32) u32 {
|10: 8 _ = renamed_helper(41);
diff --git a/test/snapshots/lspcomplete.golden b/test/snapshots/lspcomplete.golden
index b92ede89..da700171 100644
--- a/test/snapshots/lspcomplete.golden
+++ b/test/snapshots/lspcomplete.golden
@@ -1,7 +1,7 @@
== snap opened grid=120x41 cursor=7,3
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
| New Term Find Grep Joincol Delcol
-| /tmp/pardes-snap/lspcomplete/cwd/a.zig Save Term Collapse Follow TreeContext Def Refs Del
+| /tmp/pardes-snap/lspcomplete/cwd/a.zig Keep Save Term Collapse Follow TreeContext Def Refs Del
| 1 const Shade = enum {
| 2 verdigris,
| 3 cinnabar,
diff --git a/test/snapshots/markup.golden b/test/snapshots/markup.golden
index 578546b1..f3793951 100644
--- a/test/snapshots/markup.golden
+++ b/test/snapshots/markup.golden
@@ -1,7 +1,7 @@
== snap typst grid=92x25 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/markup/cwd/paper.typ Save Term Collapse Follow TreeContext Del
+| /tmp/pardes-snap/markup/cwd/paper.typ Keep Save Term Collapse Follow TreeContext Del
| 1 = Typst heading
| 2
| 3 Prose with *bold* and _italic_ words, a `raw` span,
@@ -27,7 +27,7 @@
== style typst grid=92x25
|0: 0-1 d,#1d2824, 2-91 #b2c3b8,#1d2824,
|1: 0-1 d,#887455, 2-91 #becfc4,#314738,
-|2: 0-1 d,#add38a, 2-29 #becfc4,#314738, 30-39 #dfbce5,#314738, 40-91 #becfc4,#314738,
+|2: 0-1 d,#add38a, 2-29 #becfc4,#2c2819, 30-39 #dfbce5,#2c2819, 40-91 #becfc4,#2c2819,
|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-91 #c9a7ed,#0d1410,
|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410,
|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #e5eee5,#0d1410, 18-24 #b9f480,#0d1410, 25-28 #e5eee5,#0d1410, 29-37 #f8c082,#0d1410, 38-46 #e5eee5,#0d1410, 47-52 #b8d88a,#0d1410, 53-91 #e5eee5,#0d1410,
@@ -53,7 +53,7 @@
== snap markdown grid=92x25 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/markup/cwd/notes.md Save Term Collapse Follow TreeContext Del
+| /tmp/pardes-snap/markup/cwd/notes.md Keep Save Term Collapse Follow TreeContext Del
| 1 # Markdown heading with *italic*
| 2
| 3 Prose with **bold**, *italic* and an `inline` span.
@@ -79,7 +79,7 @@
== style markdown grid=92x25
|0: 0-1 d,#1d2824, 2-91 #b2c3b8,#1d2824,
|1: 0-1 d,#887455, 2-91 #becfc4,#314738,
-|2: 0-1 d,#add38a, 2-29 #becfc4,#314738, 30-38 #dfbce5,#314738, 39-91 #becfc4,#314738,
+|2: 0-1 d,#add38a, 2-29 #becfc4,#2c2819, 30-38 #dfbce5,#2c2819, 39-91 #becfc4,#2c2819,
|3: 0-0 d,#608269, 1-1 d,#0d1410, 2-4 d,#0d1410,b 5-6 #616f64,#0d1410,b 7-8 #e5eee5,#0d1410, 9-30 #c9a7ed,#0d1410, 31-91 #f8c082,#0d1410,
|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-91 #59675c,#0d1410,
|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #e5eee5,#0d1410, 18-25 #b9f480,#0d1410, 26-27 #e5eee5,#0d1410, 28-36 #f8c082,#0d1410, 37-43 #e5eee5,#0d1410, 44-52 #b8d88a,#0d1410, 53-91 #e5eee5,#0d1410,
diff --git a/test/snapshots/mini.golden b/test/snapshots/mini.golden
index fb5b440c..178c81ee 100644
--- a/test/snapshots/mini.golden
+++ b/test/snapshots/mini.golden
@@ -1,7 +1,7 @@
== snap opened grid=90x23 cursor=7,6
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
| New Term Find Grep Joincol Delcol
-| /tmp/pardes-snap/mini/cwd/commands.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/mini/cwd/commands.txt Keep Save Term Collapse Follow Del
| 1 @`Mini demo.zig`
|
| /tmp/pardes-snap/mini/cwd/Mini demo.zig Save Term Collapse Follow Del
@@ -25,7 +25,7 @@
== style opened grid=90x23
|0: 0-1 d,#1d2824, 2-89 #b2c3b8,#1d2824,
|1: 0-1 d,#887455, 2-89 #becfc4,#314738,
-|2: 0-1 d,#496656, 2-27 #b2c3b8,#1d2824, 28-40 #d3b0d9,#1d2824, 41-89 #b2c3b8,#1d2824,
+|2: 0-1 d,#496656, 2-27 #b2c3b8,#2c2819, 28-40 #d3b0d9,#2c2819, 41-89 #b2c3b8,#2c2819,
|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-89 #e5eee5,#0d1410,
|4: 0-0 d,#608269, 1-89 d,#0d1410,
|5: 0-1 d,#add38a, 2-27 #becfc4,#314738, 28-41 #dfbce5,#314738, 42-89 #becfc4,#314738,
@@ -51,8 +51,8 @@
@0: 0-84 #b2c3b8,#1d2824,,tagline 85-89 d,#1d2824,,tagline
|1: New Term Find Grep Joincol Delcol
@1: 0-1 #ffffff,#887455,,tagline 2-34 #becfc4,#314738,,tagline 35-89 d,#314738,,tagline
-|2: /tmp/pardes-snap/mini/cwd/commands.txt Save Term Collapse Follow Del
-@2: 0-1 #ffffff,#496656,,tagline 2-27 #b2c3b8,#1d2824,,tagline 28-39 #d3b0d9,#1d2824,,tagline 40-69 #b2c3b8,#1d2824,,tagline 70-89 d,#1d2824,,tagline
+|2: /tmp/pardes-snap/mini/cwd/commands.txt Keep Save Term Collapse Follow Del
+@2: 0-1 #ffffff,#496656,,tagline 2-27 #b2c3b8,#2c2819,,tagline 28-39 #d3b0d9,#2c2819,,tagline 40-74 #b2c3b8,#2c2819,,tagline 75-89 d,#2c2819,,tagline
|3: 1 @`Mini demo.zig`
@3: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-22 #e5eee5,#0d1410,,body 23-89 d,#0d1410,,body
|4:
@@ -100,7 +100,7 @@
== snap resized grid=105x27 cursor=7,7
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
| New Term Find Grep Joincol Delcol
-| /tmp/pardes-snap/mini/cwd/commands.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/mini/cwd/commands.txt Keep Save Term Collapse Follow Del
| 1 @`Mini demo.zig`
|
|
@@ -130,8 +130,8 @@
@0: 0-84 #b2c3b8,#1d2824,,tagline 85-104 d,#1d2824,,tagline
|1: New Term Find Grep Joincol Delcol
@1: 0-1 #ffffff,#887455,,tagline 2-34 #becfc4,#314738,,tagline 35-104 d,#314738,,tagline
-|2: /tmp/pardes-snap/mini/cwd/commands.txt Save Term Collapse Follow Del
-@2: 0-1 #ffffff,#496656,,tagline 2-27 #b2c3b8,#1d2824,,tagline 28-39 #d3b0d9,#1d2824,,tagline 40-69 #b2c3b8,#1d2824,,tagline 70-104 d,#1d2824,,tagline
+|2: /tmp/pardes-snap/mini/cwd/commands.txt Keep Save Term Collapse Follow Del
+@2: 0-1 #ffffff,#496656,,tagline 2-27 #b2c3b8,#2c2819,,tagline 28-39 #d3b0d9,#2c2819,,tagline 40-74 #b2c3b8,#2c2819,,tagline 75-104 d,#2c2819,,tagline
|3: 1 @`Mini demo.zig`
@3: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-22 #e5eee5,#0d1410,,body 23-104 d,#0d1410,,body
|4:
diff --git a/test/snapshots/msg.golden b/test/snapshots/msg.golden
index 4374ca79..3d2e0760 100644
--- a/test/snapshots/msg.golden
+++ b/test/snapshots/msg.golden
@@ -1,7 +1,7 @@
== snap opened grid=70x15 cursor=7,3
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config His
| New Term Find Grep Joincol Delcol
-| /tmp/pardes-snap/msg/cwd/a.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/msg/cwd/a.txt Keep Save Term Collapse Follow Del
| 1 line 1
| 2 line 2
| 3 line 3
@@ -19,7 +19,7 @@
== snap repainted grid=70x17 cursor=7,3
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config His
| New Term Find Grep Joincol Delcol
-| /tmp/pardes-snap/msg/cwd/a.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/msg/cwd/a.txt Keep Save Term Collapse Follow Del
| 1 line 1
| 2 line 2
| 3 line 3
diff --git a/test/snapshots/nested-optout.golden b/test/snapshots/nested-optout.golden
index c249d828..a2f0a444 100644
--- a/test/snapshots/nested-optout.golden
+++ b/test/snapshots/nested-optout.golden
@@ -4,7 +4,7 @@
|$ /tmp/pardes-snap/nested-optout/cwd Term+bash Save Mode Filter Collapse Del
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
| New Term Find Grep Joincol Delcol
-| /tmp/pardes-snap/nested-optout/cwd/nested.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/nested-optout/cwd/nested.txt Keep Save Term Collapse Follow Del
| 1 optout-marker
| 2 second-optout-line
| ~
@@ -65,7 +65,7 @@
== snap inner-launch grid=100x31 cursor=11,9
|6: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
|7: New Term Find Grep Joincol Delcol
-|8: /tmp/pardes-snap/nested-optout/cwd/innerdir/deeper.txt Save Term Collapse Follow Del
+|8: /tmp/pardes-snap/nested-optout/cwd/innerdir/deeper.txt Keep Save Term Collapse Follow Del
|9: 1 deepest-marker
|10: ~
|14: /tmp/pardes-snap/nested-optout/cwd/innerdir/deeper.txt:1
diff --git a/test/snapshots/pipe.golden b/test/snapshots/pipe.golden
index d8d10bbb..bd3f752b 100644
--- a/test/snapshots/pipe.golden
+++ b/test/snapshots/pipe.golden
@@ -1,7 +1,7 @@
== snap prompt grid=180x13 cursor=179,3
| 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 Save Term Collapse Follow Del
+| /tmp/pardes-snap/pipe/cwd/pipe.txt Keep Save Term Collapse Follow Del
| 1 alpha beta |tr a-z A-Z
| 2 gamma delta
|
diff --git a/test/snapshots/savepane.golden b/test/snapshots/savepane.golden
index 5e47d00f..04b902e1 100644
--- a/test/snapshots/savepane.golden
+++ b/test/snapshots/savepane.golden
@@ -34,7 +34,7 @@
|17: 1 scratch bytes Save /tmp/pardes-snap/savepane/cwd/
|30: ✓ /tmp/pardes-snap/savepane/cwd/+New Save 2 messages · SPC h m
== snap saved grid=100x31 cursor=20,17
-|16: /tmp/pardes-snap/savepane/cwd/saved.txt Save Term Collapse Follow Del
+|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/sav 3 messages · SPC h m
== file bytes
diff --git a/test/snapshots/selregex.golden b/test/snapshots/selregex.golden
index 540a5b33..ba303c31 100644
--- a/test/snapshots/selregex.golden
+++ b/test/snapshots/selregex.golden
@@ -1,7 +1,7 @@
== snap prompt-armed grid=160x25 cursor=159,3
| 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 Save Term Collapse Follow TreeContext Def Refs Del
+| /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;
@@ -30,7 +30,7 @@
== 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,#314738, 32-37 #dfbce5,#314738, 38-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,
diff --git a/test/snapshots/themesel.golden b/test/snapshots/themesel.golden
index 1cf6f0a5..f51dda64 100644
--- a/test/snapshots/themesel.golden
+++ b/test/snapshots/themesel.golden
@@ -1,7 +1,7 @@
== snap boot 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/themesel/cwd/t.txt Save Term Collapse Follow Del
+| /tmp/pardes-snap/themesel/cwd/t.txt Keep Save Term Collapse Follow Del
| 1 line 1
| 2 line 2
| 3 line 3
@@ -51,7 +51,7 @@
== style step-orchard grid=100x31
|0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824,
|1: 0-1 d,#887455, 2-99 #becfc4,#314738,
-|2: 0-1 d,#496656, 2-31 #b2c3b8,#1d2824, 32-37 #d3b0d9,#1d2824, 38-99 #b2c3b8,#1d2824,
+|2: 0-1 d,#496656, 2-31 #b2c3b8,#2c2819, 32-37 #d3b0d9,#2c2819, 38-99 #b2c3b8,#2c2819,
|3: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410,
|4: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410,
|5: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-99 #e5eee5,#0d1410,
@@ -85,7 +85,7 @@
== style step-dusk grid=100x31
|0: 0-1 d,#2c2630, 2-99 #c6b6c5,#2c2630,
|1: 0-1 d,#757a5f, 2-99 #d2c2d1,#533d4d,
-|2: 0-1 d,#745469, 2-31 #c6b6c5,#2c2630, 32-37 #96c9b8,#2c2630, 38-99 #c6b6c5,#2c2630,
+|2: 0-1 d,#745469, 2-31 #c6b6c5,#4a3c35, 32-37 #96c9b8,#4a3c35, 38-99 #c6b6c5,#4a3c35,
|3: 0-0 d,#8e667c, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b,
|4: 0-0 d,#8e667c, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b,
|5: 0-0 d,#8e667c, 1-4 d,#39323b, 5-6 #82717e,#39323b, 7-99 #c3b6c1,#39323b,
@@ -119,7 +119,7 @@
== style step-atelier grid=100x31
|0: 0-1 d,#e4f0ed, 2-99 #3d6055,#e4f0ed,
|1: 0-1 d,#bca481, 2-99 #35584d,#bfdcce,
-|2: 0-1 d,#95baa2, 2-31 #3d6055,#e4f0ed, 32-37 #6e4774,#e4f0ed, 38-99 #3d6055,#e4f0ed,
+|2: 0-1 d,#95baa2, 2-31 #3d6055,#fff1c4, 32-37 #6e4774,#fff1c4, 38-99 #3d6055,#fff1c4,
|3: 0-0 d,#9fae76, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb,
|4: 0-0 d,#9fae76, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb,
|5: 0-0 d,#9fae76, 1-4 d,#fffdeb, 5-6 #909880,#fffdeb, 7-99 #293f35,#fffdeb,
@@ -153,7 +153,7 @@
== style step-forge grid=100x31
|0: 0-1 d,#22252b, 2-99 #c5c9d2,#22252b,
|1: 0-1 d,#6a7b67, 2-99 #d1d5de,#374253,
-|2: 0-1 d,#55647b, 2-31 #c5c9d2,#22252b, 32-37 #ecbf9b,#22252b, 38-99 #c5c9d2,#22252b,
+|2: 0-1 d,#55647b, 2-31 #c5c9d2,#2b2417, 32-37 #ecbf9b,#2b2417, 38-99 #c5c9d2,#2b2417,
|3: 0-0 d,#708095, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e,
|4: 0-0 d,#708095, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e,
|5: 0-0 d,#708095, 1-4 d,#0c0c0e, 5-6 #62656c,#0c0c0e, 7-99 #e5e5e5,#0c0c0e,
@@ -187,7 +187,7 @@
== style step-lagoon grid=100x31
|0: 0-1 d,#29443f, 2-99 #bbd7cb,#29443f,
|1: 0-1 d,#9a7662, 2-99 #c7e3d7,#3a6154,
-|2: 0-1 d,#548372, 2-31 #bbd7cb,#29443f, 32-37 #e4c2ec,#29443f, 38-99 #bbd7cb,#29443f,
+|2: 0-1 d,#548372, 2-31 #bbd7cb,#4a4e3f, 32-37 #e4c2ec,#4a4e3f, 38-99 #bbd7cb,#4a4e3f,
|3: 0-0 d,#6e9b8b, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c,
|4: 0-0 d,#6e9b8b, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c,
|5: 0-0 d,#6e9b8b, 1-4 d,#34464c, 5-6 #7b9194,#34464c, 7-99 #bac9ce,#34464c,
@@ -221,7 +221,7 @@
== style step-solarium grid=100x31
|0: 0-1 d,#123f43, 2-99 #c7d4bd,#123f43,
|1: 0-1 d,#347a9a, 2-99 #d3e0c9,#2f5c5c,
-|2: 0-1 d,#467f76, 2-31 #c7d4bd,#123f43, 32-37 #e9c1e0,#123f43, 38-99 #c7d4bd,#123f43,
+|2: 0-1 d,#467f76, 2-31 #c7d4bd,#3d493b, 32-37 #e9c1e0,#3d493b, 38-99 #c7d4bd,#3d493b,
|3: 0-0 d,#65978c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45,
|4: 0-0 d,#65978c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45,
|5: 0-0 d,#65978c, 1-4 d,#173e45, 5-6 #647e7c,#173e45, 7-99 #a7b7ae,#173e45,
@@ -268,7 +268,7 @@
== style step-spectrum grid=100x31
|0: 0-1 d,#3b3830, 2-99 #ddd8bb,#3b3830,
|1: 0-1 d,#706596, 2-99 #e9e4c7,#5a523a,
-|2: 0-1 d,#92844f, 2-31 #ddd8bb,#3b3830, 32-37 #c5d7ff,#3b3830, 38-99 #ddd8bb,#3b3830,
+|2: 0-1 d,#92844f, 2-31 #ddd8bb,#332b1a, 32-37 #c5d7ff,#332b1a, 38-99 #ddd8bb,#332b1a,
|3: 0-0 d,#948d6f, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11,
|4: 0-0 d,#948d6f, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11,
|5: 0-0 d,#948d6f, 1-4 d,#100e11, 5-6 #68616b,#100e11, 7-99 #fcfcfa,#100e11,
@@ -315,7 +315,7 @@
== style step-harvest grid=100x31
|0: 0-1 d,#343b2e, 2-99 #d5d8b8,#343b2e,
|1: 0-1 d,#9b583f, 2-99 #e1e4c4,#4a583e,
-|2: 0-1 d,#7b7e4e, 2-31 #d5d8b8,#343b2e, 32-37 #badbeb,#343b2e, 38-99 #d5d8b8,#343b2e,
+|2: 0-1 d,#7b7e4e, 2-31 #d5d8b8,#332316, 32-37 #badbeb,#332316, 38-99 #d5d8b8,#332316,
|3: 0-0 d,#888e5e, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b,
|4: 0-0 d,#888e5e, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b,
|5: 0-0 d,#888e5e, 1-4 d,#100e0b, 5-6 #6a6456,#100e0b, 7-99 #f3f2cc,#100e0b,
@@ -362,7 +362,7 @@
== style step-clay grid=100x31
|0: 0-1 d,#343f36, 2-99 #d7d6b6,#343f36,
|1: 0-1 d,#875e65, 2-99 #e3e2c2,#4d5c48,
-|2: 0-1 d,#687c4d, 2-31 #d7d6b6,#343f36, 32-37 #aae0e0,#343f36, 38-99 #d7d6b6,#343f36,
+|2: 0-1 d,#687c4d, 2-31 #d7d6b6,#332a17, 32-37 #aae0e0,#332a17, 38-99 #d7d6b6,#332a17,
|3: 0-0 d,#8c9467, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e,
|4: 0-0 d,#8c9467, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e,
|5: 0-0 d,#8c9467, 1-4 d,#10100e, 5-6 #696455,#10100e, 7-99 #f3e5bc,#10100e,
@@ -409,7 +409,7 @@
== style step-forge-black grid=100x31
|0: 0-1 d,#22252b, 2-99 #c5c9d2,#22252b,
|1: 0-1 d,#6a7b67, 2-99 #d1d5de,#374253,
-|2: 0-1 d,#55647b, 2-31 #c5c9d2,#22252b, 32-37 #ecbf9b,#22252b, 38-99 #c5c9d2,#22252b,
+|2: 0-1 d,#55647b, 2-31 #c5c9d2,#150f03, 32-37 #ecbf9b,#150f03, 38-99 #c5c9d2,#150f03,
|3: 0-0 d,#708095, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000,
|4: 0-0 d,#708095, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000,
|5: 0-0 d,#708095, 1-4 d,#000000, 5-6 #62656c,#000000, 7-99 #f6f6f6,#000000,
@@ -456,7 +456,7 @@
== style step-forge-soft grid=100x31
|0: 0-1 d,#2a2d34, 2-99 #c5c9d2,#2a2d34,
|1: 0-1 d,#6d7f6c, 2-99 #d1d5de,#404a58,
-|2: 0-1 d,#55647b, 2-31 #c5c9d2,#2a2d34, 32-37 #ecbf9b,#2a2d34, 38-99 #c5c9d2,#2a2d34,
+|2: 0-1 d,#55647b, 2-31 #c5c9d2,#464135, 32-37 #ecbf9b,#464135, 38-99 #c5c9d2,#464135,
|3: 0-0 d,#708095, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e,
|4: 0-0 d,#708095, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e,
|5: 0-0 d,#708095, 1-4 d,#35383e, 5-6 #868991,#35383e, 7-99 #bfc3cc,#35383e,
@@ -503,7 +503,7 @@
== style step-orchard-black grid=100x31
|0: 0-1 d,#1d2824, 2-99 #b2c3b8,#1d2824,
|1: 0-1 d,#887455, 2-99 #becfc4,#314738,
-|2: 0-1 d,#496656, 2-31 #b2c3b8,#1d2824, 32-37 #d3b0d9,#1d2824, 38-99 #b2c3b8,#1d2824,
+|2: 0-1 d,#496656, 2-31 #b2c3b8,#140e04, 32-37 #d3b0d9,#140e04, 38-99 #b2c3b8,#140e04,
|3: 0-0 d,#608269, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000,
|4: 0-0 d,#608269, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000,
|5: 0-0 d,#608269, 1-4 d,#000000, 5-6 #59675c,#000000, 7-99 #f2f8ef,#000000,
@@ -550,7 +550,7 @@
== style step-acme grid=100x31
|0: 0-1 d,#eaffff, 2-99 #000000,#eaffff,
|1: 0-1 d,#8888cc, 2-99 #000000,#eaffff,
-|2: 0-1 d,#b9c3e5, 2-31 #000000,#eaffff, 32-37 #000099,#eaffff, 38-99 #000000,#eaffff,
+|2: 0-1 d,#b9c3e5, 2-31 #000000,#f3f0cc, 32-37 #000099,#f3f0cc, 38-99 #000000,#f3f0cc,
|3: 0-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea,
|4: 0-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea,
|5: 0-4 d,#ffffea, 5-6 #999980,#ffffea, 7-99 #000000,#ffffea,
@@ -597,7 +597,7 @@
== style step-lapis grid=100x31
|0: 0-1 d,#0f1a4a, 2-99 #9aa6d9,#0f1a4a,
|1: 0-1 d,#8a3a3a, 2-99 #eee6d2,#25397d,
-|2: 0-1 d,#6a78b1, 2-31 #9aa6d9,#0f1a4a, 32-37 #e8c46a,#0f1a4a, 38-99 #9aa6d9,#0f1a4a,
+|2: 0-1 d,#6a78b1, 2-31 #9aa6d9,#2f1e2d, 32-37 #e8c46a,#2f1e2d, 38-99 #9aa6d9,#2f1e2d,
|3: 0-0 d,#e8c46a, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030,
|4: 0-0 d,#e8c46a, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030,
|5: 0-0 d,#e8c46a, 1-4 d,#0a1030, 5-6 #5a6aa8,#0a1030, 7-99 #eee6d2,#0a1030,
@@ -644,7 +644,7 @@
== style step-dark-plus grid=100x31
|0: 0-1 d,#007acc, 2-99 #ffffff,#007acc,
|1: 0-1 d,#458276, 2-99 #ffffff,#1e1e1e,
-|2: 0-1 d,#1c608e, 2-31 #a7a7a7,#3c3c3c, 32-37 #68aee9,#3c3c3c, 38-99 #a7a7a7,#3c3c3c,
+|2: 0-1 d,#1c608e, 2-31 #a7a7a7,#32363b, 32-37 #68aee9,#32363b, 38-99 #a7a7a7,#32363b,
|3: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e,
|4: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e,
|5: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e,
@@ -691,7 +691,7 @@
== style step-solarized-dark grid=100x31
|0: 0-1 d,#657b83, 2-99 #01090b,#657b83,
|1: 0-1 d,#758a41, 2-99 #073642,#93a1a1,
-|2: 0-1 d,#185986, 2-31 #01090b,#657b83, 32-37 #121600,#657b83, 38-99 #01090b,#657b83,
+|2: 0-1 d,#185986, 2-31 #01090b,#4c5138, 32-37 #121600,#4c5138, 38-99 #01090b,#4c5138,
|3: 0-0 d,#839496, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36,
|4: 0-0 d,#839496, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36,
|5: 0-0 d,#839496, 1-4 d,#002b36, 5-6 #586e75,#002b36, 7-99 #839496,#002b36,
@@ -725,7 +725,7 @@
== style step-back grid=100x31
|0: 0-1 d,#007acc, 2-99 #ffffff,#007acc,
|1: 0-1 d,#458276, 2-99 #ffffff,#1e1e1e,
-|2: 0-1 d,#1c608e, 2-31 #a7a7a7,#3c3c3c, 32-37 #68aee9,#3c3c3c, 38-99 #a7a7a7,#3c3c3c,
+|2: 0-1 d,#1c608e, 2-31 #a7a7a7,#32363b, 32-37 #68aee9,#32363b, 38-99 #a7a7a7,#32363b,
|3: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e,
|4: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e,
|5: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e,
@@ -785,7 +785,7 @@
|29: 27 line 27
|30: ✓ /tmp/pardes-snap/themesel/cwd/+Themes Del 36 messages · SPC h m
== style picked grid=100x31
-|2: 0-1 d,#007fd4, 2-31 #ffffff,#1e1e1e, 32-37 #cbe5fc,#1e1e1e, 38-99 #ffffff,#1e1e1e,
+|2: 0-1 d,#007fd4, 2-31 #ffffff,#32363b, 32-37 #cbe5fc,#32363b, 38-99 #ffffff,#32363b,
|3: 0-0 d,#424242, 1-1 d,#1e1e1e, 2-4 d,#1e1e1e,b 5-6 #c6c6c6,#1e1e1e,b 7-99 #d4d4d4,#1e1e1e,
|7: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e,
|8: 0-0 d,#424242, 1-4 d,#1e1e1e, 5-6 #858585,#1e1e1e, 7-99 #d4d4d4,#1e1e1e,
diff --git a/test/snapshots/tutor.golden b/test/snapshots/tutor.golden
index a04c8ca2..c6316c73 100644
--- a/test/snapshots/tutor.golden
+++ b/test/snapshots/tutor.golden
@@ -18,7 +18,7 @@
| /tmp/pardes-snap/tutor/cwd Term+bash Save Mode Filter Collapse Del
| ls
|
-| /tmp/pardes-snap/tutor/cwd/+Tutor Save Term Collapse Follow Del
+| /tmp/pardes-snap/tutor/cwd/+Tutor Keep Save Term Collapse Follow Del
| 1
| 2 PARDES TUTOR
| 3