summaryrefslogtreecommitdiff
path: root/test/snapshots
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-26 23:25:53 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commitd9da3ce9e87cf4c43bf34664031f090e6dde2410 (patch)
tree1ab9627da3c8d8066a282f20fe4796e7001c3f94 /test/snapshots
parentfc3b5633cb00f2c0495b940c3f1fb07000502819 (diff)
downloadpardes-d9da3ce9e87cf4c43bf34664031f090e6dde2410.tar.gz
pardes-d9da3ce9e87cf4c43bf34664031f090e6dde2410.zip
Find builtin (SPC f f): fd in-core, results into +Search, n/N opens each hit
Save moves w -> f s to free the w group for window navigation.
Diffstat (limited to 'test/snapshots')
-rw-r--r--test/snapshots/find.golden492
-rw-r--r--test/snapshots/find.snap75
-rw-r--r--test/snapshots/leader.golden44
3 files changed, 589 insertions, 22 deletions
diff --git a/test/snapshots/find.golden b/test/snapshots/find.golden
new file mode 100644
index 00000000..d489c1c2
--- /dev/null
+++ b/test/snapshots/find.golden
@@ -0,0 +1,492 @@
+== snap group grid=120x40 cursor=7,2
+|Kill Newcol Tutor Debug Colors NextColor Crt Dump
+| NOR /tmp/pardes-snap/find/cwd/here.txt Save Del SPC f NOR /tmp/pardes-snap/find/cwd Del
+| 1 Find
+| here.txt other.txt sub zqmark-alpha.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+== snap armed grid=120x40 cursor=56,1
+|Kill Newcol Tutor Debug Colors NextColor Crt Dump
+| INS /tmp/pardes-snap/find/cwd/here.txt Save Del Find / NOR /tmp/pardes-snap/find/cwd Del
+| 1 Find
+| here.txt other.txt sub zqmark-alpha.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+== snap typing grid=120x40 cursor=59,1
+|Kill Newcol Tutor Debug Colors NextColor Crt Dump
+| INS /tmp/pardes-snap/find/cwd/here.txt Save Del Find /zqm NOR /tmp/pardes-snap/find/cwd Del
+| 1 Find
+| here.txt other.txt sub zqmark-alpha.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+== snap results grid=120x40 cursor=7,2
+|Kill Newcol Tutor Debug Colors NextColor Crt Dump
+| NOR /tmp/pardes-snap/find/cwd/here.txt Save Del NOR /tmp/pardes-snap/find/cwd Del
+| 1 Find
+| here.txt other.txt sub zqmark-alpha.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/+Search Del
+| 1 /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt
+| 2 /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt
+| 3 /tmp/pardes-snap/find/cwd/zqmark-alpha.txt
+| 4
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+== snap first grid=120x40 cursor=7,2
+|Kill Newcol Tutor Debug Colors NextColor Crt Dump
+| NOR /tmp/pardes-snap/find/cwd/here.txt Save Del NOR /tmp/pardes-snap/find/cwd Del
+| 1 Find
+| here.txt other.txt sub zqmark-alpha.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/+Search Del
+| 1 /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt
+| 2 /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt
+| 3 /tmp/pardes-snap/find/cwd/zqmark-alpha.txt
+| 4
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save Del
+| 1 beta body
+|
+|
+|
+|
+|
+|
+|
+== style first
+|0: 0-48 #969696,#2c2a3e, 49-119 d,#2c2a3e,
+|1: 0-1 d,#6e4fd0, 2-48 #969696,#2c2a3e, 49-59 d,#2c2a3e, 60-61 d,#383c54, 62-94 #969696,#2c2a3e, 95-119 d,#2c2a3e,
+|2: 0-1 d,#525252, 2-6 #969696,#2c2a3e, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|3: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|4: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|5: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|6: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|7: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|8: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|9: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|10: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|11: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|12: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|13: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|14: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|15: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|16: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|17: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|18: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|19: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|20: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|21: 0-1 d,#383c54, 2-42 #969696,#2c2a3e, 43-59 d,#2c2a3e, 60-61 d,#525252, 62-119 d,d,
+|22: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 #d8c8a8,#4a3a1e, 60-61 d,#525252, 62-119 d,d,
+|23: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|24: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|25: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|26: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|27: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|28: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|29: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|30: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|31: 0-1 d,#383c54, 2-59 #969696,#2c2a3e, 60-61 d,#525252, 62-119 d,d,
+|32: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|33: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|34: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|35: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|36: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|37: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|38: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+|39: 0-1 d,#525252, 2-6 #5a5a5a,d, 7-59 d,d, 60-61 d,#525252, 62-119 d,d,
+== snap second grid=120x40 cursor=7,2
+|Kill Newcol Tutor Debug Colors NextColor Crt Dump
+| NOR /tmp/pardes-snap/find/cwd/here.txt Save Del NOR /tmp/pardes-snap/find/cwd Del
+| 1 Find
+| here.txt other.txt sub zqmark-alpha.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/+Search Del
+| 1 /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt
+| 2 /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt
+| 3 /tmp/pardes-snap/find/cwd/zqmark-alpha.txt
+| 4
+| NOR /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Sa
+| 1 gamma body
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save Del
+| 1 beta body
+|
+|
+|
+|
+|
+|
+|
+== snap third grid=120x40 cursor=7,2
+|Kill Newcol Tutor Debug Colors NextColor Crt Dump
+| NOR /tmp/pardes-snap/find/cwd/here.txt Save Del NOR /tmp/pardes-snap/find/cwd Del
+| 1 Find
+| here.txt other.txt sub zqmark-alpha.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/+Search Del
+| 1 /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt
+| NOR /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save Del
+| 1 alpha body
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Sa
+| 1 gamma body
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save Del
+| 1 beta body
+|
+|
+|
+|
+|
+|
+|
+== snap back grid=120x40 cursor=7,2
+|Kill Newcol Tutor Debug Colors NextColor Crt Dump
+| NOR /tmp/pardes-snap/find/cwd/here.txt Save Del NOR /tmp/pardes-snap/find/cwd Del
+| 1 Find
+| here.txt other.txt sub zqmark-alpha.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/+Search Del
+| 2 /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt
+| NOR /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save Del
+| 1 alpha body
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Sa
+| 1 gamma body
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save Del
+| 1 beta body
+|
+|
+|
+|
+|
+|
+|
+== snap word grid=120x40 cursor=56,1
+|Kill Newcol Tutor Debug Colors NextColor Crt Dump
+| INS /tmp/pardes-snap/find/cwd/here.txt Save Del Find / NOR /tmp/pardes-snap/find/cwd Del
+| 1 Find
+| here.txt other.txt sub zqmark-alpha.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/+Search Del
+| 2 /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt
+| NOR /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save Del
+| 1 alpha body
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Sa
+| 1 gamma body
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save Del
+| 1 beta body
+|
+|
+|
+|
+|
+|
+|
+== snap cancel grid=120x40 cursor=7,2
+|Kill Newcol Tutor Debug Colors NextColor Crt Dump
+| NOR /tmp/pardes-snap/find/cwd/here.txt Save Del NOR /tmp/pardes-snap/find/cwd Del
+| 1 Find
+| here.txt other.txt sub zqmark-alpha.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/+Search Del
+| 2 /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt
+| NOR /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save Del
+| 1 alpha body
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Sa
+| 1 gamma body
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save Del
+| 1 beta body
+|
+|
+|
+|
+|
+|
+|
+== snap nomatch grid=120x40 cursor=7,2
+|Kill Newcol Tutor Debug Colors NextColor Crt Dump
+| NOR /tmp/pardes-snap/find/cwd/here.txt Save Del NOR /tmp/pardes-snap/find/cwd Del
+| 1 Find
+| here.txt other.txt sub zqmark-alpha.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/+Search Del
+| 1
+| NOR /tmp/pardes-snap/find/cwd/zqmark-alpha.txt Save Del
+| 1 alpha body
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/nest/zqmark-gamma.txt Sa
+| 1 gamma body
+|
+|
+|
+| NOR /tmp/pardes-snap/find/cwd/sub/ZQMARK-beta.txt Save Del
+| 1 beta body
+|
+|
+|
+|
+|
+|
+|
diff --git a/test/snapshots/find.snap b/test/snapshots/find.snap
new file mode 100644
index 00000000..28d5ebb2
--- /dev/null
+++ b/test/snapshots/find.snap
@@ -0,0 +1,75 @@
+# The Find builtin (SPC f f) = `fd`, in-core: it arms the SAME tag input `/`
+# does, but Enter walks the pane's DIRECTORY instead of its text and writes one
+# matching path per row into a "+Search" OUTPUT BUFFER. Every row is therefore
+# an ordinary look target, which is the whole point: n/N step the rows and look
+# them with no code of their own, opening each found file, and focus returns to
+# the pane that owns the search so the next n keeps stepping. The walk skips
+# .git, matches the NAME case-insensitively, and sorts (readdir order is not
+# stable). `SPC f s` is Save, which moved out of `w` to make this group.
+dirmk sub
+dirmk sub/nest
+dirmk .git
+file here.txt Find
+file zqmark-alpha.txt alpha body
+file sub/ZQMARK-beta.txt beta body
+file sub/nest/zqmark-gamma.txt gamma body
+file other.txt nothing to match here
+file .git/zqmark-hidden.txt hidden body
+start 40 120 here.txt
+wait 8000 here.txt
+stable 700 20000
+# SPC f is a GROUP now (Find + Save): the indicator stays on the tag
+key space
+key f
+stable 400 5000
+snap group
+# ... and the second f arms the input, marker visible in the tag
+key f
+stable 400 5000
+snap armed
+text zqm
+stable 400 5000
+snap typing
+# Enter walks: three hits, sorted, .git's copy skipped, other.txt not matched
+key enter
+wait 10000 zqmark-alpha.txt
+stable 700 15000
+snap results
+# n looks row 1 — a path, so the file OPENS — and focus comes back here
+key n
+wait 10000 beta body
+stable 700 15000
+snap first
+snapstyle first
+key n
+wait 10000 gamma body
+stable 700 15000
+snap second
+key n
+wait 10000 alpha body
+stable 700 15000
+snap third
+# N walks back up: the file is already open, so the look just focuses it
+key N
+stable 700 15000
+snap back
+# executing the WORD Find (middle-click in a body) arms the same input — the
+# enum IS the dispatch — and Esc abandons it, restoring the tag tail
+press middle 8 3
+release middle 8 3
+stable 700 10000
+snap word
+key esc
+settle 700
+stable 400 5000
+snap cancel
+# a no-match walk empties the buffer; n then has nowhere to go
+key space
+key f
+key f
+text zzqq
+key enter
+stable 700 10000
+key n
+stable 400 5000
+snap nomatch
diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden
index d89997f1..201888ec 100644
--- a/test/snapshots/leader.golden
+++ b/test/snapshots/leader.golden
@@ -192,17 +192,17 @@
| 5 SPC c d Delcol
| 6 SPC c n Newcol
| 7 SPC d Del
-| 8 SPC h t Tutor
-| 9 SPC k Kill
-| 10 SPC s d Dump
-| 11 SPC s r Restore
-| 12 SPC t c Colors
-| 13 SPC t d Debug
-| 14 SPC t n NextColor
-| 15 SPC t r Crt
-| 16 SPC w Save
-| 17
-|
+| 8 SPC f f Find
+| 9 SPC f s Save
+| 10 SPC h t Tutor
+| 11 SPC k Kill
+| 12 SPC s d Dump
+| 13 SPC s r Restore
+| 14 SPC t c Colors
+| 15 SPC t d Debug
+| 16 SPC t n NextColor
+| 17 SPC t r Crt
+| 18
== snap help-group grid=100x40 cursor=7,22
|Kill Newcol Tutor Debug Colors NextColor Crt Dump
| NOR /tmp/pardes-snap/leader/cwd/cmds.txt Save De NOR /tmp/pardes-snap/leader/cwd Del
@@ -356,17 +356,17 @@
| 5 SPC c d Delcol
| 6 SPC c n Newcol
| 7 SPC d Del
-| 8 SPC h t Tutor
-| 9 SPC k Kill
-| 10 SPC s d Dump
-| 11 SPC s r Restore
-| 12 SPC t c Colors
-| 13 SPC t d Debug
-| 14 SPC t n NextColor
-| 15 SPC t r Crt
-| 16 SPC w Save
-| 17
-|
+| 8 SPC f f Find
+| 9 SPC f s Save
+| 10 SPC h t Tutor
+| 11 SPC k Kill
+| 12 SPC s d Dump
+| 13 SPC s r Restore
+| 14 SPC t c Colors
+| 15 SPC t d Debug
+| 16 SPC t n NextColor
+| 17 SPC t r Crt
+| 18
== snap esc-del grid=100x40 cursor=7,2
|Kill Newcol Tutor Debug Colors NextColor Crt Dump
| NOR /tmp/pardes-snap/leader/cwd/cmds.txt Save De NOR /tmp/pardes-snap/leader/cwd Del