summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-03 09:35:25 -0300
committerGabriel Schneider <[email protected]>2026-08-10 09:17:07 -0300
commitcd4a5b991104a2dc96a4bb7390451fb384376a9a (patch)
treef59f04aa83266d9ddfbabcb18bad8c3277e74bd7 /src/config.zig
parenta69cd4a7ef5c4527e3a7cd325d49b6bf445bd810 (diff)
downloadpardes-cd4a5b991104a2dc96a4bb7390451fb384376a9a.tar.gz
pardes-cd4a5b991104a2dc96a4bb7390451fb384376a9a.zip
add PDF sections output and Look navigation
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/config.zig b/src/config.zig
index a14ed797..f8a3767b 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -164,13 +164,14 @@ pub const leader_path = paths: {
table.set(.FontSel, "tf");
table.set(.Font, null);
}
- // The PDF toggles exist only in MuPDF builds (their run declarations
- // deliberately change shape when the feature is off), so name their paths
- // through the same comptime branch rather than making feature-off enums
- // mention them. `ti` was the unused slot in the display-toggle group;
- // PdfFit's established `tz` stays unchanged.
+ // The pane-local PDF commands exist only in MuPDF builds (their run
+ // declarations deliberately change shape when the feature is off), so
+ // name their paths through the same comptime branch rather than making
+ // feature-off enums mention them. PdfTint/PdfFit retain their display
+ // slots and PdfSections takes the mnemonic `s` between them.
if (pardes.pdf_enabled) {
table.set(.PdfTint, "ti");
+ table.set(.PdfSections, "ts");
table.set(.PdfFit, "tz");
}
// ...and the property EnumArray.init used to give for free: every builtin
@@ -591,6 +592,7 @@ pub const help_buffer = "+Help";
pub const jumps_buffer = "+Jumps";
pub const themes_buffer = "+Themes";
pub const fonts_buffer = "+Fonts";
+pub const pdf_sections_buffer = "+PdfSections";
pub const hover_buffer = "+Hover";
pub const lsp_buffer = "+Lsp";