summaryrefslogtreecommitdiff
path: root/test/snapshots/leader.golden
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-24 21:28:54 -0300
committerGabriel Schneider <[email protected]>2026-11-24 21:40:53 -0300
commit9f4109bceefbfc3e63eaf510eb7d05603e09db9c (patch)
tree6ee3a51a29da114ae9eb0d14891860881cc54f5c /test/snapshots/leader.golden
parente64bd853c33bce38f91c9103c0afceb690333585 (diff)
downloadpardes-9f4109bceefbfc3e63eaf510eb7d05603e09db9c.tar.gz
pardes-9f4109bceefbfc3e63eaf510eb7d05603e09db9c.zip
TagState, Core, Band, process-test: a tag out of rest keeps its rows at rest, a rolled level counts every cell it adds, a doc's paragraphs are rows, and the +Help cases use the word (fixes on top of items 2-5 of line A, uqopxwqz vnqmzpqs kquzozvs okqtwzll moosvmpn, frozen): process-test's six failures on moosvmpn: TAGNAV (row 6's `$` gone after `c-w l enter`, `c-b`) and LOOKPANES (`@alpha` off row 6 after `space w h`, on the parallel pass only): RUN: a screen dumped before each click: lookpanes' shell tag `/tmp/.../cwd C-w …` on ONE row where its own text takes two, the shell's rows moved up one; tagnav's shell pty resized twice by `c-w h enter` from its focused tag (bash's redraw lost its prompt mark); THE CAUSE: Core.zig sync gave a tag out of rest the rows its head takes, and a root's key cell (` C-w …`, ` ␣ …`, before its level shows 250 ms on) is shorter than the tag's own text: the body moved up and back down, a terminal's pty resized under its program (moosvmpn bounded a terminal's rolled level from above only); and TagState.head's room left out the ` …` past the last child that fits, each group's `…` and a struck key (at 100 columns C-w's level took 97 of a terminal's 96 cells, three rows for its two); THE FIX: sync: out of rest (hostOf), a tag keeps the rows its own text takes (layout.wantedTagRows), at least, and a terminal's exactly; tag_top saturates (a head of fewer lines than the tag's rows overflowed `lines - tag_rows` when the tag had the keyboard: a panic the first fix met in tagnav); head counts every cell (exact separators, `…`s, the struck key) and the child whose ` …` would not fit stops the level; DECIDED (SPEC §3.6's give-way order): a text pane's rolled level may wrap its tag to three rows (the first give-way, the §3.7 mockup's two rows), never fewer rows than at rest; a terminal's, exactly its rows at rest; a user hit both: every SPC or C-w in a pane whose tag takes two rows or more moved its body up for 250 ms, and in a terminal resized its program twice; THE BAND (seen in ttyhelp's new golden): a doc's paragraphs, a line each in builtins.Doc.text, were drawn as one row with a `�` for each newline (Band.wrap): each now starts a row; FIND, LEADER, BUILTINS, TTYHELP: `SPC ?` and `?` down a level are Help in the tag now (SPEC §4.5), so the cases that test the +Help index run the word (`Help` from the workspace tag, `Help h`, `Help t`, `Help c`, `Help l` swept with B2 on a line of their file, tty_boot.zig sweepHelp); ttyhelp's `SPC ?` shows the new Help in the focused pane's tag, `tutor` typed into its field; the snapshots taken after SPC wait for its level (the quiet screen of the parallel pass came back before the 250 ms frame: a golden that depended on the pass); leader presses Esc after its struck key (the level stays, A's ruling); GOLDENS, every changed row: find: `group` the rolled SPC f level in the tag over two rows (the hint cut by the cell, acme's wrap), the body a row down, the `SPC f` chip gone; `armed` the tag back at rest; ttyhelp: `leaderworks` the +Help's tag `^ ... Help tutor 1/133`, its band (the row, the doc step, no `�`) pushing its body four rows down; builtins: notes.txt's first line `Help c Help h`; the +Help for SPC h with Keys (SPC h k, item 5) and its documentation, every row under it six down, the +Look search on line 224 for 220, Tutor's row 30 for 24; leader: `spc`, `spc-h`, `unmapped` the rolled levels (SPC's over three rows, `x` struck), cmds.txt's line of five words, the Help announcement chip, the Keys rows, the tutor a row lower under the longer +Help; TESTS FIRST: TagState.zig "a rolled level fits its rows at every width..." (failed: 4 rows), "a terminal's rolled level keeps its tag rows at every width, C-w's as SPC's..." (shell-test; failed: expected 2, found 3), "a tag out of rest keeps its rows at rest at least..." (failed: expected 2, found 1; then the integer overflow at Core.zig:2047 with the keyboard in the tag), Band.zig "a doc's paragraphs are rows of their own..." (failed: a newline in a row)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/snapshots/leader.golden')
-rw-r--r--test/snapshots/leader.golden127
1 files changed, 75 insertions, 52 deletions
diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden
index 9f523992..81ddd6ce 100644
--- a/test/snapshots/leader.golden
+++ b/test/snapshots/leader.golden
@@ -1,14 +1,28 @@
-== snap spc grid=100x41 cursor=7,3
+== snap spc grid=100x41 cursor=7,5
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
| New Term Find Grep Joincol Delcol
-| /tmp/pardes-snap/leader/cwd/cmds.txt Save Term Collapse Follow Del
-| 1 Help SPC
-== snap spc-h grid=100x41 cursor=7,3
-|3: 1 Help SPC h
+| /tmp/pardes-snap/leader/cwd/cmds.txt ␣ ▸ b buffer… c column… f file… h help… j jump… l lsp…
+| n new… s session… t view… / All ? Help d Del p ClipPaste P ClipPasteBefore q Exit R ClipR
+| eplace w Window y ClipYank Y ClipYankMain ↓ unroll · ? help
+| 1 Help Help h Help t Help c Help l
+== snap spc-h grid=100x41 cursor=7,4
+|2: /tmp/pardes-snap/leader/cwd/cmds.txt ␣ h ▸ b Build c Changelog k Keys m Messages t Tutor ↓ u
+|3: nroll · ? help
+|4: 1 Help Help h Help t Help c Help l
+|5:
== snap abandoned grid=100x41 cursor=7,3
-|3: 1 Help
-== snap unmapped grid=100x41 cursor=7,3
+|2: /tmp/pardes-snap/leader/cwd/cmds.txt Save Term Collapse Follow Del
+|3: 1 Help Help h Help t Help c Help l
+|4:
+== snap unmapped grid=100x41 cursor=7,5
+|2: /tmp/pardes-snap/leader/cwd/cmds.txt ␣ ▸ b buffer… c column… f file… h help… j jump… l lsp…
+|3: n new… s session… t view… / All ? Help d Del p ClipPaste P ClipPasteBefore q Exit R ClipR
+|4: eplace w Window y ClipYank Y ClipYankMain x ↓ unroll · ? help
+|5: 1 Help Help h Help t Help c Help l
== snap help-group grid=100x41 cursor=7,6
+|2: /tmp/pardes-snap/leader/cwd/cmds.txt Save Term Collapse Follow Del
+|3: 1 Help Help h Help t Help c Help l Help
+|4:
|5: /tmp/pardes-snap/leader/cwd/+Help Save Term Collapse Follow Del
|6: 1 pardes builtins under SPC h
|7: 2
@@ -20,34 +34,41 @@
|13: 7 SPC h c Changelog topbar
|14: 8 Show this build's version and what changed to reach it, in a +Changelog.
|15: 9
-|16: 10 SPC h m Messages
-|17: 11 Show the messages said so far in a +Messages.
-|18: 12
-|19: 13 SPC h t Tutor topbar
-|20: 14 Open the tutor, a document to work through.
-|21: 15
-|22: ~
-== snap tutor grid=100x41 cursor=7,23
+|16: 10 SPC h k Keys
+|17: 11 Show what a key sequence runs: the next keys typed are replayed in the tag.
+|18: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls ↩
+|19: its level under the tag with the leaf on the cursor and its documentation beside it, and Ent↩
+|20: er runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing↩
+|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.
+|25: 16
+|26: 17 SPC h t Tutor topbar
+|27: 18 Open the tutor, a document to work through.
+|28: 19
+|29: ~
+== snap tutor grid=100x41 cursor=7,24
+|3: 1 Help Help h Help t Help c Help l
|6: 1 pardes builtins under SPC h Tutor
-|22: /tmp/pardes-snap/leader/cwd/+Tutor Save Term Collapse Follow Del
-|23: 1
-|24: 2 PARDES TUTOR
-|25: 3
-|26: 4 This pane is +Tutor, a copy: edit it freely; there is no need to
-|27: 5 Save it (a bare Save asks for a path to write a copy to).
-|28: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses
-|29: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a
-|30: 8 fresh copy.
-|31: 9
-|32: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part.
-|33: 11 Each lesson is a few things to do, then names its guide section.
-|34: 12 Words in backticks, like `Save`, are builtins.
-|35: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a
-|36: 14 shell line; `Look` (B3) opens what the text names, or else finds
-|37: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with
-|38: 16 "| " are tags.
-|39: 17
-|40: 18 Press j until you reach part 1.
+|23: /tmp/pardes-snap/leader/cwd/+Tutor Save Term Collapse Follow Del
+|24: 1
+|25: 2 PARDES TUTOR
+|26: 3
+|27: 4 This pane is +Tutor, a copy: edit it freely; there is no need to
+|28: 5 Save it (a bare Save asks for a path to write a copy to).
+|29: 6 `Del` in its tag closes it; once you have edited it, `Del` refuses
+|30: 7 once and the second `Del` discards. `Tutor` or SPC h t opens a
+|31: 8 fresh copy.
+|32: 9
+|33: 10 The guide (docs/typ/guide.typ) explains; this is the hands-on part.
+|34: 11 Each lesson is a few things to do, then names its guide section.
+|35: 12 Words in backticks, like `Save`, are builtins.
+|36: 13 `Exec` (B2) runs the builtin a word names, or else runs it as a
+|37: 14 shell line; `Look` (B3) opens what the text names, or else finds
+|38: 15 it. Type a builtin in any tag and `Exec` it. Lines starting with
+|39: 16 "| " are tags.
+|40: 17
== snap deleted grid=100x41 cursor=7,3
|5:
|6:
@@ -67,25 +88,26 @@
|20:
|21:
|22:
-|23:
-|24: /tmp/pardes-snap/leader/cwd/+Help Save Term Collapse Follow Del
-|25: 1 pardes builtins under SPC h
-|26: 2
-|27: 3 SPC h b Build
-|28: 4 Show this build in a +Build: its version, compiler, optimize mode, target and dependencies.
-|29: 5 A stamped build's (a release, or the ~/.local install) commit, jj change and build time too,↩
-|30: its platform, its grammars, and whether the addons are compiled in.
-|31: 6
-|32: 7 SPC h c Changelog topbar
-|33: 8 Show this build's version and what changed to reach it, in a +Changelog.
-|34: 9
-|35: 10 SPC h m Messages
-|36: 11 Show the messages said so far in a +Messages.
-|37: 12
-|38: 13 SPC h t Tutor topbar
-|39: 14 Open the tutor, a document to work through.
-|40: 15
+|23: /tmp/pardes-snap/leader/cwd/+Help Save Term Collapse Follow Del
+|24: 1 pardes builtins under SPC h
+|25: 2
+|26: 3 SPC h b Build
+|27: 4 Show this build in a +Build: its version, compiler, optimize mode, target and dependencies.
+|28: 5 A stamped build's (a release, or the ~/.local install) commit, jj change and build time too,↩
+|29: its platform, its grammars, and whether the addons are compiled in.
+|30: 6
+|31: 7 SPC h c Changelog topbar
+|32: 8 Show this build's version and what changed to reach it, in a +Changelog.
+|33: 9
+|34: 10 SPC h k Keys
+|35: 11 Show what a key sequence runs: the next keys typed are replayed in the tag.
+|36: 12 The tag shows `Keys` and the keys as they are typed; a sequence that reaches a leaf unrolls ↩
+|37: its level under the tag with the leaf on the cursor and its documentation beside it, and Ent↩
+|38: er runs it. Every root answers: SPC, g, m, z, Z, [, ], window mode's C-w. A sequence nothing↩
+|39: is bound to is shown struck, `runs nothing`. Esc leaves it.
+|40: 13
== snap help-column grid=100x41 cursor=7,6
+|3: 1 Help Help h Help t Help c Help l Help
|5: /tmp/pardes-snap/leader/cwd/+Help Save Term Collapse Follow Del
|6: 1 pardes builtins under SPC c
|7: 2
@@ -158,6 +180,7 @@
|39: 31
|40: 32 SPC l i Lspinfo
== snap del-output grid=100x41 cursor=7,3
+|3: 1 Help Help h Help t Help c Help l
|5:
|6:
|7: