diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-23 16:06:33 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-23 16:06:49 -0300 |
| commit | 047a85e32c30142bddab3c10bb208607c5bed933 (patch) | |
| tree | 10ca4aee75c750d2b46e13ced444d08fbda80bb2 | |
| parent | 3dfa6a9d9a788e89291efb035327cd181c196749 (diff) | |
| download | pardes-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
| -rw-r--r-- | addons/pdf/pdf.zig | 6 | ||||
| -rw-r--r-- | docs/typ/builtins-tui.json | 6 |
2 files changed, 6 insertions, 6 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. diff --git a/docs/typ/builtins-tui.json b/docs/typ/builtins-tui.json index f228e1de..4d85e9d7 100644 --- a/docs/typ/builtins-tui.json +++ b/docs/typ/builtins-tui.json @@ -112,7 +112,7 @@ {"name": "WsDiagnostics", "leader": "SPC l D", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the diagnostics of the whole workspace in a +Search.", "text": "List the diagnostics of the whole workspace in a +Search."}, {"name": "WsSymbols", "leader": "SPC l S", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Search the workspace's symbols for its argument, in a +Search; bare, it asks for the name.", "text": "Search the workspace's symbols for its argument, in a +Search; bare, it asks for the name."}, {"name": "Zerox", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Open a second pane on this pane's file: the same text, undo and unsaved state.", "text": "Open a second pane on this pane's file: the same text, undo and unsaved state.\nEach pane keeps a scroll and a cursor of its own. Only a file's pane takes it."}, - {"addon": "pdf", "name": "PdfSections", "leader": "SPC t s", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "list the PDF's sections in a pane, each a place to go", "text": "list the PDF's sections in a pane, each a place to go"}, - {"addon": "pdf", "name": "PdfTint", "leader": "SPC t i", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "tint the PDF to the theme or show it as printed (disabled|filtered|full)", "text": "tint the PDF to the theme or show it as printed (disabled|filtered|full)"}, - {"addon": "pdf", "name": "PdfFit", "leader": "SPC t z", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "fit the PDF's pages to the pane's width or height (width|height)", "text": "fit the PDF's pages to the pane's width or height (width|height)"} + {"addon": "pdf", "name": "PdfSections", "leader": "SPC t s", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the PDF's sections in a +PdfSections, each a place to go.", "text": "List the PDF's sections in a +PdfSections, each a place to go."}, + {"addon": "pdf", "name": "PdfTint", "leader": "SPC t i", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Tint the pages to the theme: full, filtered (hues kept) or disabled; bare, the next.", "text": "Tint the pages to the theme: full, filtered (hues kept) or disabled; bare, the next."}, + {"addon": "pdf", "name": "PdfFit", "leader": "SPC t z", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Fit the PDF's pages to the pane's width or its height; bare, the other.", "text": "Fit the PDF's pages to the pane's width or its height; bare, the other."} ] |
