summaryrefslogtreecommitdiff
path: root/test/snapshots/tag.snap
blob: 449ed2cedf0ce1a362071fdedf4658d1ce92b3ee (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
# the tag is ALWAYS insert mode: click it and type straight in (no 'i');
# backspace edits; Esc leaves the tag back to the body's normal mode; Enter
# looks the word at the cursor (Tab executes it). Multi-word execution from
# the tag stays the mouse's job (middle-drag), like anywhere else.
file t.txt x
start 30 100 -n 3
wait 8000 t.txt
stable 700 20000
# click into the tag tail of pane 0: straight into insert (INS in the prefix)
press left 40 2
release left 40 2
stable 400 5000
snap tag-focus
send \x20t.txt
settle 700
stable 400 5000
snap tag-typed
key bs
key bs
key bs
key bs
stable 400 5000
snap tag-del
send .txt
settle 700
stable 400 5000
# Esc: out of the tag, body back in normal mode, typed tail stays as text
key esc
settle 700
stable 400 5000
snap tag-exit
# re-enter the tag and look the typed word: Enter opens t.txt as a file pane
press left 40 2
release left 40 2
stable 400 5000
key left
key left
stable 400 5000
key enter
wait 10000 Save
stable 700 15000
snap tag-look