blob: f37b2ac769cf75331255a02c572682892cfdedbe (
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
|
# a CLICKED tag is insert mode: type straight in (no 'i'; `:` is the normal-
# mode door, see tagcmd); backspace edits; Esc leaves back to the body; 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 ZZLOOKED
start 30 150 -n 3
wait 8000 t.txt
stable 700 20000
# click into the tag tail of pane 0: straight into insert. `@Save-2` is two
# columns left of the first builtin - inside the gap that right-aligns them,
# ordinary spaces in the tag, so this is the tail like any other part of it.
# Anchored on the builtins rather than on a column or on the path, because the
# builtins are the side that MOVES: one more builtin word slides them left and
# a frozen column 28 (or a `@cwd+4`, which is the same fixed column, since the
# path is left-anchored) would land on `Save` instead of in the gap.
# The layout box shows
# the pane's BODY mode, not the tag's, so the evidence for "this click went to
# insert" is the next step — the typed text lands as text instead of running as
# normal-mode commands.
press left @Save-2 2
release left @Save-2 2
stable 400 5000
snap tag-focus
send \x20t.txt
stable 600 8000
stable 400 5000
snap tag-typed
key bs
key bs
key bs
key bs
stable 400 5000
snap tag-del
send .txt
stable 600 8000
stable 400 5000
# Esc: out of the tag, body back in normal mode, typed tail stays as text
key esc
settle 100
stable 400 5000
snap tag-exit
# re-enter the tag and look the typed word: Enter opens t.txt as a file pane.
# Clicked ON the word itself rather than past the end of the tag and walked
# back into it — the builtins are right-aligned (config.tag_right_pad), so the
# tag no longer ends where the typing does and a click past it lands in the gap.
press left @t.txt 2
release left @t.txt 2
stable 400 5000
key enter
wait 10000 ZZLOOKED
stable 700 15000
snap tag-look
|