diff options
| author | Gabriel Schneider <[email protected]> | 2026-07-01 11:15:30 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-07-01 11:15:56 -0300 |
| commit | c301ae3567204666c914ba4b36336d3a91af0cd1 (patch) | |
| tree | 35313e47977ac4e0e6ff8ffaaf1caa0aa3ed9de7 /tests.zig | |
| parent | 6570dc04d6343cbbf31c0eb2363f9bec817aa4db (diff) | |
| download | pardes-c301ae3567204666c914ba4b36336d3a91af0cd1.tar.gz pardes-c301ae3567204666c914ba4b36336d3a91af0cd1.zip | |
changed some draggable styling
Diffstat (limited to 'tests.zig')
| -rw-r--r-- | tests.zig | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -56,6 +56,14 @@ pub fn main(init: std.process.Init) !void { try hs.resize(30, 100); try hs.expectWaitFor("resizes=2", 8000, "SIGWINCH was not turned into a resize (counter stuck at 1)"); + // 2b. RECLAIMED GAP + HOVER HANDLE: no dead gap column between panes now — the + // resize handle is the LEFT pane's last column, and hovering it overlays a + // dash (keeping the cell's colors). 2 equal columns at 100 wide -> left width + // 50, last col = 49 (SGR 50). A no-button motion there paints the "╎". + try hs.send("\x1b[<35;50;10M"); // motion (no button) over the left pane's last col + try hs.pump(400); + try hs.expectContains("╎", "hovering the column boundary did not overlay the dashed resize handle"); + // 3. Default is NORMAL mode: the tag shows "nm" (helix-style block cursor). try hs.expectContains("nm /", "default tag is not 'nm' (normal mode not default)"); @@ -80,6 +88,23 @@ pub fn main(init: std.process.Init) !void { try hs.expectWaitFor("ZZTABRAN", 8000, "normal-mode Tab did not execute the word under the cursor"); try hs.pump(400); + // 3c-bis. CENTRAL DISPATCH: a builtin executes from a PANE BODY, not only the + // tagbar. Echo "Debug" as output (visible in normal mode), click it, TAB it: + // the same .debug action runs through the one dispatcher and toggles the + // overlay OFF (step 0 turned it on) -> "resizes=" disappears. Proves onSelect + // matches builtins wherever the word appears (tty here, not the tagbar). + try hs.send("\x02"); // normal -> tty + try hs.pump(400); + try hs.send("clear; echo Debug\r"); + try hs.pump(900); + try hs.send("\x02"); // tty -> normal + try hs.pump(400); + try hs.send("\x1b[<0;5;3M\x1b[<0;5;3m"); // left-click "Debug" on body row 0 (col 3=body 0; GUTTER 2) + try hs.pump(400); + try hs.send("\t"); // TAB: execute the builtin "Debug" + try hs.pump(600); + try hs.expectNotContains("resizes=", "executing 'Debug' from a pane body did not toggle the overlay (central dispatch broken)"); + // 3d. OUTPUT PADDING: a command composed (typed as an overlay) far below the // prompt runs BELOW where it was typed, not back up at the prompt. The app // pads the shell down with newlines to max(last-edit row, prompt row); the |
