# Changelog ## Unreleased - `zig build static -Dplatform=tui -Dtarget=x86_64-linux-musl`: one statically linked `pardes` with the image and PDF addons compiled in (`/addons` lists them `builtin`; `Addon reload` refuses them). It replaces `-Dstatic`, which glibc refused (it links only dynamically). - Addons in Zig: `src/kinds/addon.zig` (over the same header, nothing of the core) makes a kind's `pa_ops` from a struct of its functions, with the pane's arena as an Allocator, typed keys, a window to `put` text in, a deadline for `tick`, a struct's bytes as its record and its own `zig test`; the snake and image addons are Zig now (`snake.zig`, `image.zig`). - The addons are build steps: `zig build image`, `zig build pdf`, or `zig build addons` for both, install them in `lib/pardes/addons`; the default install is the binaries alone, and `-Dmupdf` is gone. - `Plumb`: rules of your own for what a `Look` opens, one a line in plumb(6)'s order, `Plumb suffix .svg to image`, `Plumb prefix gopher:// to url`; tried before the built-in ones, the first that matches wins. The tests are `prefix`, `suffix`, `isdir` and `isfile`; the ports `url`, `dir`, `file` and any loaded kind. In `init` or the root `ctl`. - PDFs are an addon: `lib/pardes/addons/pdf.so` (addons/pdf, over MuPDF, which left the binaries), installed beside them and loaded at start; a pardes without it shows a PDF as text. A PDF's tag starts with its page, `[1/12]`, then the art words its pictures take and its path. Addons speak ABI 2.2: a heap, the pane's view, `exec`, `select`, their own `search` for `/`, Esc first, a rail's thumb, a wheel's fraction, the pointer they ask for, a tick told a frame was drawn. - Pictures are an addon: `lib/pardes/addons/image.so` (addons/image), installed beside the binaries and loaded at start; a pardes without it shows image files as text. - Addons speak ABI 2 (src/kinds/pardes_addon.h): `tick` is told `PA_FOCUSED` and called again after anything happens to its pane, so a game stands still unfocused asking for nothing; one `paint` a frame; jobs on the host's workers, dropped across a reload; each session its own kinds; a client with no addon shows its panes from the session's frames; `addons/snake` is a game in it. - Half the settings are gone, each one now the value it had by default, its word refused as any unknown one is (an init file that still says it gets a notice naming its line), and a dump that kept it loads as before: - Tagbottom: a pane's tag is at its head (`SPC t b` with it). - Colors: text panes and terminals are coloured (`SPC t c` with it). - TreeContextTagStyle: TreeContext rows draw in the tag's style. - FocusTint: the focused pane's and column's tags are tinted. - SyntaxBold: keywords are not bold. - Ligatures: the window draws a font's ligatures. - Pager: a terminal's shell pages into a +Pager (`pardes -`) where your environment names no pager; set `PAGER` and `GIT_PAGER` to keep yours. - PagerColor: a +Pager keeps its program's colours. - TermImages: a new terminal draws its program's images as pixels where the shell can; Petscii still flips one terminal to glyph art. - SearchPlace, SearchPane and SearchRows: a query pane is attached under the pane that asked, eight rows under its line 1, and the next search from that pane reuses it; the finder column is gone with them. - ProgramEsc: in a raw terminal Esc goes back a pane and Shift-Esc is the program's Esc. - JumpScope: Back and Forward keep to the focused pane's file first. - WindowBlur: the macOS window draws no blur behind a translucent ground. - What pardes keeps on disk is in xitdb databases now (a pinned commit of github.com/xit-vcs/xitdb, pure Zig). The state file, `pardes.xitdb` in the DumpDir (`$XDG_DATA_HOME/pardes`, else `~/.local/share/pardes`), keeps Recent and the dumps, shared by every session of the user; a far client's blob cache is `cache.xitdb` in `$XDG_CACHE_HOME/pardes` (else `~/.cache/pardes`). What to know: - Dump puts the session in the state file under a label, `pardes--