diff options
Diffstat (limited to 'docs/typ/reference.typ')
| -rw-r--r-- | docs/typ/reference.typ | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ index 47014d1b..2562c91b 100644 --- a/docs/typ/reference.typ +++ b/docs/typ/reference.typ @@ -17,7 +17,7 @@ it names, or else run it as a shell line. The files #file("look") and = The tree <tree> #fstree(``` -README the one-screen summary (src/fs-help.txt) @other-files +README the one-screen summary (core/fs-help.txt) @other-files index a line per pane: serial kind dirty name column @rules status pid, version, panes @other-files look write a line: a #word("Look") at the pane with the keyboard; read: the serials touched @look-and-exec @@ -378,7 +378,7 @@ takes (#word("Theme") `orchard`, #word("Verbose") `on`, #word("DumpDir") `<dir>` frontend lacks as a comment (`# GripWidth unsupported`), so writing back what it reads changes nothing. Writes take settings and session builtins (`scope = .session` in -`src/builtins.zig`), acting at the pane with the keyboard: +`core/builtins.zig`), acting at the pane with the keyboard: - A setting written bare steps to its next value (a switch flips). A value it does not take is `bad value in control message; ...` naming what it takes; @@ -487,9 +487,9 @@ rows) and the window's caret eases to its place. may lower the contrast of text, the selection or a focus indicator. Resting the pointer on text for about 32 ms (`look_preview_delay_frames`, -2 frames, in `src/config.zig`; `null` turns it off) tints what #word("Look") would take, with no other effect. A terminal's or a `+Pager`'s +2 frames, in `core/config.zig`; `null` turns it off) tints what #word("Look") would take, with no other effect. A terminal's or a `+Pager`'s #word("Filter") keeps each foreground at least `tty_filter_min_contrast` -(WCAG 1.5, `src/config.zig`) against its background. +(WCAG 1.5, `core/config.zig`) against its background. = Columns and tags <columns-and-tags> @@ -735,7 +735,7 @@ over the match where the search starts. Patterns are mvzr's (classes, `\d\w\s`, `{m,n}`, lazy `*?`), searched as sam searches, line by line: `^` and `$` match at any line's start and end, `.`, `\s` and `[^...]` never match a newline (helix's `\s` and `[^...]` do: -there `S\s+` splits off a line's newline, here `S\s+|\n` does). The same code (`src/regexp.zig`) +there `S\s+` splits off a line's newline, here `S\s+|\n` does). The same code (`core/regexp.zig`) serves addresses, #word("Edit"), and normal mode's #key("s") and #key("S"). The ceiling: @@ -1040,7 +1040,7 @@ own: a file or directory opened, else the word searched for. place. A session starts with the plumbing file's rules, #word("Plumb") (`plumbing` in the configuration directory, beside `init`; saved, its rules are in force), or without one `include basic`, pardes's own - (`src/plumbing`, below). A write adds rule sets, each + (`core/plumbing`, below). A write adds rule sets, each read as its blank line comes, the rest at the close (refused there, it is an `err` in the log alone; Plan 9's loses it); `>` replaces them all. One open writes at a time (`file in use`). Kept in a dump. @@ -1050,7 +1050,7 @@ own: a file or directory opened, else the word searched for. were. `$1`-`$9` are refused: pardes's regular expressions (#doc("reference", section: "regexp")) have no submatches; write `$0` and several `matches`, as Pike's two patterns do. `include basic` is - `src/plumbing`; another name is the configuration directory's file, an + `core/plumbing`; another name is the configuration directory's file, an absolute one where it says. - #file("/plumb/send") takes a message, plumb(6)'s six lines (`src`, `dst`, `wdir`, `type`, `attr`, the data's length) and then the data, @@ -1095,7 +1095,7 @@ own: a file or directory opened, else the word searched for. that wants one says `sh -c '...'`); a failure to start it is said, and logged as an `err`. Its directory and words fit in 256 bytes. -The default rules, `src/plumbing`, keep #word("Look")'s ways: a URL to +The default rules, `core/plumbing`, keep #word("Look")'s ways: a URL to the browser; a bare `.diff` or `.patch` stacked in a +Diff (#word("Diff") with the file, which declines one with no hunk, opened as text then); an existing directory or file to `edit`, Look's own open (a kind's file in @@ -1106,18 +1106,18 @@ sends to `edit` (`src` `pager`, `type` `text/x-diff`, `action=showdata` and the +Pager's `filename`), made `showdiff`: stacked in a +Diff in the +Pager's place. Text paged that is no diff is not sent: -#raw(read("../../src/plumbing"), block: true) +#raw(read("../../core/plumbing"), block: true) = Addons <addons> An addon is a shared library that brings one kind of pane: a picture, a -game, a plot. It is written against one header, `src/kinds/pardes_addon.h`, +game, a plot. It is written against one header, `abi/pardes_addon.h`, in C or anything that speaks C, and links nothing of pardes: the records are the header's, and what pardes does for it (an allocation from the pane's arena, memory that outlives a call, a job off the loop, a Look or an Exec, a message, a new text pane, its selection) it is handed at load. `addons/fake/fake.c` uses every function; a kind with only a head and -`paint` is a valid one. In Zig, `src/kinds/addon.zig` (over the same +`paint` is a valid one. In Zig, `abi/addon.zig` (over the same header, and nothing of the core) makes the `pa_ops` from a struct of the functions a kind has (`pub const pardes_addon = addon.ops(Snake);`, and `addon.exportLib(&pardes_addon)` in a `comptime` block, which exports it @@ -1129,7 +1129,7 @@ and views, a window to `put` text in (column first, where the header's every tick, a body written (at most 4 KiB) or held (any length), an `init` at load, a struct's bytes as its record, and its own `zig test` (`zig build addon-test` runs them); a Zig kind outside the tree runs `zig -translate-c src/kinds/pardes_addon.h` once for the header: +translate-c abi/pardes_addon.h` once for the header: `addons/snake/snake.zig` is a game in it. Pictures are an addon too, `addons/image/image.zig` (PNG, JPEG, GIF, BMP, PPM, PGM and TGA through stb_image, at most 1280 pixels a side), which `zig build image` |
