summaryrefslogtreecommitdiff
path: root/test/process
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-25 03:50:26 -0300
committerGabriel Schneider <[email protected]>2026-11-25 03:56:25 -0300
commit3c4b2c99b1a969abad0a530fa99b70b2cb564af3 (patch)
tree492d58e0eaa1d9f7abc85f4610313900aa89ff75 /test/process
parent744c4519dc812f2b2a10769965384981249a9c4c (diff)
downloadpardes-3c4b2c99b1a969abad0a530fa99b70b2cb564af3.tar.gz
pardes-3c4b2c99b1a969abad0a530fa99b70b2cb564af3.zip
Query, test/process: the coordinator's two rulings (walk UI M4 item 5): (a) a +Search's +Preview promoted by Enter (Refs, Def, any list whose Enter lands by the preview) that READS (jumps walk) is the list's reader, its walk starting at the list's owner word (SPEC §6.1: a held pane's reader's trail starts `‹@pN`; the +Search is held, a listing), so its later jumps step that pane (Trail.readerOf finds it) where before it was a reading pane with no trail: Query.land sets `Trail.reader(+Search's serial, the row's path, its place)` on a promoted pane that reads with no walk yet; RUN (the test): lsp-client's golden before: gr-opened `/tmp/pardes-snap/lsp-client/cwd/main.rs Keep Save Term ...`; now `‹@p3 › /tmp/pardes-snap/lsp-client/cwd/main.rs Keep ... Refs` / ` Del` (the owner word wraps the tag to two rows, the body a row down, gr-back's N on line 5 as before), regenerated and read (lsp-client-edit unchanged); (b) the owner word stays whole out of rest (UX DESIGN.md D1; SPEC §3.4.3's fold is for the trail's steps): fsearch's nomatch keeps `‹@p1` whole, its older step folded to `·` (`^ ‹@p1 › · › /MARK/ 2/3 › ...`); its C-n step tested nothing (C-n has no job in a text prompt, §7.2: ctrln was typing's frame); it now tests the cursor moving where C-n moves one: M-Enter keeps `/MARK`'s places as a list in the tag (§7.2, D's list picker: `␣ l /MARK/ 1/3`, the three places as rows, the body previewing the first), C-n moves its cursor to the second (`2/3`, `▶ ...g.txt:6:1: MARK b`, the preview at line 6), Enter lands there as a step (`‹@p1 › g.txt:1 › /MARK/ 2/3 › .../g.txt`), n and N walk the list's rows in place (3/3, 2/3); the old case's search word `/MARK/ i/3` is the list's word now (a search word's n/N keep their core tests: Prompt.zig, Trail.zig); regenerated and read: the new snap `list`, ctrln, landed, n, N, nomatch; core-test 1062/1232 (170 skipped), the two cases 0/2 failed after their regeneration (the whole process-test with the tip's gates)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'test/process')
-rw-r--r--test/process/tty_editing.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/process/tty_editing.zig b/test/process/tty_editing.zig
index 9285ce7d..a5d58906 100644
--- a/test/process/tty_editing.zig
+++ b/test/process/tty_editing.zig
@@ -707,6 +707,11 @@ fn fsearch(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.stable(400, 5000);
try t.snap("typing");
try t.style("typing");
+ // M-Enter keeps the places as a list in the tag (SPEC §7.2), whose
+ // cursor C-n moves to the second (§5.4): Enter lands there.
+ try t.send("\x1b\r");
+ try t.stable(400, 5000);
+ try t.snap("list");
try t.key("c-n");
try t.stable(400, 5000);
try t.snap("ctrln");