summaryrefslogtreecommitdiff
path: root/test/snapshots/ttylook.snap
blob: 91401a64c76a5300a2654a02472e94fe1d6525f8 (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
62
63
64
65
# tty n/N token motion (normal mode only): n/N SELECT the next/prev
# whitespace-separated token that look resolves — several per line, so the
# greet ls row hops big.txt -> plain.txt -> sub — moving the cursor to the
# token start and opening NOTHING. Return looks the selection (dir -> shell
# +ls there, file -> pane) and focus follows what opened. The first n wraps
# from the prompt row to the first token; insert-mode n still types; and a
# pane with nothing look-able in it never traps the walk, because the walk is
# a RING ACROSS PANES rather than a scan of the one you are in.
lines big.txt 40
file plain.txt just text
dirmk sub
# a directory looked at opens a terminal there (DirLook terminal), as this
# script was written for; DirLook pane, the default, is dirpane.snap's
config DirLook terminal
start 31 120 -n 3
wait 8000 big.txt
stable 700 20000
# first n: cursor sits at the shell prompt below the output — wrap lands on
# the ls row's first token, big.txt; nothing opens
key n
stable 400 5000
snap tok1
snapstyle tok1
# same row, next token: plain.txt
key n
stable 400 5000
snap tok2
# N steps back to big.txt
key N
stable 400 5000
snap tokback
# insert-mode n still types (a run splice), no stepping; undo it
key i
text nn
key esc
settle 100
stable 400 5000
snap insert
key u
stable 400 5000
# resume the walk from big.txt's start: plain.txt, then sub
key n
stable 400 5000
key n
stable 400 5000
snap tok3
# Return looks the selected dir: a shell opens below in sub and ls's it
key enter
stable 700 15000
snap diropen
# the fresh pane's dir is empty, and that is not where n stops: the ring is
# spined on the panes that have LOOKED, so the step leaves this shell for the
# one it was looked out of. That pane's cursor is on its last token (`sub`),
# so the walk runs off the end and comes round to its first — big.txt.
key n
stable 400 5000
snap noop
# back in the first pane, Enter with the cursor ON a token looks it (no
# selection: the cursor word expands) — big.txt opens as a file pane
press left 4 5
release left 4 5
stable 400 5000
key enter
stable 700 15000
snap fileopen