# middle-drag executes the selection in the pane's shell; a left press during # the middle drag captures the kept left selection as a trailing argument; # middle-click Del on the pane tag closes the pane file e.txt x start 31 140 -n 3 wait 8000 e.txt stable 700 20000 press left 5 9 release left 5 9 stable 400 5000 key i text echo MID''OK key esc settle 100 stable 400 5000 press middle 5 9 drag middle 16 9 release middle 16 9 wait 10000 MIDOK stable 700 10000 snap exec # chord (canonical sequence, as in the prototype e2e): print an arg word and a # script path, left-drag-keep the arg, then middle-press on the path + left # press (captures) + middle release (runs with the arg appended) key c-b stable 600 8000 text printf '#!/bin/sh\necho CHORDARG:"$1"\n' > c.sh; chmod +x c.sh; clear; printf 'ZZARG\n./c.sh\n' key enter wait 10000 ./c.sh stable 700 10000 key c-b stable 600 8000 press left 3 4 drag left 7 4 release left 7 4 stable 400 5000 snap kept send \x1b[<1;4;5M\x1b[<0;4;5M\x1b[<1;4;5m wait 10000 CHORDARG:ZZARG stable 700 10000 snap chord # middle-click Del in THIS pane's tag: row 2 carries both panes' tags, so the # occurrence is spelled out rather than left to the leftmost-match default press middle @Del#1 3 release middle @Del#1 3 stable 700 10000 snap deleted