diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-24 23:08:45 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-24 23:20:24 -0300 |
| commit | 5c941c2278a4e099f3cd4bae1b29a783f88a95b0 (patch) | |
| tree | dabbe402d1319c53d2ba4ca05d6bef227b3e4704 /test | |
| parent | c9114545cce7f7598a4929d8254de1d3baccde84 (diff) | |
| download | pardes-5c941c2278a4e099f3cd4bae1b29a783f88a95b0.tar.gz pardes-5c941c2278a4e099f3cd4bae1b29a783f88a95b0.zip | |
Messages, Pick, Output: where jumps walk, SPC e lands an error's places as a list in the pane's walk through D's picker, and SPC h m is a picker over the history in the pane's tag (walk UI G item 2c, SPEC §10.4, §5.1's messages source), C's stopgaps replaced: SPC e (Messages.act) made a +Search under the pane and walked it with the Look walk; now, when Pick.asked (jumps walk, not a 9P script), it opens Pick's `list` with the places as rows, its word `✗ <cause>` (cut at a character's start to the word's 24 bytes), and lands its first row at once as the prototype's actOnMessage does (openPicker then accept): the pane steps (or its reader, the pane being held), the list word goes into its trail before the place, n and N walk the places through Pick.walkList; the history (Messages.history, from SPC e with nothing to act on and from the Messages word, SPC h m) is Pick's new source `messages`, its rows Output.messagesText (openMessages' text, split out), the newest first, a place indented under its error; Enter on a message row gives the keyboard to its cause's pane while it is open, on a place row Looks the place; C-q keeps it as the +Messages (Pick.keep); the source is not offered among the picker's other sources (its second row), as `list` is not; where jumps open panes, and for a 9P script, both are as C made them; the Message and Messages docs say so (builtins-{tui,gui}.json regenerated); TEST FIRST: Messages.zig 'where jumps walk, SPC e lands an error's places as a list in the pane's walk, n walking them; SPC h m is a picker over the history…' (no pane made, the caret on the first place and then the second, the word `✗ @p9 zig build 1/2` then `2/2` in the tag, the history's rows newest first, Enter on a message, C-q the +Messages); C's own SPC e test keeps the +Search way (jumps open panes there); GOLDENS: builtins (SPC h m's doc two rows longer: the rows under it, Tutor's among them, two lower; the +Look's line 237 for 236; tty_boot.zig's click on Tutor's row 32 for 30) and leader (the same doc rows in help-group), nothing else; tui core-test 1035/1204 (169 skipped), process-test 0 of 146 failed after those two updates (2 before them: those two)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test')
| -rw-r--r-- | test/process/tty_boot.zig | 6 | ||||
| -rw-r--r-- | test/snapshots/builtins.golden | 70 | ||||
| -rw-r--r-- | test/snapshots/leader.golden | 14 |
3 files changed, 46 insertions, 44 deletions
diff --git a/test/process/tty_boot.zig b/test/process/tty_boot.zig index e342ea46..1e52a468 100644 --- a/test/process/tty_boot.zig +++ b/test/process/tty_boot.zig @@ -155,9 +155,9 @@ fn builtins(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(700, 15000); try t.snap("docs-group"); // Tutor's row, under the documentation of the four before it (Keys, - // describe-key, is SPC h k) - try t.press("middle", "@Tutor", 30); - try t.release("middle", "@Tutor", 30); + // describe-key, is SPC h k; Messages' runs to three rows) + try t.press("middle", "@Tutor", 32); + try t.release("middle", "@Tutor", 32); try t.wait(10000, "PARDES TUTOR"); try t.stable(700, 15000); try t.snap("tutor-from-index"); diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index 81a445e1..89c678f1 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -91,7 +91,7 @@ |30: ~ |56: +Search 1/1 Save Undock Del |57: /^ +Look -|58: @p2:236:1 Look enter, right-click +|58: @p2:237:1 Look enter, right-click |66: ✓ /tmp/pardes-snap/builtins/cwd/notes.txt Help 3 messages · SPC h m == snap docs-group grid=120x67 cursor=7,10 |10: 1 pardes builtins under SPC h @@ -109,39 +109,39 @@ |24: m, z, Z, [, ], window mode's C-w. A sequence nothing is bound to is shown struck, `runs nothing`. Esc leaves it. |25: 13 |26: 14 SPC h m Messages -|27: 15 Show the messages said so far in a +Messages, the newest first, an error's places under it. -|28: 16 -|29: 17 SPC h t Tutor topbar -|30: 18 Open the tutor, a document to work through. -|31: 19 -|32: ~ +|27: 15 Show the messages said so far, the newest first, an error's places under it. +|28: 16 Where jumps walk, a list in the pane's tag: Enter Looks a row (a message's cause, a place), C-q keeps it as a +M↩ +|29: essages; else the +Messages. +|30: 17 +|31: 18 SPC h t Tutor topbar +|32: 19 Open the tutor, a document to work through. +|33: 20 +|34: ~ |66: ✓ /tmp/pardes-snap/builtins/cwd/notes.txt Help 5 messages · SPC h m -== snap tutor-from-index grid=120x67 cursor=7,43 -|32: +Search 1/1 Save Undock Del -|33: /^ +Look -|34: @p2:236:1 Look enter, right-click -|42: /tmp/pardes-snap/builtins/cwd/+Tutor Save Term Collapse Follow Del -|43: 1 -|44: 2 PARDES TUTOR -|45: 3 -|46: 4 This pane is +Tutor, a copy: edit it freely; there is no need to -|47: 5 Save it (a bare Save asks for a path to write a copy to). -|48: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses -|49: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a -|50: 8 fresh copy. -|51: 9 -|52: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. -|53: 11 Each lesson is a few things to do, then names its guide section. -|54: 12 Words in backticks, like `Save`, are builtins. -|55: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a -|56: 14 shell line; `Look` (B3) opens what the text names, or else finds -|57: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with -|58: 16 "| " are tags. -|59: 17 -|60: 18 Press j until you reach part 1. -|61: 19 -|62: 20 -|63: 21 ================================================================= -|64: 22 = PART 1 — MODES = -|65: 23 ================================================================= +== snap tutor-from-index grid=120x67 cursor=7,45 +|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 +|45: 1 +|46: 2 PARDES TUTOR +|47: 3 +|48: 4 This pane is +Tutor, a copy: edit it freely; there is no need to +|49: 5 Save it (a bare Save asks for a path to write a copy to). +|50: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses +|51: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a +|52: 8 fresh copy. +|53: 9 +|54: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. +|55: 11 Each lesson is a few things to do, then names its guide section. +|56: 12 Words in backticks, like `Save`, are builtins. +|57: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a +|58: 14 shell line; `Look` (B3) opens what the text names, or else finds +|59: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with +|60: 16 "| " are tags. +|61: 17 +|62: 18 Press j until you reach part 1. +|63: 19 +|64: 20 +|65: 21 ================================================================= |66: ✓ /tmp/pardes-snap/builtins/cwd/+Help Tutor 7 messages · SPC h m diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index 2714ad2c..b341731d 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -77,12 +77,14 @@ |21: is bound to is shown struck, `runs nothing`. Esc leaves it. |22: 13 |23: 14 SPC h m Messages -|24: 15 Show the messages said so far in a +Messages, the newest first, an error's places under it. -|25: 16 -|26: 17 SPC h t Tutor topbar -|27: 18 Open the tutor, a document to work through. -|28: 19 -|29: ~ +|24: 15 Show the messages said so far, the newest first, an error's places under it. +|25: 16 Where jumps walk, a list in the pane's tag: Enter Looks a row (a message's cause, a place), ↩ +|26: C-q keeps it as a +Messages; else the +Messages. +|27: 17 +|28: 18 SPC h t Tutor topbar +|29: 19 Open the tutor, a document to work through. +|30: 20 +|31: ~ |40: ✓ /tmp/pardes-snap/leader/cwd/cmds.txt Help 4 messages · SPC h m == snap tutor grid=100x41 cursor=7,23 |22: /tmp/pardes-snap/leader/cwd/+Tutor Save Term Collapse Follow Del |
