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/output_pane.zig | |
| parent | a69cd4a7ef5c4527e3a7cd325d49b6bf445bd810 (diff) | |
| download | pardes-cd4a5b991104a2dc96a4bb7390451fb384376a9a.tar.gz pardes-cd4a5b991104a2dc96a4bb7390451fb384376a9a.zip | |
add PDF sections output and Look navigation
Diffstat (limited to 'src/output_pane.zig')
| -rw-r--r-- | src/output_pane.zig | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/output_pane.zig b/src/output_pane.zig index 4b62a06e..49af86af 100644 --- a/src/output_pane.zig +++ b/src/output_pane.zig @@ -146,12 +146,14 @@ pub fn traits(o: Origin) Traits { // error, and a comptime-false `if` is the one form that is not // even analysed there. // - // Find (file names) and Grep (file contents) both list locations; - // no other builtin opens a buffer, and the day one does it lands - // here rather than in a call site. + // Find (file names), Grep (file contents), and PdfSections all + // list lookable locations. Feature-only rows remain branches so + // builds whose Builtin enum omits them never analyse the field. else => blk: { if (pardes.platform == .gui) if (b == .FontSel) break :blk .{ .name = config.fonts_buffer, .steps = true, .executes = true }; + if (pardes.pdf_enabled) if (b == .PdfSections) + break :blk .{ .name = config.pdf_sections_buffer, .steps = true }; break :blk .{ .name = config.search_buffer, .steps = true }; }, }, |
