From cd4a5b991104a2dc96a4bb7390451fb384376a9a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 3 Aug 2026 09:35:25 -0300 Subject: add PDF sections output and Look navigation --- src/builtins.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/builtins.zig') diff --git a/src/builtins.zig b/src/builtins.zig index 4f6db6e1..9bd955bd 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -311,6 +311,16 @@ pub const PdfTint = struct { } }; +/// Show this PDF's document outline as a live, steppable output pane. The +/// command is absent from non-MuPDF builds and deliberately inert on every +/// other pane kind, like the two PDF display toggles above. +pub const PdfSections = struct { + pub const run = if (pardes.pdf_enabled) apply else {}; + fn apply(c: Ctx) void { + c.p.openPdfSections(c.id); + } +}; + // The image pane's three renderer toggles. They used to be words the image tag // printed and the execute dispatcher matched by hand; as builtins they are // executable anywhere, pressable under SPC and listed by `SPC ?`, the whole -- cgit v1.3