summaryrefslogtreecommitdiff
path: root/test/snapshots/find.snap
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/find.snap
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/find.snap')
-rw-r--r--test/snapshots/find.snap75
1 files changed, 75 insertions, 0 deletions
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