diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 10:56:51 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 10:59:26 -0300 |
| commit | 5752e5c94f27eced137f4ca061c68715d8b7131a (patch) | |
| tree | ffc1785740fb008e2ebb10053a2aaaaa25b82fd6 /test/snapshots | |
| parent | 54f3ce0443f46f0bfe7565d6a31fb906beadf3b9 (diff) | |
| download | pardes-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')
| -rw-r--r-- | test/snapshots/headersweep-restored.snap | 2 | ||||
| -rw-r--r-- | test/snapshots/headersweep.golden | 2 | ||||
| -rw-r--r-- | test/snapshots/headersweep.snap | 3 | ||||
| -rw-r--r-- | test/snapshots/images.snap | 1 | ||||
| -rw-r--r-- | test/snapshots/layout-close.golden | 17 | ||||
| -rw-r--r-- | test/snapshots/tag.snap | 12 | ||||
| -rw-r--r-- | test/snapshots/tagbottom.snap | 1 | ||||
| -rw-r--r-- | test/snapshots/tagnav.snap | 2 | ||||
| -rw-r--r-- | test/snapshots/theme.snap | 1 | ||||
| -rw-r--r-- | test/snapshots/ttyclick.snap | 4 |
10 files changed, 26 insertions, 19 deletions
diff --git a/test/snapshots/headersweep-restored.snap b/test/snapshots/headersweep-restored.snap index c2918e1a..b0d51f6e 100644 --- a/test/snapshots/headersweep-restored.snap +++ b/test/snapshots/headersweep-restored.snap @@ -12,6 +12,7 @@ release middle @Restore 1 stable 900 15000 press left 50 2 release left 50 2 +key i key space text echo RE''STORED-COL key esc @@ -27,6 +28,7 @@ stable 700 15000 snap col-swept press left 118 1 release left 118 1 +key i key space text echo RE''STORED-WS key esc diff --git a/test/snapshots/headersweep.golden b/test/snapshots/headersweep.golden index a178306f..11ffa165 100644 --- a/test/snapshots/headersweep.golden +++ b/test/snapshots/headersweep.golden @@ -52,7 +52,7 @@ |9: 1 ZQNEEDLE == snap cancelled grid=120x21 cursor=7,9 == style selected grid=120x21 -|1: 0-1 d,#887455, 2-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#887455, 62-69 #becfc4,#314738, 70-78 #f5f7ee,#3c614a, 79-79 #f5f7ee,#314738, 80-119 #becfc4,#314738, +|1: 0-1 d,#887455, 2-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#887455, 62-69 #becfc4,#314738, 70-79 #f5f7ee,#3c614a, 80-119 #becfc4,#314738, |2: 0-1 d,#496656, 2-34 #b2c3b8,#1d2824, 35-43 #d3b0d9,#1d2824, 44-59 #b2c3b8,#1d2824, 60-61 #b2c3b8,#add38a, 62-94 #becfc4,#314738, 95-103 #dfbce5,#314738, 104-119 #becfc4,#314738, |3: 0-2 d,#1d2824, 3-59 #b2c3b8,#1d2824, 60-62 #b2c3b8,#314738, 63-119 #becfc4,#314738, |7: 0-1 d,#496656, 2-34 #b2c3b8,#1d2824, 35-42 #d3b0d9,#1d2824, 43-59 #b2c3b8,#1d2824, 60-60 #b2c3b8,#608269, 61-119 #b2c3b8,#0d1410, diff --git a/test/snapshots/headersweep.snap b/test/snapshots/headersweep.snap index be070357..68ee16b0 100644 --- a/test/snapshots/headersweep.snap +++ b/test/snapshots/headersweep.snap @@ -10,6 +10,7 @@ stable 700 20000 # the column tag: type a command onto it, then sweep the whole command press left 50 2 release left 50 2 +key i key space text echo SW''EPT-COL key esc @@ -26,6 +27,7 @@ snap col-swept # the workspace tag, the same press left 110 1 release left 110 1 +key i key space text echo SW''EPT-WS key esc @@ -40,6 +42,7 @@ snap ws-swept # where a click would look for all of `xxhay.txtxx` press left 118 1 release left 118 1 +key i key space text xxhay.txtxx key esc diff --git a/test/snapshots/images.snap b/test/snapshots/images.snap index 6288a3ba..caed1fa1 100644 --- a/test/snapshots/images.snap +++ b/test/snapshots/images.snap @@ -48,6 +48,7 @@ stable 400 5000 press left @Tty 7 release left @Tty 7 stable 400 5000 +key i send Zork\x20 stable 400 5000 snap tag-edit diff --git a/test/snapshots/layout-close.golden b/test/snapshots/layout-close.golden index a37366e0..fc7870cd 100644 --- a/test/snapshots/layout-close.golden +++ b/test/snapshots/layout-close.golden @@ -54,10 +54,15 @@ |29: se Del |30: ls |31: marker.txt -== snap del grid=140x41 cursor=7,8 -|8: T dkty+bash Save Mode Filter Col -|9: lapse Del -== snap exit grid=140x41 cursor=4,12 +== snap del grid=140x41 cursor=4,9 +|5: ls ls marker.txt +|6: marker.txt marker.txt +|7: +|8: +|9: +|10: +|11: +== snap exit grid=140x41 cursor=4,9 |22: |23: |24: @@ -66,5 +71,5 @@ |2: /tmp/pardes-snap/layout-close/cwd /tmp/pardes-snap/layout-close/cwd Tty+bash Save Mode Filter Collapse |3: Tty+bash Save Mode Filter Collap Del |4: se Del ls -|5: marker.txt marker.txt -|6: +|5: ls marker.txt +|6: marker.txt 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 diff --git a/test/snapshots/tagbottom.snap b/test/snapshots/tagbottom.snap index 68b79fc7..7ce0ae5a 100644 --- a/test/snapshots/tagbottom.snap +++ b/test/snapshots/tagbottom.snap @@ -48,6 +48,7 @@ stable 700 15000 press left 90 31 release left 90 31 stable 400 5000 +key i send \x20bottom.txt stable 600 8000 stable 400 5000 diff --git a/test/snapshots/tagnav.snap b/test/snapshots/tagnav.snap index cd83dbd9..ef202a08 100644 --- a/test/snapshots/tagnav.snap +++ b/test/snapshots/tagnav.snap @@ -72,8 +72,6 @@ press left @Mode 3 release left @Mode 3 stable 400 5000 snap tty-tag -key esc -settle 100 key : stable 400 5000 snap tty-restored diff --git a/test/snapshots/theme.snap b/test/snapshots/theme.snap index 2a046ef3..780744d8 100644 --- a/test/snapshots/theme.snap +++ b/test/snapshots/theme.snap @@ -8,6 +8,7 @@ stable 700 20000 # NextColor is no default word of the workspace tag: typed onto its end press left 99 1 release left 99 1 +key i key space text NextColor key esc diff --git a/test/snapshots/ttyclick.snap b/test/snapshots/ttyclick.snap index c125a231..65b6f9fc 100644 --- a/test/snapshots/ttyclick.snap +++ b/test/snapshots/ttyclick.snap @@ -16,14 +16,12 @@ release left 10 5 stable 400 5000 snap tty-bodyclick # tag edit from tty: the box still reads `$` while the tag is typed into (the -# tag's mode is its own), and Esc then `:` hands the keyboard back — a bug +# tag's mode is its own: a clicked tag is in normal mode), and `:` hands the keyboard back — a bug # that lost the body's mode would show `•` in one snap or the other press left @Tty 3 release left @Tty 3 stable 400 5000 snap tty-tagedit -key esc -settle 100 key : stable 400 5000 snap tty-tagexit |
