From 95dbd10e51797283c13e47a01201898bf4174463 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 25 Nov 2026 18:35:03 -0300 Subject: A link (OSC 8) under the pointer lights up even in a program that takes every mouse move (1003, codex's fullscreen), as a Look hover does anywhere, so the label shows what B3 will open: the user's report of 2026-11-27 ("could we see like if it would do a look"); THE CAUSE: under 1003 every move was the program's (programMouse returned true) and pardes never hovered, while B3 on the label already looked at its URI; THE CHANGE: programMouse's motion under 1003 still goes to the program, and when its cell holds a link (Term.link) pardes hovers too; off a link the hover pardes showed in that pane goes (look.invalidateLookHover); a plain word there stays the program's, as before; core/Term.zig's S1 row for `link`: exec.zig:1 mouse.zig:1; RUN (TEST FIRST): mouse.zig "under any-event tracking (1003) a move over a link (OSC 8) is pardes's hover too ..." (codex's modes 1000/1002/1003/1006, `see ` and a link labelled `the docs`): the move over it reaches the program (`\e[<35;7;1M`) and the preview covers cells 4..11; off it the program's move alone and no hover; fails with the old rule (NoHoverOverTheLink), passes now; REAL CHECK (.scratch/kp/link_e2e.py MOUSE=1003, pardes --tty in a pty): before, the label's cells unchanged under the pointer; GATES (Debug tui): core-test 1166/1346 (180 skipped), shell-test 1395/1398 (3 skipped), term-test 17/17, kitty-test 45/45, process-test rc 0, behaviour-test 293/293 --- core/Term.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/Term.zig') diff --git a/core/Term.zig b/core/Term.zig index 6415b199..a137267d 100644 --- a/core/Term.zig +++ b/core/Term.zig @@ -448,7 +448,7 @@ pub const calls = [_]struct { []const u8, []const u8, []const u8 }{ .{ "scrollbackLen", "ninep/ctl.zig:1 ninep/pane.zig:1", "READ, NOT COVERED: the history's text's length (its row count is in the digest)" }, .{ "commandOutput", "ninep/pty.zig:1", "READ, NOT COVERED: a command's output rows (a 9P pty/run): taped as the session's answer" }, .{ "textRows", "edit.zig:2", "READ, NOT COVERED: every row's text, the history's among them (a selection, a Look over a shell)" }, - .{ "link", "exec.zig:1", "READ, NOT COVERED: the URI of a link (OSC 8) a Look over a shell takes, as its text (`textRows`)" }, + .{ "link", "exec.zig:1 mouse.zig:1", "READ, NOT COVERED: the URI of a link (OSC 8) a Look over a shell takes, as its text (`textRows`); mouse.zig: whether a move under 1003 is over one (pardes hovers it)" }, .{ "viewport", "body_layer.zig:1 replica.zig:1", "READ: the rows' text a view's place (in the digest, with its pane) shows (body_layer.zig: a draw's; replica.zig: a test's)" }, .{ "editRows", "ansi.zig:1 panes.zig:1", "READ: rows' text for a draw; a command's last rows read for the places its report names when it fails (panes.zig commandDone): in the digest as the emulator's rows are" }, // ---- local ---- -- cgit v1.3