summaryrefslogtreecommitdiff
path: root/test/snapshots/leader.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-26 18:36:08 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commite381c96a08f08e03a340a24acb3fe5fe1fca51be (patch)
treedb0ef0cc2652d2797b9e2f73709db601816436d1 /test/snapshots/leader.snap
parenta4a2a96d023a5977ae7a7d07c7ee9e4fe38e9c60 (diff)
downloadpardes-e381c96a08f08e03a340a24acb3fe5fe1fca51be.tar.gz
pardes-e381c96a08f08e03a340a24acb3fe5fe1fca51be.zip
adding better search to tty mode
Diffstat (limited to 'test/snapshots/leader.snap')
-rw-r--r--test/snapshots/leader.snap64
1 files changed, 64 insertions, 0 deletions
diff --git a/test/snapshots/leader.snap b/test/snapshots/leader.snap
new file mode 100644
index 00000000..9da5f288
--- /dev/null
+++ b/test/snapshots/leader.snap
@@ -0,0 +1,64 @@
+# The SPC leader: every builtin also has a KEY PATH, and SPC walks it. While a
+# path is pending the active pane's tag shows it at its RIGHT edge (the `/`
+# input's rule — state you can see — right-aligned so it never collides with
+# the tail's builtins). `?` at any depth opens the Help builtin, listing what
+# the prefix typed so far can still reach, into a +Help OUTPUT BUFFER (a file
+# pane with no file behind it, like +Search). The paths, the Help lines and
+# the execute dispatch are all folded out of ONE enum at comptime — so
+# executing the WORD `Help` runs the same builtin the leader does.
+file cmds.txt Help
+start 40 100 cmds.txt
+wait 8000 Kill Newcol
+wait 8000 cmds.txt
+stable 700 20000
+# SPC arms the leader: the indicator appears on the active pane's tag
+key space
+stable 400 5000
+snap spc
+# ... and grows as the path is typed (`h` = the docs group)
+key h
+stable 400 5000
+snap spc-h
+# Esc abandons the sequence: indicator gone, nothing ran, cursor untouched
+key esc
+settle 700
+stable 400 5000
+snap abandoned
+# an UNMAPPED key abandons too, rather than waiting: a typo must not leave the
+# next keystroke armed at a builtin that closes panes
+key space
+key q
+stable 400 5000
+snap unmapped
+# executing the WORD `Help` (middle-click) runs the builtin — the enum IS the
+# lookup, so a name works anywhere text lives. Every builtin, with its keys.
+press middle 9 3
+release middle 9 3
+wait 10000 SPC h t
+stable 700 15000
+snap help-word
+# `SPC h ?`: only the `h` group, rewritten into the SAME +Help buffer
+key space
+key h
+key ?
+wait 10000 under SPC h
+stable 700 15000
+snap help-group
+# `SPC h t`: the Tutor builtin, zero arguments
+key space
+key h
+key t
+wait 10000 PARDES TUTOR
+stable 700 15000
+snap tutor
+# `SPC d`: Del is pane-scoped — it closes the tutor, focus falls back
+key space
+key d
+stable 700 15000
+snap deleted
+# `SPC ?` at the root lists everything again
+key space
+key ?
+wait 10000 SPC s r
+stable 700 15000
+snap help-all