summaryrefslogtreecommitdiff
path: root/test/snapshots/stepgrain.snap
blob: e807981caf83a002f07a36eb1d25e3dd1ccc03ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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.
#
# 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
run touch 'two words.txt'
start 31 150 a.txt
wait 8000 hello ZQMARK
stable 700 20000
# 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
wait 10000 ZQMARK inside sub
stable 700 15000
snap results
key c-n
stable 400 5000
snap step-row2
snapstyle step-row2
key c-n
stable 400 5000
snap step-row3
key c-n
stable 400 5000
snap step-wrap
key esc
settle 100
stable 400 5000
# Find `words`: the name with a blank in it, whole
key space
key f
key f
text words
wait 10000 two words.txt
stable 700 15000
snap blank-in-path
snapstyle blank-in-path
key enter
stable 700 15000
snap blank-opened