summaryrefslogtreecommitdiff
path: root/test/snapshots/fsearch.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-26 18:36:08 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commite381c96a08f08e03a340a24acb3fe5fe1fca51be (patch)
treedb0ef0cc2652d2797b9e2f73709db601816436d1 /test/snapshots/fsearch.snap
parenta4a2a96d023a5977ae7a7d07c7ee9e4fe38e9c60 (diff)
downloadpardes-e381c96a08f08e03a340a24acb3fe5fe1fca51be.tar.gz
pardes-e381c96a08f08e03a340a24acb3fe5fe1fca51be.zip
adding better search to tty mode
Diffstat (limited to 'test/snapshots/fsearch.snap')
-rw-r--r--test/snapshots/fsearch.snap13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/snapshots/fsearch.snap b/test/snapshots/fsearch.snap
index 38c39c02..7953b408 100644
--- a/test/snapshots/fsearch.snap
+++ b/test/snapshots/fsearch.snap
@@ -1,8 +1,9 @@
# `/` file search: the pattern types into the tag (persistent, no popup);
-# Enter runs grep -nH into a shell pane so the results are ordinary terminal
-# text; n/N select the next/prev result row there (prompt rows skipped via the
-# OSC 133 semantic marks) and look it — the file pane scrolls to path:NNN.
-# Esc abandons the input; a no-match search leaves n with nowhere to go.
+# Enter searches the buffer in-core and writes `path:NNN: text` into a +Search
+# OUTPUT BUFFER (a file pane with no file behind it — no Save in its tag);
+# n/N select the next/prev row there and look it, so the file pane scrolls to
+# path:NNN. Esc abandons the input; a no-match search empties the buffer and
+# leaves n with nowhere to go.
file g.txt l1\nMARK a\nl3\nl4\nl5\nMARK b\nl7\nl8\nl9\nMARK c\nl11\nl12
start 30 180 -n 3
wait 8000 g.txt
@@ -28,10 +29,10 @@ text MARK
stable 400 5000
snap typing
key enter
-wait 10000 g.txt:2:MARK
+wait 10000 g.txt:2:1 MARK
stable 700 10000
snap results
-# n selects result 1 in the results pane + scrolls the file to line 2
+# n selects result 1 in the results buffer + scrolls the file to line 2
key n
stable 700 15000
snap first