From 12715baaa9341fbc79c8bf4573c372843064ea51 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 26 Nov 2026 13:16:02 -0300 Subject: builtins, Pick, docs/typ: the help text that still put what a state shows in the tag says it hangs under the tag, as walkui UX DESIGN parts M and O have it (M1: a tag never leaves rest, everything a state shows hangs under it; O1: a picker hangs under the tag of the pane with the keyboard, only its preview goes to the pane its Enter lands in): Keys (describe-key: `the next keys typed are replayed under the tag`, `The row under the tag shows Keys and the keys as typed; ... unrolls its level below`), Messages (`a list under the pane's tag`), Resume (`Under this pane's tag, previewing where its Enter lands: this pane if it reads, else its reader`, where it said the picker unrolled in the tag of the pane its Enter lands in, a held pane's reader), CodeAction (`a picker under the pane's tag`), and the same words in docs/typ/builtins-tui.json and builtins-gui.json (the glossary the build writes from these docs; core/builtins_json.zig's test holds them to the registry), Pick.resumeAt's doc and two code comments in builtins.zig (Themes, Query's sources); WHAT WAS LOOKED AT: docs/typ (guide, reference, cheatsheet, running, setup, scripting, building, themes), core/tutor.txt, fs-help.txt, README.md and every builtin's documentation (the Help index): none of them names the act/source row, says a click ends a picker or a prompt, or puts a picker's head in a tag but these four; a question still takes the keyboard in its pane's tag (M1 leaves asking as it is), so Message's doc stays; Keys' doc is worded to keep its three rows in the Help index (process-test's builtins case middle-clicks Tutor's row by its number); TEXT ONLY, no behaviour; GOLDENS (the Help index's text rows only, no style row moved): builtins.golden docs-group and tutor-from-index (Keys' and Messages' rows), leader.golden help-group, tutor, deleted (Keys', Messages') and help-language (CodeAction's), ttyhelp.golden helped and leaderworks (Resume's); GATES (Debug tui): core-test 1165/1340 (175 skipped; the glossary's test with them), process-test 0 of 103 failed with --update (the three re-recorded, read above; a first wording of Keys' doc took a fourth row and failed builtins' `@Tutor` on row 31, reworded); load 1.4 to 2.1 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE --- test/snapshots/builtins.golden | 12 ++++++------ test/snapshots/leader.golden | 28 ++++++++++++++-------------- test/snapshots/ttyhelp.golden | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) (limited to 'test') diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index 357acd11..f683428d 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -100,15 +100,15 @@ |17: 8 Show this build's version and what changed to reach it, in a +Changelog. |18: 9 |19: 10 SPC h k Keys -|20: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. -|21: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls its level under the ↩ -|22: tag with the leaf on the cursor and its documentation beside it, and Enter runs it. Every root answers: SPC, g, ↩ -|23: m, z, Z, [, ], window mode's C-w. A sequence nothing is bound to is shown struck, `runs nothing`. Esc leaves it. +|20: 11 Show what a key sequence runs: the next keys typed are replayed under the tag. +|21: 12 The row under the tag shows `Keys` and the keys as typed; a sequence that reaches a leaf unrolls its level below↩ +|22: with the leaf on the cursor and its documentation beside it, and Enter runs it. Every root answers: SPC, g, m, ↩ +|23: z, Z, [, ], window mode's C-w. A sequence nothing is bound to is shown struck, `runs nothing`. Esc leaves it. |24: 13 |25: 14 SPC h m Messages |26: 15 Show the messages said so far, the newest first, an error's places under it. -|27: 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↩ -|28: essages; else the +Messages. +|27: 16 Where jumps walk, a list under the pane's tag: Enter Looks a row (a message's cause, a place), C-q keeps it as a↩ +|28: +Messages; else the +Messages. |29: 17 |30: 18 SPC h t Tutor |31: 19 Open the tutor, a document to work through. diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index f149bbd4..29f86d82 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -65,16 +65,16 @@ |13: 8 Show this build's version and what changed to reach it, in a +Changelog. |14: 9 |15: 10 SPC h k Keys -|16: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. -|17: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls ↩ -|18: its level under the tag with the leaf on the cursor and its documentation beside it, and Ent↩ -|19: er runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing↩ -|20: is bound to is shown struck, `runs nothing`. Esc leaves it. +|16: 11 Show what a key sequence runs: the next keys typed are replayed under the tag. +|17: 12 The row under the tag shows `Keys` and the keys as typed; a sequence that reaches a leaf unr↩ +|18: olls its level below with the leaf on the cursor and its documentation beside it, and Enter ↩ +|19: runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing is↩ +|20: bound to is shown struck, `runs nothing`. Esc leaves it. |21: 13 |22: 14 SPC h m Messages |23: 15 Show the messages said so far, the newest first, an error's places under it. -|24: 16 Where jumps walk, a list in the pane's tag: Enter Looks a row (a message's cause, a place), ↩ -|25: C-q keeps it as a +Messages; else the +Messages. +|24: 16 Where jumps walk, a list under the pane's tag: Enter Looks a row (a message's cause, a place↩ +|25: ), C-q keeps it as a +Messages; else the +Messages. |26: 17 |27: 18 SPC h t Tutor |28: 19 Open the tutor, a document to work through. @@ -132,11 +132,11 @@ |31: 8 Show this build's version and what changed to reach it, in a +Changelog. |32: 9 |33: 10 SPC h k Keys -|34: 11 Show what a key sequence runs: the next keys typed are replayed in the tag. -|35: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls ↩ -|36: its level under the tag with the leaf on the cursor and its documentation beside it, and Ent↩ -|37: er runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing↩ -|38: is bound to is shown struck, `runs nothing`. Esc leaves it. +|34: 11 Show what a key sequence runs: the next keys typed are replayed under the tag. +|35: 12 The row under the tag shows `Keys` and the keys as typed; a sequence that reaches a leaf unr↩ +|36: olls its level below with the leaf on the cursor and its documentation beside it, and Enter ↩ +|37: runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing is↩ +|38: bound to is shown struck, `runs nothing`. Esc leaves it. |39: 13 |40: ✓ /tmp/pardes-snap/leader/cwd/+Tutor Del 6 messages · SPC h m == snap help-column grid=100x41 cursor=7,5 @@ -193,8 +193,8 @@ |18: 14 |19: 15 SPC l a CodeAction |20: 16 List the language server's code actions for the cursor, to apply one. -|21: 17 Typed where jumps walk, they are a picker in the pane's tag, the one under the cursor shown ↩ -|22: as its edit, applied by Enter or its digit; else a +Lsp lists them. +|21: 17 Typed where jumps walk, they are a picker under the pane's tag, the one under the cursor sho↩ +|22: wn as its edit, applied by Enter or its digit; else a +Lsp lists them. |23: 18 |24: 19 SPC l b Callstack |25: 20 Show the callers of the function under the cursor as a tree, outermost first, in a +Callstac↩ diff --git a/test/snapshots/ttyhelp.golden b/test/snapshots/ttyhelp.golden index 4b6e10d0..30feb983 100644 --- a/test/snapshots/ttyhelp.golden +++ b/test/snapshots/ttyhelp.golden @@ -39,7 +39,7 @@ |25: 2 |26: 3 SPC ' Resume |27: 4 Reopen the last picker as it was: its rows, marks, cursor and query. -|28: 5 In the tag of the pane its Enter lands in from this one: this pane if it reads, else its rea↩ +|28: 5 Under this pane's tag, previewing where its Enter lands: this pane if it reads, else its rea↩ |29: der. `SPC '`; again after its Esc, nothing typed between, the one before it; Ctrl-o and Ctrl |30: ✓ @p1 Help 1 message · SPC h m == snap leaderworks grid=100x31 cursor=12,21 -- cgit v1.3