From de4def3548a6729b0dfd2120495a61beef8c8c2c Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 5 Jul 2026 20:21:50 -0300 Subject: pardes v2: the rewrite, complete and organized. src/ (core + three shells), test/ (snapshot parity harness + 18 frozen goldens). One sans-IO core, vaxis tty + SDL3 GPU native + wasm web shells, 18/18 parity with the purged prototype, 7.6k lines vs 12.1k. Fix: gui shell pre-sized the core at init so the greet-releasing resize never fired (blank panes until first interaction); live sessions now init at defaults and get the real grid as a resize event (the shell contract, documented on Options). --- test/snapshots/exec.snap | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 test/snapshots/exec.snap (limited to 'test/snapshots/exec.snap') diff --git a/test/snapshots/exec.snap b/test/snapshots/exec.snap new file mode 100644 index 00000000..dd8c24ee --- /dev/null +++ b/test/snapshots/exec.snap @@ -0,0 +1,46 @@ +# 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 30 100 +wait 8000 e.txt +stable 700 20000 +press left 5 8 +release left 5 8 +stable 400 5000 +key i +text echo MID''OK +key esc +settle 700 +stable 400 5000 +press middle 5 8 +drag middle 16 8 +release middle 16 8 +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 3 +drag left 7 3 +release left 7 3 +stable 400 5000 +snap kept +send \x1b[<1;4;4M\x1b[<0;4;4M\x1b[<1;4;4m +wait 10000 CHORDARG:ZZARG +stable 700 10000 +snap chord +# middle-click Del in this pane's tag (after cwd prefix) closes it +press middle 32 2 +release middle 32 2 +stable 700 10000 +snap deleted -- cgit v1.3