summaryrefslogtreecommitdiff
path: root/test/snapshots/leader.golden
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-31 02:40:11 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:08 -0300
commit7022d738dba00049e820e969cabc34ecbeaea465 (patch)
tree28d32929255ba21144d579e210a658f6c1fb1943 /test/snapshots/leader.golden
parent0bfa4615988c0d1bcaa38453375760c60076c5ea (diff)
downloadpardes-7022d738dba00049e820e969cabc34ecbeaea465.tar.gz
pardes-7022d738dba00049e820e969cabc34ecbeaea465.zip
Help lists every builtin and every way to reach it
Not a second builtin: Help already rendered "every builtin with a leader path and the key that runs it", and the ask is "every builtin and every shortcut" — the same listing with three more rows and one more column. A new builtin would have been a second renderer over a superset of the same rows, and the two would drift the first time a column moved. The prefix filter is now the degenerate case of the index rather than a separate mode: SPC h ? reads the same array with prefix "h", and the path-less builtins fall out on their own because an empty path starts with nothing. The shortcut column is folded, never typed: chordName spells a chord from Key's OWN declarations, so a new special key names itself and an unnamed non-printable codepoint is a compile error instead of garbage; shortcuts() walks the cmd columns of window_keys and jump_keys, look_cmd/exec_cmd with their keys and buttons, and topbar_str. Retarget a binding in config.zig and this re-renders. So Look reads `enter, right-click`, Back reads `C-o`, Kill reads `topbar`, and Theme reads nothing at all — which is the information. Not a picker, deliberately: n/N stepping a list holding Kill, Del and Delcol would end the session. The names are live text, so middle-click the one you want. Alt-n, Alt-c, the tty toggle and the cut/paste chords cannot appear — they are inline handlers that reach no builtin, so there is no row to put them on. Make one a struct with a cmd column beside its binding and it appears for free. Three goldens moved, all of them the +Help buffer's contents.
Diffstat (limited to 'test/snapshots/leader.golden')
-rw-r--r--test/snapshots/leader.golden90
1 files changed, 45 insertions, 45 deletions
diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden
index 0ed14a68..5e2aaba7 100644
--- a/test/snapshots/leader.golden
+++ b/test/snapshots/leader.golden
@@ -185,24 +185,24 @@
|
|
| NOR /tmp/pardes-snap/leader/cwd/+Help Del
-| 1 pardes builtins - SPC then the keys,
-| 2 or execute the name anywhere
-| 3
-| 4 SPC ? Help
-| 5 SPC c d Delcol
-| 6 SPC c n Newcol
-| 7 SPC d Del
-| 8 SPC f f Find
-| 9 SPC f g Grep
-| 10 SPC f s Save
-| 11 SPC h t Tutor
-| 12 SPC j i Forward
-| 13 SPC j j Last
-| 14 SPC j l Jumplist
-| 15 SPC j o Back
-| 16 SPC k Kill
-| 17 SPC l D WsDiagnostics
-| 18 SPC l S WsSymbols
+| 1 pardes builtins, and how to run each:
+| 2 SPC and its keys, a chord, a button, the
+| 3 topbar - or the name, executed anywhere.
+| 4
+| 5 SPC ? Help topbar
+| 6 SPC c d Delcol
+| 7 SPC c n Newcol topbar
+| 8 SPC d Del
+| 9 SPC f f Find topbar
+| 10 SPC f g Grep topbar
+| 11 SPC f s Save
+| 12 SPC h t Tutor topbar
+| 13 SPC j i Forward C-i
+| 14 SPC j j Last
+| 15 SPC j l Jumplist
+| 16 SPC j o Back C-o
+| 17 SPC k Kill topbar
+| 18 SPC l D WsDiagnostics
== snap help-group grid=100x40 cursor=7,22
|Kill Newcol Tutor Debug NextColor Dump Find Grep Help
| NOR /tmp/pardes-snap/leader/cwd/cmds.txt Save De NOR /tmp/pardes-snap/leader/cwd Del
@@ -228,7 +228,7 @@
| NOR /tmp/pardes-snap/leader/cwd/+Help Del
| 1 pardes builtins under SPC h
| 2
-| 3 SPC h t Tutor
+| 3 SPC h t Tutor topbar
| 4
|
|
@@ -269,7 +269,7 @@
| NOR /tmp/pardes-snap/leader/cwd/+Help Del
| 1 pardes builtins under SPC h
| 2
-| 3 SPC h t Tutor
+| 3 SPC h t Tutor topbar
| 4
|
|
@@ -310,7 +310,7 @@
| NOR /tmp/pardes-snap/leader/cwd/+Help Del
| 1 pardes builtins under SPC h
| 2
-| 3 SPC h t Tutor
+| 3 SPC h t Tutor topbar
| 4
|
|
@@ -349,24 +349,24 @@
|
|
| NOR /tmp/pardes-snap/leader/cwd/+Help Del
-| 1 pardes builtins - SPC then the keys,
-| 2 or execute the name anywhere
-| 3
-| 4 SPC ? Help
-| 5 SPC c d Delcol
-| 6 SPC c n Newcol
-| 7 SPC d Del
-| 8 SPC f f Find
-| 9 SPC f g Grep
-| 10 SPC f s Save
-| 11 SPC h t Tutor
-| 12 SPC j i Forward
-| 13 SPC j j Last
-| 14 SPC j l Jumplist
-| 15 SPC j o Back
-| 16 SPC k Kill
-| 17 SPC l D WsDiagnostics
-| 18 SPC l S WsSymbols
+| 1 pardes builtins, and how to run each:
+| 2 SPC and its keys, a chord, a button, the
+| 3 topbar - or the name, executed anywhere.
+| 4
+| 5 SPC ? Help topbar
+| 6 SPC c d Delcol
+| 7 SPC c n Newcol topbar
+| 8 SPC d Del
+| 9 SPC f f Find topbar
+| 10 SPC f g Grep topbar
+| 11 SPC f s Save
+| 12 SPC h t Tutor topbar
+| 13 SPC j i Forward C-i
+| 14 SPC j j Last
+| 15 SPC j l Jumplist
+| 16 SPC j o Back C-o
+| 17 SPC k Kill topbar
+| 18 SPC l D WsDiagnostics
== snap help-toggles grid=100x40 cursor=7,22
|Kill Newcol Tutor Debug NextColor Dump Find Grep Help
| NOR /tmp/pardes-snap/leader/cwd/cmds.txt Save De NOR /tmp/pardes-snap/leader/cwd Del
@@ -394,9 +394,9 @@
| 2
| 3 SPC t a Ascii
| 4 SPC t c Colors
-| 5 SPC t d Debug
+| 5 SPC t d Debug topbar
| 6 SPC t l Palette
-| 7 SPC t n NextColor
+| 7 SPC t n NextColor topbar
| 8 SPC t p Petscii
| 9 SPC t r Crt
| 10 SPC t t ThemeSel
@@ -433,10 +433,10 @@
| NOR /tmp/pardes-snap/leader/cwd/+Help Del
| 1 pardes builtins under SPC w
| 2
-| 3 SPC w h Left
-| 4 SPC w j Down
-| 5 SPC w k Up
-| 6 SPC w l Right
+| 3 SPC w h Left C-w h, C-w left
+| 4 SPC w j Down C-w j, C-w down
+| 5 SPC w k Up C-w k, C-w up
+| 6 SPC w l Right C-w l, C-w right
| 7 SPC w t Toggleterm
| 8
|