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
62
63
64
65
66
67
68
69
70
71
|
# SPC f f: a query pane under the pane (Query.zig), line 1 `Find `, typed
# into. The files below the pane's directory are listed once, on the disk
# engine's worker (rg --files when it is on PATH, else the sorted walk: both
# pass over .git), and each key scores them fuzzily (pick's scorer), the best
# first, the matched letters tinted. The current one is shown in the
# +Preview under the query pane, born with it so nothing moves later;
# Ctrl-n / Ctrl-p step it, never the pointer. Enter makes the preview the
# file's pane where it stands. Esc while typing closes the query pane and
# gives its rows back. A query that matches nothing is a count of 0, not an
# exit. B2 on `Find` with a selection asks with that word, the keyboard
# staying in the text.
dirmk sub
dirmk sub/nest
dirmk .git
file here.txt Find zqm
file zqmark-alpha.txt alpha body
file sub/ZQMARK-beta.txt beta body
file sub/nest/zqmark-gamma.txt gamma body
file other.txt nothing to match here
file .git/zqmark-hidden.txt hidden body
start 41 120 here.txt
wait 8000 here.txt
stable 700 20000
# SPC f is a group (Find, New, Save, Recent, Grep): the indicator waits
key space
key f
stable 400 5000
snap group
# the second f opens the query pane: every file listed, line 1 `Find `
key f
wait 10000 zqmark-alpha.txt
stable 700 15000
snap armed
text zqm
stable 700 15000
snap typing
# the next one current, its text in the preview
key c-n
wait 10000 beta body
stable 700 15000
snap next
# Enter: the preview is that file's pane now, where it stood
key enter
stable 700 15000
snap promoted
# a second Find from here.txt reuses its query pane; nothing found is 0
press left 8 4
release left 8 4
stable 400 5000
key space
key f
key f
text zzqq
stable 700 15000
snap nomatch
# Esc: the kept rows of the last query are back
key esc
settle 100
stable 700 15000
snap cancel
# B2 on Find with `zqm` selected in here.txt: the query pane under it, the
# keyboard still in here.txt
press left 13 4
drag left 15 4
release left 15 4
stable 400 5000
press middle @Find 1
release middle @Find 1
wait 10000 Find zqm
stable 700 15000
snap topbar
|