summaryrefslogtreecommitdiff
path: root/test/snapshots/stepgrain.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/stepgrain.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/stepgrain.snap')
-rw-r--r--test/snapshots/stepgrain.snap59
1 files changed, 16 insertions, 43 deletions
diff --git a/test/snapshots/stepgrain.snap b/test/snapshots/stepgrain.snap
index 3c4d3e4c..e807981c 100644
--- a/test/snapshots/stepgrain.snap
+++ b/test/snapshots/stepgrain.snap
@@ -1,22 +1,11 @@
-# WHAT ONE PRESS OF `n` TAKES, and why that is not one answer. A pane's rows
-# decide it (output_pane.Grain, read in Pardes.lookSpanIn):
+# ONE PRESS, ONE ROW. A query pane's rows are one a line with a hit, the
+# hit's line under a gutter number, and Ctrl-n / Ctrl-p (typing on line 1)
+# step them a row at a time, round the end: row 2 below matched on a line
+# that mentions `sub/b.txt`, and the step does not stop on that word, as the
+# old word-grained walk did; the fourth press wraps back to row 1.
#
-# free text — a terminal, a file, a PDF — is stepped WORD by word, several
-# stops to a line, because a line of it may name several places at once (the
-# `ls` row in ttylook.snap hops big.txt -> plain.txt -> sub);
-#
-# a RESULTS BUFFER is stepped ROW by row, on the location at the head of the
-# row, because a row there IS one location and the words after it are the
-# MATCHED TEXT — the same hit, spelled out. That text is full of look-able
-# words, and stopping on them was stopping on the same result twice.
-#
-# This script is the second rule. Row 2 below matched on a line that mentions
-# `sub/b.txt`, so the old word-grained walk stopped there before it ever
-# reached row 3; now `n` presses and rows correspond one to one, and the fourth
-# press wraps the ring back to row 1.
-#
-# LARGEST from the head, so a path with a BLANK in it is one span rather than
-# the word in front of it: `two words.txt` selects whole and opens.
+# A path with a BLANK in it is one name: `two words.txt` is found whole by
+# Find and Enter opens exactly it.
dirmk sub
file a.txt hello ZQMARK one\nsee also sub/b.txt for ZQMARK two
file sub/b.txt ZQMARK inside sub
@@ -24,52 +13,36 @@ run touch 'two words.txt'
start 31 150 a.txt
wait 8000 hello ZQMARK
stable 700 20000
-# Grep from the leader: three hits, sorted by path, the empty file contributing
-# none. Row 2 is the one whose TEXT holds a path.
+# Grep from the leader: three hits, under their files, the empty file
+# contributing none. Row 2 is the one whose TEXT holds a path.
key space
key f
key g
stable 400 5000
text ZQMARK
-key enter
-wait 10000 sub/b.txt:1:1
+wait 10000 ZQMARK inside sub
stable 700 15000
snap results
-# one press, one row: the head of row 1...
-key n
-stable 400 5000
-snap step-row1
-snapstyle step-row1
-# ...the head of row 2, and NOT the `sub/b.txt` sitting in its matched text —
-# the cursor column is the assertion
-key n
+key c-n
stable 400 5000
snap step-row2
snapstyle step-row2
-# ...row 3, and then the ring comes round to row 1 again
-key n
+key c-n
stable 400 5000
snap step-row3
-key n
+key c-n
stable 400 5000
snap step-wrap
-# Back into the file, so the Find below is asked from a pane that is not a
-# results buffer (fillResults never refills the buffer it was asked from).
-press left 8 4
-release left 8 4
+key esc
+settle 100
stable 400 5000
-# A path with a blank in it: the row is one span from its first cell, because
-# the walk asks about the LONGEST run of the row first and the filesystem is
-# what vouches for it. Enter then opens exactly what is selected.
+# Find `words`: the name with a blank in it, whole
key space
key f
key f
text words
-key enter
wait 10000 two words.txt
stable 700 15000
-key n
-stable 400 5000
snap blank-in-path
snapstyle blank-in-path
key enter