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/config.zig | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/config.zig') 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"; -- cgit v1.3