diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-03 09:35:25 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | cd4a5b991104a2dc96a4bb7390451fb384376a9a (patch) | |
| tree | f59f04aa83266d9ddfbabcb18bad8c3277e74bd7 /src/builtins.zig | |
| parent | a69cd4a7ef5c4527e3a7cd325d49b6bf445bd810 (diff) | |
| download | pardes-cd4a5b991104a2dc96a4bb7390451fb384376a9a.tar.gz pardes-cd4a5b991104a2dc96a4bb7390451fb384376a9a.zip | |
add PDF sections output and Look navigation
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
