From 73c916113fd8ca732e3e58586399020c2e291871 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 23 Nov 2026 16:06:49 -0300 Subject: help: the process cases that show the Help pane read it as it is now, their goldens with them, builtins-gui.json regenerated, and Compare's row said in words: test/process/tty_boot.zig's `builtins` case reached the full index's words with no SPC path by `g e` and forty wheel ticks up (a count every builtin added moved); with each word's documentation under its row they are some 220 lines down, so the case searches for Look's row, `/^ +Look ` and Enter (the one line that starts with blanks and `Look `: the documentation's lines start with a letter), and B2 on Tutor in the SPC h group at its row now (24); the `leader` case waits for the SPC t group's first two rows (`SPC t a Ascii`, `SPC t c Changes`), the rest being below its 41 rows now; tty_terminals.zig's `ttyhelp` waits for `SPC ? Help`; the three goldens (test/snapshots/builtins.golden, leader.golden, ttyhelp.golden) updated a case at a time (`-- --update `) and read: each Help capture now shows the rows with their documentation under them, the builtins case's query pane `/^ +Look` and its row `@p2:220:1`, Tutor opened by B2 from the index; docs/typ/builtins-gui.json regenerated (`text` in it, every doc the table's); Compare's second paragraph says its pair's row in words (the two points, how many changes lie between them, their first and last days) where the format `from..to N changes dates` lost a blank where the `///` wrapped; docs/typ/builtins-tui.json with it; the tui suites on the tree before this change's Compare edit: core-test 942/1108 (166 skipped), shell-test 1150/1153 (3 skipped), pane-test 182/183 (1 skipped), behaviour-test 277/277 and `-- --replay` 20 seeds of 70 steps 0 failures, term-test 17/17, kitty-test 45/45, process-test 0 of 146 failed (2 skipped), Debug, load 3.6-10; `zig build book` builds (128/128), its glossary each word's whole documentation; on this change: the frame and perf gate vs tree6 (`gpu/help1-g`, 1,648 s): 77 frames, 0 differ, gui unit-test 1748/1752 (no failure the base has not), perfab PASS (pictures identical in 10 runs, corpus2x -0.002%), perfops 120 of 121 within 0.1%, the one over the base's own (`open on small` +0.171%, the base's table +0.167%); the cross-builds (macOS, macOS aarch64, FreeBSD) build; the base's own counts here: core-test 941/1107, shell-test 1149/1152 Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- test/snapshots/builtins.golden | 133 +++++++++++++++++++++++------------------ 1 file changed, 74 insertions(+), 59 deletions(-) (limited to 'test/snapshots/builtins.golden') diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index 65fb024c..6d5739ef 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -14,66 +14,81 @@ |10: 1 pardes builtins under SPC c |11: 2 |12: 3 SPC c d Delcol -|13: 4 SPC c f Follow -|14: 5 SPC c j Joincol topbar -|15: 6 SPC c n Newcol topbar -|16: ~ +|13: 4 Close this column and its panes. +|14: 5 The column is the one whose tag it ran from, else the pane's. Refused once while a pane in it holds unsaved text↩ +|15: , the notice saying how many; Delcol again, nothing edited since, closes them. +|16: 6 +|17: 7 SPC c f Follow +|18: 8 Show one text across a chain of panes as consecutive pages, scrolled as one. +|19: 9 As Emacs's follow-mode: each page goes on where the one before ends. Each Follow adds a page, a Zerox of the tex↩ +|20: t, at the end of the column right of the chain's last, or in a new column there; its tag has Unfollow. +|21: 10 +|22: 11 SPC c j Joincol topbar +|23: 12 Fold the keyboard's column into the one on its right, keeping its panes. +|24: 13 Refused for the last column, and where the joined column could not give each pane its tag and 2 rows. +|25: 14 +|26: 15 SPC c n Newcol topbar +|27: 16 Make an empty column right of the keyboard's, its tag taking the keyboard. +|28: 17 The next pane made from there goes in it. Refused, saying why, when no column fits. +|29: 18 +|30: ~ +|57: +Search 1/1 Save Undock Del +|58: /^ +Look +|59: @p2:220:1 Look enter, right-click == snap docs-group grid=120x67 cursor=7,10 |10: 1 pardes builtins under SPC h |12: 3 SPC h b Build -|13: 4 SPC h c Changelog topbar -|14: 5 SPC h m Messages -|15: 6 SPC h t Tutor topbar -== snap tutor-from-index grid=120x67 cursor=7,17 +|13: 4 Show this build in a +Build: its version, compiler, optimize mode, target and dependencies. +|14: 5 A stamped build's (a release, or the ~/.local install) commit, jj change and build time too, its platform, its g↩ +|15: rammars, and whether the addons are compiled in. +|17: 7 SPC h c Changelog topbar +|18: 8 Show this build's version and what changed to reach it, in a +Changelog. +|19: 9 +|20: 10 SPC h m Messages +|21: 11 Show the messages said so far in a +Messages. +|22: 12 +|23: 13 SPC h t Tutor topbar +|24: 14 Open the tutor, a document to work through. +|25: 15 +|26: ~ +|27: +|28: +|29: +|30: +== snap tutor-from-index grid=120x67 cursor=7,36 |10: 1 pardes builtins under SPC h Tutor -|16: /tmp/pardes-snap/builtins/cwd/+Tutor Save Term Collapse Follow Del -|17: 1 -|18: 2 PARDES TUTOR -|19: 3 -|20: 4 This pane is +Tutor, a copy: edit it freely; there is no need to -|21: 5 Save it (a bare Save asks for a path to write a copy to). -|22: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses -|23: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a -|24: 8 fresh copy. -|25: 9 -|26: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. -|27: 11 Each lesson is a few things to do, then names its guide section. -|28: 12 Words in backticks, like `Save`, are builtins. -|29: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a -|30: 14 shell line; `Look` (B3) opens what the text names, or else finds -|31: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with -|32: 16 "| " are tags. -|33: 17 -|34: 18 Press j until you reach part 1. -|35: 19 -|36: 20 -|37: 21 ================================================================= -|38: 22 = PART 1 — MODES = -|39: 23 ================================================================= -|40: 24 -|41: 25 1. The box left of this pane's tag is blank, so you are in -|42: 26 NORMAL mode. Press i: it shows ^ (INSERT). Type a word, then -|43: 27 Esc: blank again. -|44: 28 2. Press Esc once more, in NORMAL: the keyboard goes back to the -|45: 29 pane you were in before (not what helix does). Come back with -|46: 30 Esc again. -|47: 31 3. Press Alt-n: a terminal opens, in NORMAL mode, and pardes types -|48: 32 ls at its first prompt. Press Ctrl-b: its box shows $ (RAW), and -|49: 33 keys go to the shell. Esc brings you back here; the terminal stays -|50: 34 $. Shift-Esc sends the shell an Esc. -|51: 35 -|52: 36 -> Guide: Modes -|53: 37 -|54: 38 -|55: 39 ================================================================= -|56: 40 = PART 2 — THE MOUSE = -|57: 41 ================================================================= -|58: 42 -|59: 43 1. `Look` (B3) the word mouse in this sentence: the next mouse is -|60: 44 selected. -|61: 45 2. `Exec` (B2) the word `Help` here: the list of keys opens. -|62: 46 Close it with `Del` in its tag. -|63: 47 3. Select a word with B1, keep B1 down, click B2: it is cut. Still -|64: 48 holding B1, click B3: it comes back. That pair is a copy. -|65: 49 4. Put the cursor on `Help` and press Tab: `Exec`, as B2. Enter -|66: 50 is `Look`, as B3. +|25: +Search 1/1 Save Undock Del +|26: /^ +Look +|27: @p2:220:1 Look enter, right-click +|35: /tmp/pardes-snap/builtins/cwd/+Tutor Save Term Collapse Follow Del +|36: 1 +|37: 2 PARDES TUTOR +|38: 3 +|39: 4 This pane is +Tutor, a copy: edit it freely; there is no need to +|40: 5 Save it (a bare Save asks for a path to write a copy to). +|41: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses +|42: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a +|43: 8 fresh copy. +|44: 9 +|45: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part. +|46: 11 Each lesson is a few things to do, then names its guide section. +|47: 12 Words in backticks, like `Save`, are builtins. +|48: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a +|49: 14 shell line; `Look` (B3) opens what the text names, or else finds +|50: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with +|51: 16 "| " are tags. +|52: 17 +|53: 18 Press j until you reach part 1. +|54: 19 +|55: 20 +|56: 21 ================================================================= +|57: 22 = PART 1 — MODES = +|58: 23 ================================================================= +|59: 24 +|60: 25 1. The box left of this pane's tag is blank, so you are in +|61: 26 NORMAL mode. Press i: it shows ^ (INSERT). Type a word, then +|62: 27 Esc: blank again. +|63: 28 2. Press Esc once more, in NORMAL: the keyboard goes back to the +|64: 29 pane you were in before (not what helix does). Come back with +|65: 30 Esc again. +|66: 31 3. Press Alt-n: a terminal opens, in NORMAL mode, and pardes types -- cgit v1.3