summaryrefslogtreecommitdiff
path: root/test/snapshots/ttylook.snap
blob: 0a125d2c842427c456942352fa96cb9afd92d129 (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
66
67
68
69
# 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 -> the
# pane listing it, 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
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 space j n
stable 400 5000
snap tok1
snapstyle tok1
# same row, next token: plain.txt
key space j n
stable 400 5000
snap tok2
# N steps back to big.txt
key space j p
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 space j n
stable 400 5000
key space j n
stable 400 5000
snap tok3
# Return looks the selected dir: sub's directory pane opens, empty as sub
# is, and takes the keyboard
key enter
wait 10000 sub/
stable 700 15000
snap diropen
# the fresh pane lists nothing, sub being empty, and that is not where n
# stops: the ring is spun on the panes that have LOOKED, so the step leaves
# this pane 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 space j 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): the click puts it on the ls command
# line's `ls`, a word no file names, which a terminal lists in a +Search,
# its row the place in that terminal (@p1:1:1-2)
press left 4 5
release left 4 5
stable 400 5000
key enter
wait 10000 @p1:1:1-2
stable 700 15000
snap cursorword