diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 02:39:31 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 03:06:39 -0300 |
| commit | 3845a3eb8dd009ac1f2d184e6d15439e27065b66 (patch) | |
| tree | 868d7bb1088b3ccbd21eda28b98bb87513c76fc0 /test/process | |
| parent | 5b065b537f15120184a6938d963d7302d0e4cc8d (diff) | |
| parent | 09729fc927bca5f05f99de7844069cae445598a1 (diff) | |
| download | pardes-3845a3eb8dd009ac1f2d184e6d15439e27065b66.tar.gz pardes-3845a3eb8dd009ac1f2d184e6d15439e27065b66.zip | |
walk UI M4: line E2's `:` merged (kwuzwsmo, on E's tip tuwqwmlm, which G2's tip wyplmmyp holds): TagState keeps G2's kinds {rest, help, describe, pick, rename, prompt}, `:` a prompt op whose arms (Prompt.key, head, takes, steps; TagState.point beside G2's pick arm) merged as E2 wrote them, and max_hits as many as the themes; THE STAND-IN GOES: Messages.zig's block from `---- a stand-in for line C's questions` to `---- the stand-in's end ----` and root.zig's allowed_vars `stub_asked` deleted, C's real Answer, waiting, waitingAnswers and answer kept, and Command.zig's test asks as C's own does (a file changed on disk under unsaved text), its @hasDecl branches gone; ONE THEME PREVIEW: `:theme ` goes through G2's colors.previewTheme as the themes picker does, its current row worn at each change of the rows and again after every step (Prompt.settle, as Pick.produceAll re-derives the picker's), off at rest (TagState.toRest, for a view that previewed the whole window), no pane dimmed while it does; DELETED: colors.wear, colors.wornChrome, TagState.worn (its replica index and isTheme), Pardes.worn_chrome (its `.derived` and kept_out entries), draw.render's wornChrome call; finishThemeInitialization keeps E2's change (the session's own theme's chrome, never a preview's: a load meanwhile); fs.zig: E2's Namespace.deinit hold (`@min(opens_len, opens.len)`) and its shell test dropped: H's `opens_len = 0` before the teardown in both load paths' errdefers (dump.zig) covers the same fault on the one path that meets it (a refused load; fuzz join seed 31554 pinned), and no other caller tears a namespace down with a count it did not hold; `:open ` IS D's FIND: the line `open ` (or `o `) hands itself to Find from this pane, as B2 on `Find <rest>` runs it (where jumps walk a Find picker in the tag, the rest of the line its query: every path, listed and scored off the loop by Names), so Command's own file rows (fileOf, firstOf, shownPath: the files the panes show) are deleted and the head's plain word for `open` is `Exec Find`; A MERGE FAULT FOUND BY A TEST FIRST: TagState.loaded (A2's) held every view's hits to the tree's leaves and the registry's words, so a view in `:theme ` on a row past bindings.flat.len + the kinds' words (the last theme, 272, is) came back from a dump at rest: a client joining a session with a view in `:theme ` would have that view at rest where the session had it in `:` (the digest's view state apart); `:`'s hits are held by Command.zig where it reads them (rowOf, theme, the preview: each bounds its index), so loaded skips the leaves' bound for a `:` view; TEST: Command.zig "a view in :theme on its last row keeps it through a dump and a load" (fails on the merge without it: the loaded view at rest); goldens: ttytaken (the conflict) regenerated and read: G2's with E2's one row (`|5: echo TAKEN''ONE`, as E2 read it); tagnav (no conflict, failed after the merge) regenerated and read: in raw tty mode the shell's prompt row 6 (`$ `) is no longer drawn at tty-on, nor taken away at column-tag: the case's `: :` in the terminal pane opens `:`'s band there, the band's rows come out of the terminal's body, its pty is resized smaller and back (the band class of item 4, A's band term), and the shell's redraw leaves that row blank (RUN: with `:`'s band held at 0 rows in a terminal pane, a temporary edit put back, tagnav matches G2's golden); a user meets it: `:` (any band) in a terminal pane resizes its pty while it is open; gates: core-test 1061/1231 (170 skipped), shell-test 1278/1281, pane-test 183/184, behaviour-test 277/277, process-test 1/146 (tagnav), then tagnav alone after its regeneration 0/1, term-test 17/17, kitty-test 45/45; the 40,000-seed fuzz meets item 2's fault (join seed 6356 here)
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.zig | 20 | ||||
| -rw-r--r-- | test/process/tty_layout.zig | 2 | ||||
| -rw-r--r-- | test/process/tty_terminals.zig | 4 |
3 files changed, 13 insertions, 13 deletions
diff --git a/test/process/tty_editing.zig b/test/process/tty_editing.zig index cb903bd6..9285ce7d 100644 --- a/test/process/tty_editing.zig +++ b/test/process/tty_editing.zig @@ -109,7 +109,7 @@ fn fileedit(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("undone"); // Save through the file pane's own tag: `:` focuses that same tag and `w` // selects Save before the ordinary execute key runs it. - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.key("w tab"); try t.stable(600, 8000); @@ -1393,7 +1393,7 @@ fn cmdword(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // opens ITS tag; `A` appends at the end of it, Esc and `h` put the // normal-mode cursor on the last character typed, and the execute key runs // the word under it exactly as the body's does. - try t.key(":"); + try t.key(": :"); try t.key("A"); try t.key("space"); try t.send("Exec"); @@ -1409,7 +1409,7 @@ fn cmdword(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("execword"); // a command word run from that tag runs as a command pane in the directory // the pane lists, as a word run from any text pane's tag does - try t.key(":"); + try t.key(": :"); try t.key("A"); try t.key("space"); try t.send("@`echo ZZ''T`"); @@ -2407,7 +2407,7 @@ fn tagcmd(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("edited"); // `:` -> the tag, in normal mode, cursor on Save - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.snap("colon"); // w -> the "Save" span (selected, like the body's word motion) @@ -2421,7 +2421,7 @@ fn tagcmd(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.snap("saved"); try t.snapFile("written", "/tmp/pardes-snap/tagcmd/cwd/c.txt"); // `:` then `:`: back to the body with the tag untouched, nothing run - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.key(":"); try t.stable(400, 5000); @@ -2468,7 +2468,7 @@ fn tagnav(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("start"); // `:` -> the file's OWN tagline, normal mode, on Save - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.snap("colon"); // w selects in the tag the way it selects in a body @@ -2485,13 +2485,13 @@ fn tagnav(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("right"); // `:` there -> that pane's own tag, on its Save the first time - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.snap("right-tag"); // back left, and `:` finds the file's tag cursor where l left it try t.key("c-w h enter"); try t.stable(400, 5000); - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.snap("left-tag"); // `:` in the tag's normal mode: back to the body @@ -2572,7 +2572,7 @@ fn tagpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.wait(8000, "c.txt"); try t.stable(700, 20000); try t.snap("start"); - try t.key(":"); + try t.key(": :"); try t.stable(400, 5000); try t.snap("colon"); try t.key("0"); @@ -2611,7 +2611,7 @@ fn tagpath(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.key("esc"); try t.stable(400, 5000); try t.snap("name-cancelled"); - try t.key(":"); + try t.key(": :"); try t.key("0"); try t.key("i"); try t.send("/renamed"); diff --git a/test/process/tty_layout.zig b/test/process/tty_layout.zig index e0396a53..00197a5c 100644 --- a/test/process/tty_layout.zig +++ b/test/process/tty_layout.zig @@ -439,7 +439,7 @@ fn tagalign(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.settle(100); try t.key("esc"); try t.settle(100); - try t.key(":"); + try t.key(": :"); try t.key("A"); try t.stable(400, 5000); try t.snap("revealed"); diff --git a/test/process/tty_terminals.zig b/test/process/tty_terminals.zig index 838b2aea..53050a18 100644 --- a/test/process/tty_terminals.zig +++ b/test/process/tty_terminals.zig @@ -427,7 +427,7 @@ fn ttytaken(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // at the prompt: a command word in the terminal's own tag, executed, is // typed into its shell. `:` opens the tag, `A` appends, and the execute key // runs the word under the cursor. - try t.key(":"); + try t.key(": :"); try t.key("A"); try t.key("space"); try t.send("@`echo TAKEN''ONE`"); @@ -451,7 +451,7 @@ fn ttytaken(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(400, 5000); try t.snap("paging"); // the same gesture from that terminal: a command pane, not `less` keystrokes - try t.key(":"); + try t.key(": :"); try t.key("A"); try t.key("space"); try t.send("@`echo TAKEN''TWO`"); |
