summaryrefslogtreecommitdiff
path: root/test/snapshots/fsearch.snap
blob: fbb9baeb9105cd85df6e5905552e3a885a9c5be3 (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
51
52
53
54
55
56
57
58
59
60
61
# `/` 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
# verbs do is what is under test, not the announcement.
config Verbose off
start 31 180 -n 3
wait 8000 g.txt
stable 700 20000
# open g.txt: type the name in the shell, look it (as in look-file.snap)
press left 5 9
release left 5 9
stable 400 5000
key i
text g.txt
key esc
settle 100
stable 400 5000
press right 6 9
release right 6 9
wait 10000 MARK a
stable 700 15000
snap opened
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
stable 700 10000
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
key /
text zzqq
stable 700 10000
snap nomatch