summaryrefslogtreecommitdiff
path: root/test/snapshots/lookrange.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 17:35:06 -0300
committerGabriel Schneider <[email protected]>2026-10-30 17:35:06 -0300
commit6d8da8721141284cf33bb901168b26135893eb86 (patch)
tree791d63401d4e85fbca1d597a8ce0326e70efd545 /test/snapshots/lookrange.snap
parentefd43a3a2cf03bb741366331158b368abf9ac583 (diff)
parentbf6810a8f9d6cc82050e7d9c0cfb06358301b574 (diff)
downloadpardes-6d8da8721141284cf33bb901168b26135893eb86.tar.gz
pardes-6d8da8721141284cf33bb901168b26135893eb86.zip
Merge latest upstream into the macOS branch for Zig 0.17
Retain the macOS branch history and local Acme selection color while adopting upstream's current core and platform changes. Pin Zig and ZLS to 0.17.0, and fetch the existing zstbi compatibility commit through upstream after its original fork was removed.
Diffstat (limited to 'test/snapshots/lookrange.snap')
-rw-r--r--test/snapshots/lookrange.snap24
1 files changed, 13 insertions, 11 deletions
diff --git a/test/snapshots/lookrange.snap b/test/snapshots/lookrange.snap
index c1fde9c6..5133e911 100644
--- a/test/snapshots/lookrange.snap
+++ b/test/snapshots/lookrange.snap
@@ -14,6 +14,10 @@
# in the styles.
file r.txt aaaa\nbbbb\ncccc dccc\ndddd\neeee\nffff\ngg NEEDLE gg\nhhhh NEEDLE\niiii
file look.txt r.txt:3-5\nr.txt:7:4-9\nr.txt:3:2-5:3\nr.txt:8:6-99:9
+# Builtins announce themselves by default, and an announcement is a band at
+# the top of the body -- which moves every row this script clicks. What the
+# verbs do is what is under test, not the announcement.
+config Verbose off
start 31 150 look.txt
wait 8000 r.txt:3-5
stable 700 20000
@@ -47,26 +51,24 @@ release right 12 7
stable 700 15000
snap stale
snapstyle stale
-# --- and now the first consumer. The look above left r.txt focused, so `/`
-# arms on it: the rows it writes carry the match's span, and the submit goes
-# straight to the first of them — with the word itself selected, which is the
-# whole reason the row spells a range and not a position.
+# --- and `/`: its query pane under r.txt, line 1 the pattern, the lines
+# holding it as rows (a line number in the gutter, the match tinted); Enter
+# puts the keyboard on the match after the cursor, the word itself selected.
key /
text NEEDLE
+wait 10000 gg NEEDLE gg
+stable 700 15000
key enter
-wait 10000 r.txt:7:4-9 gg NEEDLE
stable 700 15000
snap hit1
snapstyle hit1
-# n selects the next row, and the Enter after it goes to that hit
-key n
-key enter
+# n: the next match in the text, selected
+text n
stable 700 15000
snap hit2
snapstyle hit2
-# N walks back onto the first hit; Enter looks it, still selected
-key N
-key enter
+# N walks back onto the first, still selected
+text N
stable 700 15000
snap back
snapstyle back