summaryrefslogtreecommitdiff
path: root/test/snapshots/tagpath.snap
blob: 841d4fed4a60476e11999b1b6b96cdaa76b3a09e (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
# The path is part of the tag's text for the keyboard as for the mouse: `0`
# goes to its start, `E` selects it and `y` yanks it. It is read-only, but
# typing into it drafts a new name there, as a click on it does. Escape
# cancels; Enter changes buffer identity, never renames a disk file.
lines c.txt 4
start 31 100 c.txt
wait 8000 Newcol Joincol
wait 8000 c.txt
stable 700 20000
snap start
key :
stable 400 5000
snap colon
key 0
stable 400 5000
snap col0
key E
stable 400 5000
snap sel-path
snapstyle sel-path
key y
# `:` gives the keyboard back to the body, and `p` puts the path there
key :
key p
stable 400 5000
snap yanked-path
# Sweep across the path / command boundary without injected padding.
press left 12 3
drag left 30 3
drag left 42 3
release left 42 3
stable 400 5000
snap drag-cross
snapstyle drag-cross
# Esc is the tag's normal mode; typed at the path's start, `/renamed` drafts
# a name
key esc
settle 100
key 0
key i
text /renamed
stable 400 5000
snap name-draft
# Esc keeps the draft pending; a second drops it
key esc
settle 100
key esc
stable 400 5000
snap name-cancelled
key :
key 0
key i
text /renamed
key enter
stable 400 5000
snap name-committed