summaryrefslogtreecommitdiff
path: root/test/snapshots/fsearch.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-24 12:43:02 -0300
committerGabriel Schneider <[email protected]>2026-10-24 13:11:11 -0300
commit1af098381515fbe3a4fe678cd023c7fd74418ae1 (patch)
tree34f8f1495ddbea9542d23af68db53f244a1ec4c5 /test/snapshots/fsearch.snap
parent8ac6db5662dd2db0f082e1651835f1db36e235f8 (diff)
downloadpardes-1af098381515fbe3a4fe678cd023c7fd74418ae1.tar.gz
pardes-1af098381515fbe3a4fe678cd023c7fd74418ae1.zip
Search converge 5/6: the old search pipeline phased out, the notice-band / for texts, Find/Grep prompts and walks on the loop, +Recent, n/N as Look-the-next-row; docs, tutor, Help and goldens to the query pane
Diffstat (limited to 'test/snapshots/fsearch.snap')
-rw-r--r--test/snapshots/fsearch.snap63
1 files changed, 22 insertions, 41 deletions
diff --git a/test/snapshots/fsearch.snap b/test/snapshots/fsearch.snap
index 431e7126..fbb9baeb 100644
--- a/test/snapshots/fsearch.snap
+++ b/test/snapshots/fsearch.snap
@@ -1,13 +1,13 @@
-# `/` file search: the pattern types into the tag (persistent, no popup);
-# Enter searches the buffer in-core and writes `path:LINE:COL-ENDCOL text` into
-# a +Search OUTPUT BUFFER (a file pane with no file behind it — no Save in its
-# tag) — AND GOES TO THE FIRST HIT, which is the step `n` is and the look Enter
-# is, run for you in that buffer. From there n/N SELECT the next/prev row and
-# open nothing, and Enter — the look chord — is what scrolls the file pane to
-# the hit AND SELECTS IT: the row names the match's whole span, not just where
-# it starts. Esc abandons the input; a no-match search opens an EMPTY buffer
-# (every search gets its own, stacked under the pane) with nothing in it for n
-# to stop on, and goes nowhere.
+# `/` in a file: its query pane under it (Query.zig), line 1 `/` and the
+# pattern, typed into; nothing on the notice band. Each key searches the
+# file again (a regex, any case unless it has a capital): every match is
+# tinted and ticked on the scroll rail, the first at or after the cursor
+# selected and in view, and the rows under line 1 are the lines holding a
+# match, a line number in the gutter. Ctrl-n steps while typing; Enter puts
+# the keyboard on the match, the pattern in `/`, and keeps the rows as text;
+# n / N then step the matches in the file, round the end without a word. A
+# later `/` reuses the pane; Esc while typing brings the kept rows back. A
+# pattern that matches nothing is a count of 0, not an exit.
file g.txt l1\nMARK a\nl3\nl4\nl5\nMARK b\nl7\nl8\nl9\nMARK c\nl11\nl12
# 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
@@ -30,51 +30,32 @@ release right 6 9
wait 10000 MARK a
stable 700 15000
snap opened
-# / starts the search input in the tag; the pattern is visible while typing
key /
stable 400 5000
+snap slash
text MARK
stable 400 5000
snap typing
+snapstyle typing
+key c-n
+stable 400 5000
+snap ctrln
key enter
-# Locations stack the target under its line now, so the two halves are
-# two rows: wait for both rather than for one joined line.
-wait 10000 g.txt:2:1-4
-wait 10000 MARK a
stable 700 10000
-# ...and the submit already looked result 1: the file scrolled to line 2 and
-# the four cells the pattern matched there came up selected — the styles below
-# are what prove the second half of that. No `n` was pressed to get here.
-snap results
-snapstyle results
-# n/N walk on from there, one row of the list per press, Enter looking what
-# the step selected
-key space j n
-key enter
-stable 700 15000
-snap second
-key space j n
-key enter
-stable 700 15000
-snap third
-# N walks back up to result 2 (line 6), Enter looks it
-key space j p
-key enter
-stable 700 15000
-snap back
-# Esc abandons the input: the tag tail is restored
+snap landed
+text n
+stable 400 5000
+snap n
+text N
+stable 400 5000
+snap N
key /
text zz
key esc
settle 100
stable 400 5000
snap cancel
-# a no-match search: nothing in the empty list for n to stop on, so the ring
-# carries it back into the list that has rows and it resumes there
key /
text zzqq
-key enter
stable 700 10000
-key space j n
-stable 400 5000
snap nomatch