diff options
Diffstat (limited to 'test/snapshots/rsearch.snap')
| -rw-r--r-- | test/snapshots/rsearch.snap | 37 |
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 |
