diff options
Diffstat (limited to 'test/snapshots/fsearch.snap')
| -rw-r--r-- | test/snapshots/fsearch.snap | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/snapshots/fsearch.snap b/test/snapshots/fsearch.snap index d27d6f08..af1363dd 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 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 opens an EMPTY buffer +# 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); n/N select the next/prev row there and look it, so the file pane +# scrolls 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) 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 @@ -30,10 +31,12 @@ text MARK stable 400 5000 snap typing key enter -wait 10000 g.txt:2:1 MARK +wait 10000 g.txt:2:1-4 MARK stable 700 10000 snap results -# n selects result 1 in the results buffer + scrolls the file to line 2 +# n selects result 1 in the results buffer, scrolls the file to line 2 and +# selects the four cells the pattern matched there — the styles below are what +# prove the second half of that key n stable 700 15000 snap first |
