summaryrefslogtreecommitdiff
path: root/test/snapshots/tag.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 10:56:51 -0300
committerGabriel Schneider <[email protected]>2026-11-04 10:59:26 -0300
commit5752e5c94f27eced137f4ca061c68715d8b7131a (patch)
treeffc1785740fb008e2ebb10053a2aaaaa25b82fd6 /test/snapshots/tag.snap
parent54f3ce0443f46f0bfe7565d6a31fb906beadf3b9 (diff)
downloadpardes-5752e5c94f27eced137f4ca061c68715d8b7131a.tar.gz
pardes-5752e5c94f27eced137f4ca061c68715d8b7131a.zip
mouse: a click on a tag, a pane's, a column's or the workspace's, puts its cursor there in normal mode, where it was insert mode (the user's): a letter is a command, `i` types where it was clicked, Enter or Tab runs the word under it; the guide, the cheatsheet and the changelog say so; the tests that clicked a tag and typed now type `i` (or `a` after a sweep) first, and an Esc that left insert mode goes; snap: nine scripts likewise, layout-close's golden now the Del its chord was meant to run (the click had typed ` dk` into the tag); a behavioural test, checked to fail with insert mode back
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/snapshots/tag.snap')
-rw-r--r--test/snapshots/tag.snap12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/snapshots/tag.snap b/test/snapshots/tag.snap
index 4faf6062..133a041d 100644
--- a/test/snapshots/tag.snap
+++ b/test/snapshots/tag.snap
@@ -1,5 +1,5 @@
-# a CLICKED tag is typed straight into (no 'i'; `:` is the normal-mode door,
-# see tagcmd); backspace edits; Esc drops to the tag's normal mode, which is
+# a CLICKED tag is in normal mode, its cursor where it was clicked: `i` types
+# there (`:` is the door back to the body, see tagcmd); backspace edits; Esc drops to the tag's normal mode, which is
# the body's normal mode, and `:` there hands the keyboard 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.
@@ -10,13 +10,13 @@ stable 700 20000
# Click the one editable separator before Save, directly after the cwd.
# The former generated alignment gap no longer exists.
# 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.
+# the pane's BODY mode, not the tag's; `i` then types into the tag where it
+# was clicked.
press left @Save-1 3
release left @Save-1 3
stable 400 5000
snap tag-focus
+key i
send \x20t.txt
stable 600 8000
stable 400 5000
@@ -43,8 +43,6 @@ snap tag-exit
press left @t.txt 3
release left @t.txt 3
stable 400 5000
-key esc
-settle 100
key enter
wait 10000 ZZLOOKED
stable 700 15000