diff options
| author | Gabriel Schneider <[email protected]> | 2026-07-08 09:56:53 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-01 15:02:07 -0300 |
| commit | b91e5ebf8b529d0ced0bf18e83b17df0bd2374ce (patch) | |
| tree | 58122968971bee42ef7144a0d3c1315c5158d636 /test/snapshots/chordcut.snap | |
| parent | 32041350ab22935724b950794c5c1d71374dc76b (diff) | |
| download | pardes-b91e5ebf8b529d0ced0bf18e83b17df0bd2374ce.tar.gz pardes-b91e5ebf8b529d0ced0bf18e83b17df0bd2374ce.zip | |
chord polish: the selection a 1-2/1-3 chord leaves behind is dismissed by the next left click instead of stretching to it (explicit v/x selections keep click-extend), and in a tty-mode shell 1-3 now pastes into the pty like a terminal emulator — the click is forwarded first (SGR or X10, only when the app listens for mouse) so mouse-aware programs paste at the click point, then the register arrives bracketed (mode 2004) or with \n->\r when unbracketed; 1-2 stays inert there. chordcut.snap pins both (a cat -v probe shows the exact wire bytes); tutor updated.
Diffstat (limited to 'test/snapshots/chordcut.snap')
| -rw-r--r-- | test/snapshots/chordcut.snap | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/test/snapshots/chordcut.snap b/test/snapshots/chordcut.snap index fc033e39..8243098a 100644 --- a/test/snapshots/chordcut.snap +++ b/test/snapshots/chordcut.snap @@ -99,3 +99,49 @@ release right 25 4 wait 10000 line 2 stable 700 10000 snap lookafter +# a fresh left click dismisses the chord's leftover selection instead of +# dragging the anchored span to the click: copy `line` on f.txt line 1 +# (styled snap shows the selection), then click the next row (it's gone) +press left 8 6 +drag left 11 6 +press middle 11 6 +release middle 11 6 +press right 11 6 +release right 11 6 +release left 11 6 +stable 400 5000 +snapstyle chordsel +press left 8 7 +release left 8 7 +stable 400 5000 +snapstyle clickdismiss +# tty paste chord: a mouse-listening app gets the click forwarded (SGR, +# body-relative) then the register between bracketed-paste markers — +# cat -v prints the received bytes visibly +press left 5 11 +release left 5 11 +stable 400 5000 +key c-b +stable 600 8000 +text stty -icanon -echo; printf '\x1b[?2004h\x1b[?1000h\x1b[?1006h'; cat -v +key enter +stable 700 8000 +press left 10 12 +press right 10 12 +release right 10 12 +release left 10 12 +stable 700 8000 +snap ttyprobe +# a plain prompt (mouse modes off) gets no click bytes — just the paste; +# readline's own 2004 strips the markers and inserts the register text +key c-c +stable 600 8000 +text stty sane; printf '\x1b[?1000l\x1b[?1006l' +key enter +stable 600 8000 +press left 10 12 +press right 10 12 +release right 10 12 +release left 10 12 +stable 700 8000 +snap ttyprompt |
