summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig10
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