summaryrefslogtreecommitdiff
path: root/test/snapshots/rsearch.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-01 12:08:34 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:08 -0300
commit0ef86a17988cac1e09cea2d0b5d80a21e81d7a2e (patch)
tree1e9c1444257357a70fdf4b9908a753bac0273ec2 /test/snapshots/rsearch.snap
parenta8c8c909a670331b926bcdfe516effc24ef83ad4 (diff)
downloadpardes-0ef86a17988cac1e09cea2d0b5d80a21e81d7a2e.tar.gz
pardes-0ef86a17988cac1e09cea2d0b5d80a21e81d7a2e.zip
a right click walks the hits, and a click inside a selection takes it whole; search/range look steps, goldens updated
Diffstat (limited to 'test/snapshots/rsearch.snap')
-rw-r--r--test/snapshots/rsearch.snap37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/snapshots/rsearch.snap b/test/snapshots/rsearch.snap
index a6dcd167..542680c0 100644
--- a/test/snapshots/rsearch.snap
+++ b/test/snapshots/rsearch.snap
@@ -47,3 +47,40 @@ release right 18 4
wait 10000 DEPTARGET
stable 700 15000
snap path-open
+# A click does not merely LIST the hits, it goes to one: this re-search of
+# `count_x` (line 1, col 15) also STEPS onto hit 1, so the cursor lands in the
+# match — line 1 col 5, not the column that was clicked.
+press right 15 3
+release right 15 3
+stable 700 15000
+snap step1
+# ...and the same word clicked in its OTHER place (line 3, col 10) opens NO
+# second +Search: the list is already armed on this pattern, so the click is
+# `n`. Cursor moves to hit 2, line 3.
+press right 10 5
+release right 10 5
+stable 700 15000
+snap step2
+# past the last hit the ring wraps: back to hit 1, line 1.
+press right 10 5
+release right 10 5
+stable 700 15000
+snap step3
+# A LEFT sweep over `pick two` (line 4, cols 8..15) and then a right CLICK
+# INSIDE it: the click takes the whole selection — the search is for the
+# two-word span (`4:1-8`), which the file-ish word expansion could never
+# produce from the single word under the click.
+press left 8 6
+drag left 15 6
+release left 15 6
+stable 400 5000
+press right 11 6
+release right 11 6
+stable 700 15000
+snap selclick
+# ...and a right click OUTSIDE the selection is the ordinary word click again:
+# `words` (line 4, col 19), not the span left lying in the pane.
+press right 19 6
+release right 19 6
+stable 700 15000
+snap outside