summaryrefslogtreecommitdiff
path: root/test/snapshots/rsearch.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-09 09:47:04 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commita99f039bc2ce01302d6f6c5fe42e260950870008 (patch)
tree91a24c5b66c983619141fcce23393a73cabf833b /test/snapshots/rsearch.snap
parent172eb56fee0b6bde698e72be2bca55a90fe81ce9 (diff)
downloadpardes-a99f039bc2ce01302d6f6c5fe42e260950870008.tar.gz
pardes-a99f039bc2ce01302d6f6c5fe42e260950870008.zip
right click search
Diffstat (limited to 'test/snapshots/rsearch.snap')
-rw-r--r--test/snapshots/rsearch.snap49
1 files changed, 49 insertions, 0 deletions
diff --git a/test/snapshots/rsearch.snap b/test/snapshots/rsearch.snap
new file mode 100644
index 00000000..1b5671c1
--- /dev/null
+++ b/test/snapshots/rsearch.snap
@@ -0,0 +1,49 @@
+# acme button-3 in a text file = search: right-click / right-select reuse the
+# `/` grep machinery. A click expands the file-ish word (look.isFileChar) and,
+# when it names no file, greps it into a shell (results are ordinary terminal
+# text; n/N walk them like `/`). A right-select greps the swept span verbatim.
+# A real path (sub/dep.txt:3) still resolves and OPENS — expansion keeps / . :
+# so paths are not broken; only the non-file case falls through to search.
+dirmk sub
+file sub/dep.txt d1\nd2\nDEPTARGET\nd4\nd5\nd6
+file code.txt run count_x now\nopen sub/dep.txt:3 here\ncount_x again\npick two words
+start 30 120 -n 3
+wait 8000 code.txt
+stable 700 20000
+# open code.txt: type the name in a shell, right-click it (ordinary look)
+press left 5 8
+release left 5 8
+stable 400 5000
+key i
+text code.txt
+key esc
+settle 700
+stable 400 5000
+press right 6 8
+release right 6 8
+wait 10000 count_x
+stable 700 15000
+snap opened
+# right-CLICK the identifier `count_x` (line 1, the 'n' at col 15). It names no
+# file, so the click greps it: the results list both lines that contain it.
+press right 15 3
+release right 15 3
+wait 10000 code.txt:1:run count_x
+stable 700 15000
+snap search
+# right-SELECT `pick two` (line 4, sweep cols 8..15): a multi-word span passes
+# through verbatim (the space is kept), unlike a click's single-word expansion.
+press right 8 6
+drag right 15 6
+release right 15 6
+wait 10000 code.txt:4:pick two
+stable 700 15000
+snap select
+# right-CLICK the path `sub/dep.txt:3` (line 2, col 18): isFileChar keeps / . :
+# so the click expands the whole token and it RESOLVES — a look, not a search —
+# opening dep.txt scrolled to line 3 (DEPTARGET). The "don't break paths" case.
+press right 18 4
+release right 18 4
+wait 10000 DEPTARGET
+stable 700 15000
+snap path-open