From 6d7b506c8a380e4dd97f337590ca079d810a360a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 15 Sep 2026 13:46:50 -0300 Subject: Follow embedded PDF links through Look --- docs/design.typ | 9 +++++++++ docs/detached.md | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/design.typ b/docs/design.typ index 88bb49d6..f6e2e240 100644 --- a/docs/design.typ +++ b/docs/design.typ @@ -1954,6 +1954,15 @@ palettes, ascii glyph set toggle). PDF (`-Dmupdf`, native default on): MuPDF rendering as one continuous page strip, real text search, mouse text selection, the document outline into `+PdfSections`, fit-width/fit-height and a themed duotone tint — the last three named in the pane's own live tag. +Embedded PDF links use the ordinary right-click Look gesture. Hovering one +shows an accent highlight and a pointing hand in graphical frontends; dragging +still selects text. Internal links reveal their page and anchor. When the +annotation's visible label resolves to a different Look location, a `+Links` +output lists the visible destination and the embedded destination for you to +choose with Look. Internal destinations in that list use `document.pdf:page`. +Labels that are not locations follow the embedded link directly; identical +destinations open once. Links use the same supported URL and file-location +rules as Look. Tutor: embedded text as file pane. *Language.* The native host snapshots each request and runs it outside the UI diff --git a/docs/detached.md b/docs/detached.md index 9b9ea4ef..4cb3d9d6 100644 --- a/docs/detached.md +++ b/docs/detached.md @@ -49,7 +49,9 @@ write session files or install file watches. `src/detached/wire.zig` owns the versioned frontend protocol. Frames are full grids or changes relative to each frontend's last queued frame. A new attachment receives a full grid. Output queues and per-poll work are bounded; -a lagging frontend cannot hold the session's event loop. +a lagging frontend cannot hold the session's event loop. Protocol version 3 +also carries the pointer shape, including updates when no grid cells change, +so PDF link hover uses the same pointing-hand cue in attached graphical clients. `zig build unit-test` covers encoding, session ownership, real frontend connections, worker completion and Restore. `zig build fs-test` drives -- cgit v1.3