summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-23 16:06:33 -0300
committerGabriel Schneider <[email protected]>2026-11-23 16:06:49 -0300
commit047a85e32c30142bddab3c10bb208607c5bed933 (patch)
tree10ca4aee75c750d2b46e13ced444d08fbda80bb2 /addons
parent3dfa6a9d9a788e89291efb035327cd181c196749 (diff)
downloadpardes-047a85e32c30142bddab3c10bb208607c5bed933.tar.gz
pardes-047a85e32c30142bddab3c10bb208607c5bed933.zip
help: the addons' words documented as the builtins are (item 5's last group: the pdf addon's `PdfSections`, `PdfTint`, `PdfFit`; the image addon has none), each checked against its run (addons/pdf/pdf.zig `ctl`: PdfFit bare flips between width and height, PdfTint bare steps disabled, filtered, full; `sections` fills +PdfSections): a word's documentation is its registration's `.doc` (a Kind.Word's doc is 96 bytes: one sentence), which Help, `Help <Word>`, /commands and the JSON show; was lower-case fragments with the forms in parentheses ("tint the PDF to the theme or show it as printed (disabled|filtered|full)"); now sentences with what bare does: "Tint the pages to the theme: full, filtered (hues kept) or disabled; bare, the next.", "Fit the PDF's pages to the pane's width or its height; bare, the other.", "List the PDF's sections in a +PdfSections, each a place to go."; docs/typ/builtins-tui.json regenerated
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'addons')
-rw-r--r--addons/pdf/pdf.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/pdf/pdf.zig b/addons/pdf/pdf.zig
index 79d79219..bc75e039 100644
--- a/addons/pdf/pdf.zig
+++ b/addons/pdf/pdf.zig
@@ -222,9 +222,9 @@ pub const Pdf = extern struct {
_: [6]u8 = @splat(0),
pub const head: addon.Head = .{ .name = "pdf", .version = 1, .exts = ".pdf", .pictures = true, .plain = true, .words = &.{
- .{ .name = "PdfSections", .leader = "ts", .doc = "list the PDF's sections in a pane, each a place to go" },
- .{ .name = "PdfTint", .leader = "ti", .arg = .optional, .doc = "tint the PDF to the theme or show it as printed (disabled|filtered|full)" },
- .{ .name = "PdfFit", .leader = "tz", .arg = .optional, .doc = "fit the PDF's pages to the pane's width or height (width|height)" },
+ .{ .name = "PdfSections", .leader = "ts", .doc = "List the PDF's sections in a +PdfSections, each a place to go." },
+ .{ .name = "PdfTint", .leader = "ti", .arg = .optional, .doc = "Tint the pages to the theme: full, filtered (hues kept) or disabled; bare, the next." },
+ .{ .name = "PdfFit", .leader = "tz", .arg = .optional, .doc = "Fit the PDF's pages to the pane's width or its height; bare, the other." },
} };
/// MuPDF's memory is pardes's heap.