summaryrefslogtreecommitdiff
path: root/test/behaviour/mouse.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-09 23:15:39 -0300
committerGabriel Schneider <[email protected]>2026-11-09 23:15:53 -0300
commit0b4cfd4b416d03ef64ccd908dfee810c6a498569 (patch)
tree83da4851e30b4dd0e788b66f0024d5b55eaee421 /test/behaviour/mouse.zig
parent7e6fc8c9f62bc3dc08e24856cc647fa0adefb32c (diff)
downloadpardes-0b4cfd4b416d03ef64ccd908dfee810c6a498569.tar.gz
pardes-0b4cfd4b416d03ef64ccd908dfee810c6a498569.zip
a session's end leaves a slim dump and History lists them, the tags gain Follow, History and the window's Fonts: every way out (Exit, the last pane's Del, the host's quit) runs Pardes.endSession, which puts a dump of the session in the state file under the usual label before quitting, slim by the dump's own means (dumpJoin's slim_terminals, and Store's slim-file swap now a Slim struct: no undo, a clean file's text read from its file again by revivePane, a terminal a size for a new shell), none for a session of shells alone; the dump's image carries the panes' names, which /dumps rows end with; the History builtin (SPC f h) lists the state file's dumps in a +History pane and a look at a row is a Restore of its label; the default tags: Follow after Collapse on text panes, History before Debug on the workspace row, Fonts after Themes in a window's view alone (tagline.topbarDefault picks the row per view; both rows are known defaults to the docs and tutor tests); the tty goldens re-recorded (the new words; a narrow pane's tag wraps to a second row, so its body rows shift), builtins JSON regenerated
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/behaviour/mouse.zig')
-rw-r--r--test/behaviour/mouse.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/behaviour/mouse.zig b/test/behaviour/mouse.zig
index e64e3ef9..951ab493 100644
--- a/test/behaviour/mouse.zig
+++ b/test/behaviour/mouse.zig
@@ -26,8 +26,8 @@ test "mouse: a double-click selects a word, a line, a bracketed or quoted text,
try s.expect(sel, "");
}
// In the tag too: what it selected is what a yank takes.
- try s.click("Collapse Del", "Collapse D".len, 1);
- try s.click("Collapse Del", "Collapse D".len, 1);
+ try s.click("Follow Del", "Follow D".len, 1);
+ try s.click("Follow Del", "Follow D".len, 1);
try s.keys("\x1by:ggP");
try s.expect(s.at("/pane/{d}/body", .{n}), "Delcall foo_bar(a, b)\nsay \"hi there\"\n");
}
@@ -157,7 +157,7 @@ test "mouse: a click on either half of a wide character lands before it, in the
// Typed past the tag's words, a two-byte λ goes in and one backspace
// takes it out whole.
const tag = try s.read(s.at("/pane/{d}/tag", .{n}));
- try s.click("Collapse Del", "Collapse Del".len + 1, 1);
+ try s.click("Follow Del", "Follow Del".len + 1, 1);
const caret = (try s.cursor()).?;
// A clicked tag is in normal mode: `i` types at the caret.
try s.keys("iλ");