summaryrefslogtreecommitdiff
path: root/core/CHANGELOG.md
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 22:03:14 -0300
committerGabriel Schneider <[email protected]>2026-11-18 22:23:51 -0300
commit99f5b10eccd95aa0066ea6fe6bb75f367ab56a47 (patch)
tree813596ea84318a7bae4fd7416ba463de8e3b7107 /core/CHANGELOG.md
parent92d553123673376adf6126ab90d49a22c5b833d2 (diff)
downloadpardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.tar.gz
pardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.zip
core: src/ becomes core/, pardes.zig its root.zig (the reorganisation's tree, step 2d), and every mention of a src/ path follows: the build's paths, the core's imports of its root, the tests that read the repository's files by path (lspbench's, look.zig's spans over core/look.zig), the comments that cite files, the documents and the manual (the typst corpus reads core/tutor.txt and core/plumbing); left as they were: the /src tree's served names (src/pardes.zig and the rest are the 9P tree's, not the repository's), the CHANGELOG's history, fixtures that are only strings; fs-unit-test runs from the core's root (a module of the core rooted at fs.zig had the runtime's and the devices' `core` be fs.zig); nothing else changes: the ledger (pardes.test.* now root.test.*), frames byte-identical, replicas and process-test the base's
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/CHANGELOG.md')
-rw-r--r--core/CHANGELOG.md1357
1 files changed, 1357 insertions, 0 deletions
diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md
new file mode 100644
index 00000000..5fcfd378
--- /dev/null
+++ b/core/CHANGELOG.md
@@ -0,0 +1,1357 @@
+# Changelog
+
+## Unreleased
+
+- `pardes` has commands, and they describe themselves: `ps`, `attach`,
+ `kill` and `new` for sessions, `do WORD` and `words` for the builtins,
+ `fs ls|read|write|ask|follow|stat|help|complete PATH` for the tree (a
+ refusal in the session's own words, where a mount says EINVAL), and
+ `help`, `completion bash|fish|zsh`, `skill` and `version`. `pardes help`
+ is a map of them; `help CMD` ends in examples; `help WORD` and `help
+ PATH` print what the session's /commands and /README say, and with no
+ session running, what a core made in the command's own process says.
+ A command acts on `-s NAME`, else `$PARDES_9P`, else the only session.
+ `pardes FILE` and every flag work as before; `--ps`, `--attach`,
+ `--kill`, `--kill-all`, `--help` and `--version` are the commands' old
+ spellings, for a release. A file named like a command opens as `./ps`.
+ The reference's "The pardes command" is `pardes help --all`, written by
+ `zig build builtins-json -Dplatform=tui`, and a test says when it is
+ stale.
+
+- The text pane is a library too, `pardes-editor` (`src/lib_editor.zig`,
+ docs/next-editor.md): helix's keys on a text kept in memory, for a
+ program that draws it itself (a sketch with a language of its own). It
+ is a value of plain data, every capacity in its type, copied anywhere
+ and outliving the code that made it; each call runs pardes's own
+ normal.zig and edit.zig on it, built with no pane and no core, and hands
+ back what is not the text's (a view, `:`, `/`, `s`, a language server, a
+ macro) to its caller. A grammar can be handed in at run time beside the
+ compiled-in ones. A package asks for it with `.editor = true`; one that
+ asks for `pardes-syntax` alone fetches what it did. `zig build hxlib`
+ runs helix's cases on it, against the goldens and against the file pane.
+ Nothing a session does changes, and a session dumped before loads after.
+ The caller can hand it the parse it keeps (`Syntax`), and helix's
+ tree-sitter walks (Alt-o, Alt-i, Alt-n, Alt-p and kin, `]f`, `mif`) run
+ in the library on pardes's own functions, Alt-i going back the way
+ Alt-o came; `replace` rewrites a byte range as one step to undo, the
+ ranges following, and a drag that rewrites a number every frame can
+ join its frames into one. A new line's indent comes from that parse
+ where its grammar has an indent query (a `Language`'s `indents`), as a
+ file's does from its own, so a language whose lines end in `)` is not
+ pushed a level in at every line.
+- The terminal is a module of its own (`src/term/`: the emulator, its
+ screen state for replicas, kitty images, the pager's parse), which never
+ imports the core and is reached through one table of plain-data
+ entries, `src/Term.zig` the core's side (docs/next-terminal.md). Editing
+ a terminal's text is the core's, on a copy of its rows, as before, and
+ predicted echo stays the core's; nothing a session does changes, and a
+ session dumped before loads after. `zig build core-test` builds the core
+ without the terminal (no ghostty, no C++): a shell boot is a scratch
+ pane there and a test that needs a terminal skips; `zig build
+ shell-test` runs the same tests with it.
+
+- A diff paged (`git show | pardes -`) is a plumbing message, as acme's
+ `plumb -i` sends what it shows: `type text/x-diff` to `edit`, which a
+ default rule makes `showdiff`, its +Pager stacked in a +Diff as before.
+ Take the rule out and the +Pager stays as text; a program reading
+ `plumb/edit` sees the diff. The `edit` port shows any message's data
+ with `action=showdata` (stacked with `showdiff`).
+
+- A port the plumbing rules name is a file a program reads,
+ `plumb/<port>`, as Plan 9's plumber serves one: every open reads its
+ own copy of what is sent there from then on (`cat plumb/edit` sees each
+ file a look opens), a read held until a message comes. A message to a
+ port no one reads runs its rule set's `start`, or with `plumb client`
+ waits for the port's first reader.
+
+- A look asks the plumber first, as acme's does: once the pane's own
+ readings are done and a name already open in a pane is focused, what
+ is looked at is sent (`type text`, `src pardes`, `wdir` the pane's
+ directory), and only what no rule set takes is Look's own. The default
+ rules keep every look as it was: the browser for a URL, a bare `.diff`
+ or `.patch` stacked in a +Diff, `git show` of a commit hash in a git
+ work tree are now rules of `src/plumbing`, no longer written into
+ Look. `Diff` takes a file or a revision (`Diff fix.patch`, `Diff
+ 3f2a9c1`), and a rule's Diff that cannot declines, so the look goes
+ on. `Plumb` opens your plumbing file (`<config>/plumbing`, `include
+ basic` until you save one), read at start and applied when saved; the
+ one-line `Plumb suffix .svg to image` rules are gone, refused in words
+ (write a rule set: `data matches '.*\.svg'`, `arg isfile $data`,
+ `plumb to image`). A program a rule starts runs detached, as Plan 9's
+ plumber starts one, with no pane; a failure to start it is said.
+
+- A search with a class whose range ends at `\xff` (`[\x80-\xff]`, in an
+ address, `s`, a plumbing rule) no longer takes the editor down: mvzr
+ counted the range past a byte's end.
+
+- The plumber, Plan 9's, is in the session: `plumb/rules` holds its
+ rules in plumb(6)'s language (rule sets of `object verb arg` lines,
+ variables, `include`, `matches` over the whole text or around a click,
+ `isfile` and `isdir` finding a name as a look does), and `plumb/send`
+ takes a message and sends it where they say, to a port pardes reads
+ (`edit`, `web`, a loaded kind) or to a word or command started, with
+ Plan 9's words when it cannot. A session starts with `include basic`,
+ pardes's rules (`src/plumbing`). Kept in a dump. `$1`-`$9` are refused,
+ the regular expressions having no submatches.
+
+- A query pane's row looked at on its address (its gutter) opens the
+ row's place however the look arrives, as a click there always did: an
+ empty look written back to the pane's `event` file, and the whole row
+ written to its `look` file, now take the address the row holds, not a
+ word of its text. A diff's lines answer all three ways through the same
+ one function (`look.rowAddressAt`).
+
+- Each pane's directory over 9P has a `rows` file: a line a body row of a
+ results pane (+Search, +Callstack, +Diff, a language server's list),
+ where it points (`path`, line, column, the address's end, where its code
+ starts) and how it is coloured (runs of `keyword`, `string`, ... and the
+ grounds `add`, `del`, `emph`, `line`), so a 9P client reads their
+ addresses as data, not by parsing the text. A write at offset 0 replaces
+ a pane's rows, a later one adds to them; rows its text cannot hold are
+ refused. An edit drops them, as before. The editor's own producers set
+ rows the same one way.
+
+- A drag draws no guide lines: no dashes where a pane or column would
+ land, no rail for a carried column, no dashed seam under a pane rule
+ held. The line between two columns no longer resizes them (nor, at a
+ pane's corner, the panes too): a press there is a press in the pane.
+ A column resizes by its box, left of its tag; a pane by its own box,
+ or in a window by the rule above it.
+
+- An edit to the core recompiles it about 2 s sooner again (`core-test`,
+ 16 % fewer of the compiler's instructions, 4.4 MB less code in a Debug
+ test): a load's note on a field (another build's dump) is written from
+ the type's and the field's names at run time, where every type and
+ field had its own copy of the code that writes one; one byte dump's
+ reader serves a session, a pane and the rest, where each had its own;
+ and what tells a replica's build from another's (`wire.semantics`)
+ joins its two long parts on, and the tape's shape writes its numbers
+ itself and copies each line it builds once, where it formatted them
+ and copied the line again for each piece, at every compile.
+
+- An edit to the core recompiles it about 3 s sooner (`core-test`, 13 s to
+ 10 s): the build keeps each grammar's highlight patterns that pardes
+ colours once, where every compile of every program that takes the core
+ did it again, a quarter of its time. A package that depends on pardes
+ is given the same filtered queries.
+
+- The 256-colour palette Petscii art and the window draw a palette colour
+ with is pardes's own (`colors.xterm`), ghostty-vt's default to the entry.
+
+- Commit patches open as `+Diff-<short-hash>` and reuse only their own
+ commit's pane, so another paged patch no longer replaces one already open.
+
+- zstbi is upstream's again (zig-gamedev/zstbi, its main): the fork pinned
+ for Zig 0.17 was deleted, and a fresh checkout could not fetch it.
+
+- pardes's syntax is a library: a Zig package that depends on pardes is
+ given the `pardes-syntax` module (`src/lib_syntax.zig`), with the
+ grammars, highlighting, declarations, syntax tree and themes as the
+ editor has them, for a program that draws source text itself. Every
+ dependency but tree-sitter's runtime is lazy in the manifest, so such a
+ package fetches the runtime and the grammars of its `tree-sitter` set
+ and nothing else; `zig build lib-test`, which `unit-test` runs, builds
+ one (`test/lib`). The markdown grammar is pinned by its commit: its
+ branch has moved, and a fresh checkout could not fetch it.
+
+- Enter, `o` and `O` give the new line helix's indent where the file's
+ grammar has an indent query (bash, C, C#, C++, Clojure, CSS, Elixir,
+ Fortran, Go, HTML, Java, JavaScript, JSON, Kotlin, OCaml, PHP, Python,
+ Ruby, Rust, Scala, Zig), from the file's syntax tree; elsewhere the
+ line's indent as before. Enter between a pair (`()`, `[]`, `{}`, quotes)
+ puts the closer on a line of its own and the cursor on one a level in.
+ A closer typed on its own line stays where it is typed, as in helix.
+
+- A session's end (`Exit`, the last pane's `Del`, its terminal or window
+ gone) leaves a slim dump in the state file: its panes with their files,
+ directories and places, not a clean file's text, an undo history or a
+ terminal's screen. `History` (`SPC f h`) lists the state file's dumps in a
+ `+History` pane, each as the command that brings it back, `Restore
+ <label>` on a line of its own with its date, size and the panes' names
+ indented under it; a click on that `Restore`, or a look at the line, is
+ that `Restore`. `/dumps` rows end with the names too. The workspace row
+ has `History` before `Debug`, and a window's `Fonts` after `Themes`.
+
+- `Follow` is in a text pane's tag by default, after `Collapse`.
+
+- `Follow` (`SPC c f`), Emacs's follow-mode: one text across a chain of
+ panes as consecutive pages, each a Zerox twin in the column to the right
+ (a new column when there is none). The pages scroll as one, and the
+ cursor moved past a page's edge goes on in the next. `Unfollow` on a
+ follower's tag takes it out; the chain is kept in a Dump.
+
+- A theme may give the tagline (the workspace row) colours of its own,
+ `tagline_bg` and `tagline_fg`, an editor's status bar; dark_plus has VS
+ Code's blue. Without them the row keeps the tag's colours, as before.
+
+- MuPDF and FreeType are lazy: a fresh checkout's `zig build
+ -Dplatform=tui` fetches neither; `-Dpdf` fetches MuPDF the first time
+ (and is on by itself after), and without it the PDF steps say so.
+ The Zig kinds export `pardes_addon` from a library alone
+ (`addon.exportLib`), and a pardes off Linux has its addons compiled in,
+ as the static one does (`Addon load` there: `not on this platform`).
+ The glossary lists the PDF addon's words again.
+- The PDF addon is Zig (`addons/pdf/pdf.zig`, over MuPDF through
+ `pdf_bridge.c`): each view of a PDF has its own layout of the one place
+ (a terminal's text layer and a window's pages at once), its search, its
+ page's text and its pages' sizes are jobs, a search's rows stream into
+ its `+Search` and a stale one is cancelled. On a terminal without
+ graphics the wheel, `gj`, `gk`, `Ctrl-e` and `Ctrl-y` scroll the page's
+ text a line, and turn the page at the window's edge; with graphics a
+ wheel's notch glides there over four frames.
+- `Build` prints this build into a `+Build` pane: version, commit, jj change
+ and build time (stamped builds), the zig, mode, target, platform, grammars,
+ whether the addons are compiled in, and the dependencies.
+
+- Addons speak ABI 3 (2.x ones are refused): a kind's state is stepped
+ once by `tick`, which now also gives the tag's prefix, however many
+ views show it; each view (a window, a terminal) is told to the kind by
+ `view`, by id, and `paint` draws for the view it names. `search` hands
+ its rows to `found`, now or from a job; `cancel` drops a job's answer.
+ A dump keeps a pane's path and the kind's small record (at most 1 MiB),
+ never its file: a Restore reads the file again, and one not there waits
+ saying so until a Look or a watch of it. A picture's or a PDF's tag has
+ its art words from the first frame. A Debug pardes says a kind's call
+ over 16 ms; `--addon-test` fails on it, and has `view N on|off`.
+ `src/kinds/addon.zig` wraps the whole header.
+- `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-<date>-<time>` (UTC), where it wrote `pardes-<date>-<time>.dump`;
+ the workspace tag's word is `Restore <label>`. `/dumps` lists them, the
+ newest first: `<label> <date> <size> <panes>`. The newest 32 are kept,
+ and a text unchanged since the dump before is kept once. `Dump export
+ <path>` writes one to a file of its own instead, which `-l <path>` and
+ `Restore <path>` read: the way to carry a session to another machine.
+ - Restore takes a label or a path; bare, the last dump this session made,
+ else the newest.
+ - An old `.dump` file is still read by `Restore <path>` and `-l <path>`,
+ for this release only: Restore it and Dump again to keep it.
+ - Recent moves from `~/.local/state/pardes/recent` into the state file:
+ the first session reads that file once (else the older `store` beside
+ it) and leaves it; both can be deleted once a session has run.
+ - DumpDir is the state file's directory, so Recent follows it too.
+ - Upgrade commits the session to the state file as `upgrade-<pid>`
+ before the exec; one from the build before, which writes a `.dump`
+ file, is read as before. The label stays among the dumps.
+ - A far client's cache directory, `~/.cache/pardes/blobs`, is no longer
+ read: delete it.
+ - A state file pardes cannot read as one is kept aside as
+ `pardes.xitdb.broken`, and a new one started.
+- The DOM web shell is gone: `-Dplatform=web` and `-Ddump`, the `web`,
+ `web-harness`, `web-snap`, `web-e2e` and `web-driver-test` steps, and
+ `src/web/`; every build has a host now, so what only a freestanding
+ build needed (the `hosted` guards, its arenas, the emscripten main) went
+ with it. `docs/web.md` says what it was.
+- The ESP32-P4 board port is gone: `-Dplatform=esp32p4` with its
+ `-Desp32p4-cols` and `-rows`, the `Peek`, `Poke`, `Hexdump` and `Gpio`
+ words, and every limit and guard only the board needed; the desktop
+ builds keep their capacities.
+- The effects are out of the core: the panel transitions (the eleven
+ Panel words), the post chain (Crt, Bloom, Vignette, Grain, Shader,
+ ShaderAnimation and the glslc it spawned), Lift, the glows
+ (SelectionGlow, HoverGlow, Occlusion), ChipShadow, ThumbFlash, the
+ lapis ornament and Parallax (with `lapis_plain`, which lapis now is),
+ the message fall and dissolve (MessageAnimation, MessageFall,
+ MessageDissolve), the theme crossfade and Motion with its five
+ flavours; a PDF's scroll lands at once. What stays is the frontends':
+ a scroll glides (the window at the pixel, a terminal by rows) and the
+ window's caret eases, each on its own clock, and CursorBlink, JumpTrail
+ (both frontends), InactiveDim and Pet (the window's) are plain settings
+ the frontends read. docs/render-pipeline.md says what is left.
+- 9P over QUIC is gone: the `-Dquic` build with its OpenSSL, `quic!`
+ dials for `--9p-quic` and Mount, the poll loop that served them on the
+ editor's thread, and their tests. Unix and TCP serve and mount sessions
+ as before.
+- `Placement`, `BootShell`, `LookWord`, `DirLook` and `DiffLook` are gone,
+ with what each kept of pardes before it took acme's ways: its own
+ placement (`Placement pardes`, `SPC c p`), a dragged document closing
+ the boot shell, a word looked at listing every place in a `+Search` (a
+ terminal's word still does), a directory looked at typing `ls` into a
+ terminal, and a patch looked at opening as text (`Diff` on its `+Diff`
+ still shows it).
+- The root ctl reads the settings in DumpConfig's words: one this
+ frontend lacks is a `# Word unsupported` comment, which a write of it
+ back skips, `Font` is the path or name asked for, `Shader off` says the
+ chain has no file, and `DumpDir` is as it was written.
+- A mount keeps its connection, and sends each walk, open and first
+ read or write together: an operation through it is one round trip
+ (two for a directory or a file of no stated length) where it was six
+ or seven, and a file of known length is read ahead. A large remote
+ file opens however slow the link (reads are timed by their progress;
+ 1.3 MB at 80 ms used to time out). docs/next-daemon.md, phase 6.
+- The daemon also listens on `pardes-replica.sock`, a stream socket `ssh
+ -L` can forward, for the replicated clients to come (docs/next-daemon.md,
+ phase 5): a hello names a session and the client's build, another
+ build is refused in words, and an accepted connection is handed to its
+ session, which so far only welcomes it and answers pings.
+ `pardes --version` prints that build's semantics hash on a second line.
+- `kbdin` and `mousein`, rio's and devmouse's, at the root of every
+ session's file tree: a script types keys (`printf 'ihello\033' >
+ $m/kbdin`) and clicks (`m col row buttons`, Plan 9's bits) as the user
+ does, each write done before it is answered, so the read that checks
+ it needs no sleep. test/fs.py's keys_and_mouse finds where to click on
+ /screen.
+- A pane's `ctl` read ends with its mode, `mode:normal|insert|select|tty`,
+ and `kbdin` takes Plan 9's Kalt, Kshift and Kctl runes before a key.
+- A click on a tag, a column's or the workspace's puts its cursor there
+ in normal mode, where it put it in insert mode: `i` types there, Enter
+ or Tab runs the word under it.
+- `Tty9p` and its `pardes-v9fs` helper are gone (a terminal with the
+ session kernel-mounted through Linux v9fs, a one-off), with their tests;
+ a kernel mount made by hand still works, as the build notes say.
+- The terminal frontend is the tui: `zig build -Dplatform=tui`, its code
+ in `src/tui/` (the binary is still `pardes`, and `--tty` still starts
+ one shell pane in tty mode). The builtin that opens a terminal pane,
+ `Tty`, is `Term` (`SPC n t`); `Tty` still runs it, as acme's words run
+ theirs.
+- One `pardes --daemon` per user keeps sessions, started by the first
+ session and gone once it keeps nothing. `pardes` in a terminal forks
+ its session off and stays as its stub: `Detach` (`SPC s D`), or a
+ terminal that closes, puts the terminal back and leaves the session
+ running in place (no fork of the core, no dump), and the stub ends.
+ `pardes --attach[=name]` in any terminal takes it back there. A
+ window's Detach closes the window and keeps the process;
+ `pardes-gui --attach[=name]` opens it again. A terminal session takes a
+ terminal and a window session a window, and the other is refused in
+ words. The daemon holds a dup of every shell's pty: a session killed
+ outright leaves its shells running, and `Adopt` in another session
+ takes them in as terminal panes (what they showed is gone; a resize
+ makes them redraw). A hangup never ends a session the daemon keeps (it
+ is the terminal's end); TERM and INT do, its shells with it.
+ `PARDES_DAEMON=off` runs a session as before.
+- The frame wire goes: `src/detached/server.zig`, `client.zig` and the
+ cell frames of `wire.zig`, the frontends that drew a session's screen
+ from them, the smallest-common-grid rule, and the `Attach` word that
+ switched a session's own terminal to another. A `--detach` session is
+ now a terminal (or window) session with none attached yet. Attaching
+ from another machine is gone until the replicated clients
+ (docs/next-daemon.md, phase 5); `wire.zig` keeps the framing, the hello
+ and the input events for them.
+- One PNG and one JPEG decoder in a binary: images decode through wuffs,
+ the decoders ghostty uses (ghostty-vt already links them), and stb_image
+ keeps only the other formats. stb's own inflate and image writer go, as
+ does SDL's private stb_image, which pardes never called: 73 KB less code
+ in the tty binary, 151 KB in the GUI. `zig build shared-libs-check` (run
+ with unit-test) fails if a second copy of one of them comes back;
+ docs/shared-libs.md lists what is shared and where one copy was not
+ possible.
+- Kitty graphics in a terminal pane take every medium kitty and ghostty
+ do: a file (`t=f`), a temporary file (`t=t`) and shared memory (`t=s`)
+ beside direct data, so `kitten icat` no longer falls back to base64
+ through the pty. A program asking about many images in one write
+ hears every answer, where answers past 256 bytes of one read were cut
+ off mid-sequence (now 4 KiB, and an answer that does not fit is dropped
+ whole). Animations (`a=f`, `a=a`) play, frame by frame, where only the
+ first frame was drawn; and an image placed relative to another
+ (`P=`, `Q=`, `H=`, `V=`) is drawn beside it. `zig build kitty-test` and
+ `zig build kitty-harness` check the protocol through a terminal pane.
+- ghostty moves to its 1.4.0 release (from a main commit six days before
+ it; libvaxis and uucode stay on the commits it pins). A terminal's
+ `clear` (ED 3) now takes away the kitty images placed on the history it
+ erases, where they used to come back at the top of the pane; a
+ cancelled kitty command (CAN, SUB) no longer runs; and a command whose
+ output ED 3 erased after it finished reads as not whole, with no text,
+ instead of the rows that took its place. An edited copy or a selection
+ whose top row ED 3 erased now goes, as the copy already did when its
+ rows were pruned, instead of moving to the top.
+- Window mode (Ctrl-w, SPC w) takes `d` and `c`: `d` is Del on the
+ outlined pane, asking k or j between two panes as SPC d does, and the
+ outline moves to the pane that took the rows; `c` collapses it. The mode
+ stays on, so `Ctrl-w d j d` closes two panes. `d` and `c` are no longer
+ pane labels.
+- Del's question (`give space to k above j below`) shows only once 400 ms
+ have passed with no answer: SPC d j typed straight on closes the pane
+ without the band flashing, and a hand that stops after SPC d gets it as
+ a hint.
+- One store every window shares, `$XDG_STATE_HOME/pardes/store` (100 MiB
+ at most, the oldest falling off): Recent is every window's files, read
+ again when it is used, where each window used to overwrite the others'
+ list in `recent` (read once into the store, then left alone). Panes lists
+ this session's closed panes after the open ones, `(closed)`: Enter, or a
+ Look at its `@pN`, brings one back beside the pane that took its rows,
+ as it was (a scratch's text, a terminal's history above a new shell, an
+ unsaved file's text).
+- Callstack (gc or Space l b) opens a readable static call hierarchy with
+ outermost callers first, tree-sitter signatures, depth guides and clickable call sites.
+ `gc` replaces the old move-to-viewport-center binding.
+ CallstackDepth sets the caller depth at runtime (1–64, default 8).
+ Snippets sit below their locations, the tree's corners rounded; a tree
+ bigger than one answer holds (about 100,000 rows) stops there and says so.
+ Signatures use syntax colors; only calls to the queried function get
+ background emphasis, and tree guides continue through multiline signatures
+ and wrapped rows. Cross-directory call locations use shorter relative paths.
+- The language words ask an `index.scip` first (SCIP, scip-code.org): the
+ nearest above the file answers Def, Refs, `gi`, Subtypes, Supertypes,
+ Symbols, WsSymbols, Hover, Callers, Callees and Callstack where it knows
+ the symbol, at once and with no server; the language server answers
+ what it does not know, a pane's unsaved changes, and Diagnostics,
+ Rename, CodeAction, format and completion. `Index` runs the file's
+ indexer at the project's root (`rust-analyzer scip .` for Rust), and
+ Lspinfo starts with the index the file would read.
+- Lspinfo's `+Lsp` no longer says `backend: lsp-client`, a line left from
+ when Zig files had an in-process backend of their own. A language word
+ in a file no server speaks for names the file (`Hover: no language
+ server for notes.txt`).
+- A terminal follows the shell at its prompt (the tty's foreground group),
+ not the process pardes started: a shell that re-execs itself under a
+ wrapper (fish's `exec 9ns --mntgen -- fish`) no longer leaves the pane
+ in its first directory, where `b/c.txt` printed by `fd` after a `cd`
+ looked up nothing.
+- Workspace, column and pane tags share a tighter text inset.
+- A diff paged into a session (`git show | pardes -`) opens its `+Diff`
+ alone; the `+Pager` no longer stays folded under it.
+- The workspace Pet wanders to a random spot, rests there a few seconds,
+ then sets off for another; the frog is drawn side-on and hops.
+- A drag started on a file's line numbers copies only the text; the
+ numbers no longer come along with the first line.
+- The GUI's scrollbar thumb moves by the pixel and follows a smooth
+ scroll as it glides, instead of jumping a row of the track at a time.
+- A click in another pane glides the cursor once, straight to where it
+ was clicked, no longer first to that pane's old cursor.
+- Esc in a raw terminal goes back to the previous pane, as it does from
+ normal mode; Shift-Esc sends the program its Esc. `ProgramEsc on`
+ restores the old way round. A terminal without the kitty keyboard
+ protocol sends Shift-Esc as a plain Esc, so under one a program gets
+ no Esc unless ProgramEsc is on.
+- Window mode (`Window`, Ctrl-w or SPC w): each pane's tag box shows a
+ letter in place of its mode, and the focused pane's tag is outlined; h/j/k/l move the outline without
+ giving any pane the keys, Enter or Esc focuses the outlined pane, `:`
+ its tag, and a
+ pane's letter jumps straight to it. Ctrl-w h/j/k/l and SPC w h/j/k/l
+ no longer move the focus at once; on a column or workspace tag Ctrl-w
+ h/j/k/l still walk the tags.
+- On Linux the GUI's pointer is the desktop's cursor theme (niri's or
+ XCURSOR_THEME's, at its size and scale): its default arrow, its hand
+ over a link, and its move cursor while a grip carries a pane, which
+ the plan9 theme draws as acme's box. Elsewhere acme's own bitmaps stay.
+
+- Built with Zig 0.17. A bare `zig build` still puts the binaries in
+ `~/.local/bin`, now as a copy beside the prefix, which `--prefix` no
+ longer prevents; `-Dhome-install=false` does. ghostty, libvaxis, uucode
+ and SDL (3.4.18) move to their Zig 0.17 versions, and tree-sitter to a
+ 0.28 development snapshot.
+- A terminal's edited copy goes when the program clears the screen,
+ instead of staying where its rows were.
+
+- n/N follow Helix search registers, counts, wrapping and select mode.
+ `*` sets a search from the selection; `Alt-*` omits word boundaries.
+ The location ring remains as LookNext/LookPrev (Space j n/p).
+
+- A file a language server speaks for (by its extension) has `Def` and
+ `Refs` in its tag: the definition and the references of the symbol at
+ the cursor, which `gd`, `gr` and a Ctrl-click run too. Chorded 2-1, they
+ ask at the selected symbol instead, its occurrence nearest the cursor.
+- A scroll in the window never moves the tree-sitter context rows: the
+ body glides under them.
+
+## 0.24
+
+- Edit runs all of acme's commands: `< | >` through your Shell (one undo
+ step, a failure changes nothing, its stderr in +Errors), `X` and `Y` over
+ the open panes, `b B D e r w f` and the `"re"` file address. A pane a
+ running filter changes refuses Del, Undo, Get and Zerox (busy), and a
+ flushed or dropped Edit write kills its commands.
+- Edit's `w` to a file changed on disk is refused once, as Save is
+ (`w again to overwrite`).
+- A look at a directory opens a pane listing it, as acme's directory
+ window does: its entries in columns, a directory's marked `/`. A look at
+ an entry opens it from there, and `Get` or a look at it again reads it
+ again. `DirLook terminal` types `ls` into a terminal there, as before.
+- One Look path: Enter, Tab and a bare Look take what a click at the
+ cursor takes, a diff line's address included, and an event reader hears
+ them as clicks.
+- Get reads a pane's file again, asking once over unsaved edits; `Get file`
+ loads another, and Undo puts the old name and text back. Load is Restore.
+- Putall saves every pane with unsaved edits. Zerox opens a second pane on
+ the same buffer, kept across Dump and Restore.
+- `Tab N` sets the tab width, 1 to 16. `Incl dir` adds directories a look
+ tries for a name found nowhere else, `<stdio.h>` too.
+- Enter, `o` and `O` keep the line's indent as it is, tabs included, as
+ acme's autoindent does.
+- Back and Forward (Ctrl-o, Ctrl-i, SPC j o, SPC j i, the mouse's side
+ buttons) keep to the focused file first; `JumpScope all` walks every
+ place in order. `n` in a command pane walks its own errors first.
+- Alt/Option-click is B2 and Super/Cmd-click is B3, sweeps included, for
+ one-button mice and trackpads; a terminal passes only Alt.
+- Shift-Esc always backs out to the previous pane, in every mode; Ctrl-b
+ alone toggles raw. SPC q quits, as Exit.
+- A +Pager keeps its program's colours; `PagerColor off` pages it plain.
+- Every pane gets `$PARDES_MOUNT`, the session's directory under
+ `9ns --mntgen`.
+- Editing a terminal's text in normal mode says it edits a copy, which Tab
+ or B2 runs and the program's next drawing replaces.
+- A path typed into a tag survives Esc: Enter renames, a second Esc drops
+ it.
+- The init file reads past a BOM, says each failing line with its number,
+ skips settings only the other frontend has, and applies when saved in a
+ pane.
+- `pardes --wait` with no FILE or a gone session, and `--detach` over a
+ name in use, say so in words.
+- File reads say `is a directory`, `permission denied` or `not a regular
+ file`; a device is never read to the stream limit.
+- A dump no longer embeds a picture or PDF that is on disk; Restore reads
+ it from there.
+- Fixed: a mouse report past the window's top or left edge crashed the
+ terminal frontend, losing unsaved text.
+- Fixed: an unsaved pane restored from an older dump could Save over a
+ newer file without asking.
+- Fixed: a PDF with a JPEG image crashed ReleaseSafe and Debug builds.
+- Fixed: the window drew every frame after focus moved to a PDF while the
+ cursor glided.
+- cloud9's 9ns writes in parallel, so an Edit filter can write its own ctl
+ through a mount without waiting, and drops a dead mount's entry off its
+ serving thread.
+- The docs are a website, pardes.0x4200.cafe (`zig build site`): recordings, a builtins
+ glossary, a theme gallery, and static builds with checksums. pardes is
+ ISC-licensed.
+
+## 0.23
+
+- Restore reads a clean file pane from disk, so a file changed since the
+ Dump comes back as it is now. An unsaved pane keeps its text, and if its
+ file changed on disk its first Save asks before overwriting. A dump holds
+ an unsaved pane's text once, and a clean pane's not at all.
+- A Rename the server answers in this file alone, while another open file
+ of its language still says the old name, is previewed and not applied
+ (zls renaming at a declaration does this).
+- Grep and Find say when a limit cut their results (hits, bytes read,
+ entries walked, directories skipped), never claim not found when one
+ hid a match, and a failed search leaves the +Search as it was.
+- Language servers go with their children when reaped and when pardes
+ exits.
+- A PDF's fit and tint and a pane's collapse are read in its ctl and kept
+ in the dump; a PDF hit that is not on the page is a miss.
+- `pardes --wait FILE` with only $PARDES_9P set waits in that session.
+- A `./x` look that finds nothing is a miss; a line over 1 MiB is refused
+ once; DumpDir, Mount dial addresses and /pager given a file are refused
+ in words.
+
+## 0.22
+
+- Grep and Find skip a directory they cannot open and keep every other
+ hit; the list ends saying how many were skipped.
+- Rename, references, symbols and call hierarchies first tell the language
+ server about every open file of its language, so a cross-file Rename
+ previews every file you have open. The preview is the pane the Rename
+ answers, and Lspinfo says `not started yet` before a server's first query.
+- acme's address and argument refusals reach a mount as EINVAL (cloud9
+ 552584a), and unit tests now fail on any EINVAL or ENOENT refusal whose
+ words a mount would read as something else.
+- /pager expands `~`, resolves the path, refuses a directory you may not
+ write, and a refused write leaves no stale answer.
+- A terminal's Petscii survives Dump and Restore; Petscii, Ascii, Palette,
+ PdfFit and PdfTint take the value to set.
+- `:N:H` works on a PDF pane, `@pN:` looks resolve, a line past the end
+ reads the same everywhere, and word looks share their directory's
+ +Search.
+- The reference carries the full errno table, and the scripting chapter an
+ insert-after-a-match recipe.
+
+## 0.21
+
+- A command pane is leased to the exec open that started its command while
+ that open stays open: another client's command in the same directory
+ gets its own pane, so a script reads only its own output.
+- /index names a command's pane `cmd`, not `term`.
+- A terminal whose full-screen program was killed is idle again once the
+ shell draws its prompt, and the next run reads its output whole; busy
+ there answers `busy alternate screen`.
+- `--` ends the options. A name under a directory you may not search or
+ write is refused, permission denied, and a Save there says so.
+- Restore and ThemeFile failures say why in words, a ZON one with its
+ line; a failed ThemeFile changes nothing, on a Restore too.
+- /pager refuses a missing or relative directory; `Tty+bash` works on a
+ pane ctl; msg records carry no clock; more refusals reach a mount as
+ EINVAL.
+- The scripting recipes make their own pane and work through its look and
+ exec, and the Traps say why the root ones are shared.
+
+## 0.20
+
+- `pardes -` asks the new root file `/pager` for its +Pager and reads the
+ answer on the same open, so another client's command meanwhile can no
+ longer take the paged text into its own pane.
+- `--wait` waits on the pane its own look answered, so a file whose name
+ has a backslash is waited on instead of returning at once.
+- The scripting recipes read look and exec on the open they wrote; the
+ reference documents `/pager`, that Grep is a literal search, and that
+ Delcol opens no +Unsaved.
+
+## 0.19
+
+- `pardes -` writes its text through one open of the body: input past
+ 8 MiB used to keep only its last part. Any size up to 256 MiB arrives
+ whole, and past that it is cut with a note.
+- A ThemeFile that fails to load changes nothing, and Restore and `-l`
+ load a dump's ThemeFile again.
+- A 9P look drops a trailing `:` as a click does, and a look that fails
+ leaves open no file it opened.
+- pty/run after `clear` answers what was printed from the clear on.
+- A log follower keeps the records queued just before a Restore.
+- Too many open files is EMFILE through a mount (cloud9 12d78be4).
+- A detached session with no frontend sizes its ptys in pixels too, so
+ terminal images work there.
+- addr, dot and limit on a pane with no text, and a bad `size`, are refused
+ in words. The scripting chapter shows a bash event helper.
+
+## 0.18
+
+- A bare `:N` or `:N:M` look addresses the pane it is looked from, from a
+ click, `Look`, 9P or an event write-back.
+- `pardes -` keeps one `+Pager` per directory and refills it; it no longer
+ takes the keyboard, collapses `\r` progress lines, drops NUL and BEL, and
+ shows a diff (`git diff`, `git show`, `git log -p`) as a diff. A text it
+ cannot show goes to stderr with why. systemd tools page through it too.
+- A pane's `event` gives a record in pieces across short reads, so a shell
+ `read` loop works.
+- A `sel` write leaves the written text selected. A PDF's body keeps its
+ lines. `+PdfSections` rows are `file:PAGE:SECTION`. Event write-backs
+ check their origin and numbers. A bad setting value is quoted.
+- Every recipe in the scripting and setup chapters runs as written.
+
+## 0.17
+
+- A terminal pane draws the images its program sends with the kitty
+ graphics protocol: yazi's image and PDF previews show inside pardes. The
+ GUI draws them; the tty passes them to an outer terminal that speaks
+ kitty graphics, and draws them as PETSCII where it does not.
+- `Petscii` toggles a terminal pane's images to PETSCII and back, and
+ `TermImages real|petscii` sets it for new terminals.
+- A terminal answers the pixel size queries (`CSI 14/16/18 t`) and its pty
+ carries pixel sizes, so programs scale images to the cell.
+
+## 0.16
+
+- Releases are numbered 0.N from here on; this changelog's earlier 0.0.N
+ headings read 0.N.
+- `pardes -` reads stdin into a `+Pager` pane, and a terminal's `PAGER` and
+ `GIT_PAGER` are `pardes -` unless your environment sets them: `git log`
+ and `man` open as panes, and a paging command through `pty/run` no longer
+ waits. Command panes page through `cat`. `Pager off` keeps your own pager.
+- A command run from a pane gets `$winid`, that pane's serial, as acme's do.
+- A PDF page taller than a raster is drawn at the size it is shown, in bands
+ around the screen, instead of being squeezed into 4096 rows and enlarged:
+ tall pages are sharp, and memory stays bounded.
+- A diff line's look, whether clicked, written to `look` or written back
+ through `event`, goes through one expansion; a blank context line works.
+- `log` stats 0 and 9ns opens files of length 0 as streams, so `cat` follows
+ the log through a mount.
+- A second `--detach=NAME` while NAME runs says so. `/index` escapes control
+ bytes. `file:0:0` is refused. An event reader of a closed pane reads EOF.
+ `+Unsaved` lands in a directory that exists. `pardes NEW` refuses a
+ directory it may not write.
+- Docs: a "Setting up your environment" chapter (9ns, the editor and pager,
+ yazi, shells, language servers, fonts, plan9port) after the guide.
+
+## 0.15
+
+- The documentation is one Typst corpus in `docs/typ/`: a guide (a short
+ walkthrough: modes, buttons, tags, the active column, looks, terminals,
+ diff review), the one-page cheatsheet, scripting over 9P, a per-file
+ reference, themes, and building for contributors. It builds an A4
+ cheatsheet, a book PDF and an HTML page; README.md, the served README and
+ the 9P skill are short pointers into it. The old docs/*.md are folded in.
+- The tutor follows the guide's order, its key and tag errors fixed; a test
+ fails when the tutor or any docs/typ file names a word, key, leader path
+ or default tag that no longer exists.
+- The cheatsheet draws mouse buttons as a mouse with the pressed part
+ filled, keys as one pill per press (`Ctrl+w`, `g›g`), and its pairs as
+ tables.
+
+## 0.14
+
+- A pane's `tagexec` reaches an event reader holding the pane as an `x`
+ record, as a click in its tag does.
+- A shell command from the workspace or a column tag runs as a command pane
+ in the session's directory, never typed into the terminal with the
+ keyboard.
+- A PDF's `:N` look turns to page N. `>` into an empty body is one undo
+ step. A file never on disk comes back clean from Restore.
+- `pardes @p999` from a pane is refused when the session has no such pane;
+ forwarding failures are sentences.
+- `name` takes any bytes but newline and NUL, so what it reads writes back.
+- A session removes its 9P socket and its prompt rc files when it exits or
+ is killed, and sweeps those of dead sessions at start.
+- Generated files (`data`, `xdata`, `index`, `layout`, `recent`,
+ `listeners`, `screen`) stat 0; `Edit w` fails in words; `/os` rename is
+ permission denied; with several REPLs bound the pane always asks; a URL
+ look in a detached session with nothing attached opens no browser.
+- Docs: how a relative look resolves (the pane's directory, then the jump
+ list's), `event` takes one reader, and bash's `printf` writes a mounted
+ ctl one line at a time.
+
+## 0.13
+
+- A one-page A4 cheatsheet, built from Typst sources in `docs/typ/` (`zig build cheatsheet`); a test fails when it names a word, key or tag that no longer exists.
+- A look on a diff line is the look of the `path:line` it names, exactly as
+ if that text were selected by hand: the same resolution, placement and
+ errors. A patch cached outside any checkout opens the file the way a
+ hand-selected path would, and the diff's own path finding and its
+ messages are gone.
+
+## 0.12
+
+- A selection deep in a very long line no longer slows every frame: a 5 MB
+ line with the selection at its end redraws in milliseconds, not seconds.
+- `Joincol` is refused when the joined column cannot give each pane its tag
+ and 2 rows. Save on a PDF or image pane is refused. A builtin made for
+ one kind of pane (Petscii, PdfTint, Togglettymode, …) is refused on any
+ other; `Mode` and `TreeContext` say why when they cannot act.
+- After `ThemeFile`, `/ctl`, DumpConfig and a Dump read `ThemeFile <path>`.
+ DumpConfig's unsupported settings are `# … unsupported` comments, so the
+ whole report writes back to `/ctl`. Every bad setting value names what
+ the setting takes.
+- A refused write to `dot` changes nothing; an edit that changes nothing
+ makes no undo step; the jump list never holds one place twice in a row;
+ `Jumplist` refills its one `+Jumps`; a look miss cuts a long path in its
+ middle.
+- A look past a PDF's last page is a miss; PdfSections on a PDF with no
+ outline says so; a Rename that finds nothing says so and fails; a theme
+ file error names its path; Recent keeps PDFs and images, and an open
+ file's row is where its dot is now.
+- Over a program that tracks the mouse, B2 and B3 are pardes's execute and
+ look again, sweeps and chords included; Shift-B2 and Shift-B3 go to the
+ program as its buttons 2 and 3. B1 and the wheel stay the program's, and
+ Shift keeps them pardes's.
+
+## 0.11
+
+- A look on a diff names a file as the repository does: git's `a/`/`b/`
+ (or mnemonic `c/`, `i/`, `w/`) is dropped only where both paths of the
+ `diff --git` line carry one, a `--no-prefix` diff's real `a/` is kept, a
+ plain `diff -u`'s names are as written, and a missing file is said by
+ that name (`Look: src/x.zig: no such file here`).
+
+## 0.10
+
+- A 9P write never moves dot's end: scrolling written text into view moves
+ only the view, and dot shifts as acme's textinsert shifts it, so a `sel`
+ write after a `body` append replaces only what was selected.
+- A restored pane whose file is gone from disk comes back dirty.
+- A 9P look keeps its leading blanks, so a diff's context line opens its
+ file. `diff -u` in a command pane has its timestamps cut too. A deleted
+ file's lines all say "deleted by this diff".
+- Focus reports reach a terminal's program when focus moves over 9P. An
+ empty-range event write-back expands as a click would.
+- Exactly 4096 bytes fit in a tag; an addr, dot or limit pair past the text
+ or out of order is refused, not clamped; `name` refuses a directory; a
+ rename through a mount is EPERM; a refused placement spends no serial.
+- A terminal's word looks share one `+Search` per directory. `Save path`
+ logs its `save`. Restore logs the absolute path it read.
+
+## 0.9
+
+- A terminal's program that tracks the mouse gets its clicks, drags and
+ motion as well as its wheel, in the format it asked for; hold Shift for
+ pardes's own select, execute, look and scrollback. Mouse reports carry
+ Shift, Alt and Ctrl.
+- A program that asked for focus reports hears when its pane or the window
+ gains or loses focus. Every paste into a terminal is bracketed when the
+ program asked, with control bytes turned to spaces. The GUI's F1-F24,
+ Insert, Print Screen, Scroll Lock, Pause and Menu reach terminals.
+- A diff reads as the code it changes: a `.diff` or `.patch` file, and a
+ command's output that is a diff (`git diff`), colour each hunk in its
+ file's language, its old and new side each parsed whole, and tint added
+ and removed rows to the pane's edge with their `+`/`-` in the tint's hue.
+ Only the hunks in view are parsed, once each.
+- A right click on a diff's `+++`/`---`/`diff --git` line opens its file,
+ on a `@@` line the new file at the hunk, and on a hunk line's `+`, `-` or
+ space the new file at that line (a removed line: where it was). Paths are
+ the repository's; a file not here says so and opens nothing.
+- A write through a mount that fills a writer's buffer (a multiple of 4096
+ bytes) keeps its cut last line for the next write, so `seq … > exec`
+ runs every line once.
+
+## 0.8
+
+- `~` and `~/` mean the home directory wherever a path is taken: look
+ (`~/x:12`, `~/x:/re/`), `name`, `Save`, `ThemeFile`, DumpDir, Restore.
+- `pardes --wait` on a new file waits on the pane it made, however fast
+ that pane is saved and closed. A session's socket appears only once it is
+ listening, so an early client is never refused.
+- A wheel over a terminal whose program asked for the mouse goes to the
+ program, as a report in the format it chose, or as arrow keys on the
+ alternate screen with alternate scroll: codex, htop, less and vim scroll.
+- `pardes FILE` in a pane whose session answers never starts a nested
+ editor: a refusal is printed and it exits 1. A tty pardes killed by
+ SIGTERM or SIGHUP puts its terminal back first.
+- A 9P connection holds up to 128 waiting reads, and refuses the next in
+ words; 9ns (cloud9 705be665) no longer deadlocks a mount under many held
+ reads.
+- A backward search along one long line takes time in its length, not its
+ square. A detached session no client watches draws no frames: 50 MB of
+ output through `pty/run` takes 11 s, not over 30.
+- Save makes its file's missing directories, for its own name and `Save
+ path` alike. `pane/new` takes rows from another column before refusing.
+- With no pane at all, the root `look` opens its file and the root `exec`
+ runs in the session's directory. A refused `Newcol` logs only its error.
+- `Lspwhy` explains the last query in its own file and place; every `+Lsp`
+ answer shares one pane per directory.
+- DumpConfig's information lines start with `# `, and a line starting with
+ `#` runs as nothing. `winsize` refuses fewer than 2 rows. `look file:3:0`
+ is refused. `Kill X` with nothing running is a message, not a failure.
+ An event write-back needs no trailing newline.
+
+## 0.7
+
+- `lapis` draws its cells unblended and each plaque pixel once: about a
+ third less GPU time a frame at 4K, pixel for pixel the same. `lapis_plain`
+ is lapis on flat grounds, keeping its gold frames, plaque shadows and
+ file-name shadow.
+- Fixed a crash at startup when the 9P socket path is longer than the
+ system allows, and a leak when a terminal pane closes.
+- Pane, column and workspace tags share one set of write checks: the 4096
+ byte limit, control characters, and a refused `>` write leaves the tag as
+ it was. Column and workspace tags read without a trailing newline.
+- A control character in a write to any ctl file refuses the whole write.
+- Restore never reuses a column serial; the log announces a pane's `new`
+ before anything else about it.
+- `DumpConfig` prints each setting as the ctl word that sets it, and
+ `unsupported` for one the frontend lacks.
+- `New` and `Tty` run from the workspace and column tags over 9P, with no
+ panes too; `Help` and `Find` there act in the session's directory.
+- `pardes NEWFILE` forwards into a directory that does not exist yet; Save
+ makes it. The Tutor pane is `<dir>/+Tutor`.
+- Long-path errors keep their reason; `name` refuses a component over 255
+ bytes; regex refusals of an unanchored branch say why; acme's `Tab`,
+ `Indent`, `Local`, `Incl` and `Abort` are refused, not run as commands.
+- `Lspwhy` explains the last language-server query, whatever its kind.
+- Bulk body writes over 9P are about 15x faster per 60 KB write.
+
+## 0.6
+
+- A middle or right sweep in a column tag or the workspace tag runs or looks
+ up the swept text on release, highlighted while it is held, as in a pane's
+ tag and as in acme; a press used to act on the word under it at once.
+- `Config` (`SPC f c`) opens the startup file, `init`, in a pane, or goes
+ to its pane when it is open. With no file yet, it opens an empty pane of
+ that name, and Save writes it, making the directory first. The settings
+ report `Config` used to open is `DumpConfig`, in a `+DumpConfig` pane.
+- The workspace tag reads `… Dump Themes Config Debug Exit`: `Themes` in
+ place of `NextColor`, which stays a builtin, and `Config` beside it. A
+ workspace tag you edited, and one a dump kept, stays as it is.
+- F1-F25, Insert and the keypad reach the GUI's terminal panes too: one key
+ map serves the tty, the GUI and the board.
+- A session restored from a dump is built as a fresh one is: its column and
+ workspace tags hold several selections again, and 9P mtimes are real.
+- Zig files use `zls` from `PATH` as a language server like any other; the
+ in-process ZLS backend is gone, and the binary is about 9 MB smaller.
+- Dumps and init files from before 0.0.4 no longer load their old tag
+ formats: a restored pane's tag tail is read only from `tag_tail`, and an old
+ terminal's `TTY` tag or raw output tail is not replayed. `ThemeSel`,
+ `FontSel` and `ColumnTags` are no longer recognised in init files or dumps
+ (`Themes` and `Fonts` are the words).
+- The GUI always embeds its shader sources; the prebuilt GLSL copies are
+ gone. `lspprobe` is `zig build lspbench -- probe`.
+
+## 0.5
+
+- Over a slow link the terminal build keeps at most one frame in flight: it
+ asks the terminal for a status report after each frame and draws the
+ latest state when the answer comes back. A 150-step wheel flick over a
+ 60 ms, 250 KB/s ssh link settles in under a second instead of nearly
+ four. A terminal that never answers turns this off after one second.
+- A frame that changes nothing writes nothing, and a blank cell whose ink
+ alone changed is not sent again.
+- Every theme gives a tag's file name, `+Errors` and a terminal's `Tty+`
+ name an accent: a theme that sets none derives one from its own palette.
+ acme's is its navy `#000099`.
+- `Kill` on a command stops the command's shell before its jobs, so the
+ line's next command can no longer start in between.
+- `pardes NEWFILE` inside a pane opens a pane named NEWFILE, as acme's `B`
+ does, and `--wait` waits on it. A launch with no terminal says so.
+- `Newcol` shares out a narrowed column's rows again, or is refused when its
+ panes' tags would not fit.
+- 9P: msize up to 64 KiB; a Dump holds 16 columns; DumpDir makes every
+ missing directory; an error over 128 bytes keeps its reason and shortens
+ the path; a tag write over its limit is ENOSPC.
+- The docs and the 9P skill are shorter, with one home per fact.
+ `zig build monkey-gui` runs the GUI monkey.
+
+## 0.4
+
+- Drive the editor over 9P the way acme is driven. Panes take sam
+ addresses (`/re/`, `#n`, `$-1`, `0/re/`), `L:C` and inclusive `L:C-L2:C2`
+ ranges on `addr`, with `data` and `xdata`; `Edit` runs the sam command
+ language as one undo step. `exec` and `ctl` buffer lines per open, and a
+ line without a newline runs with its write. One rule for failure: a
+ builtin that fails fails the write and logs one `err`, no `msg`.
+- New 9P files: `/layout`, `/tag`, `/tagexec`, `col/<serial>/{tag,ctl,exec}`,
+ `pane/<n>/tagexec`, `/recent`, ask/answer records, and a `size` ctl for
+ detached sessions (160x50 by default). Listings freeze at their open, so
+ a read in several chunks never splices two moments.
+- acme's ctl words (`name`, `put`, `clean`, `dirty`, `del`, `delete`,
+ `dot=addr`, `addr=dot`, `limit=addr`, `mark`, `nomark`, `show`,
+ `cleartag`) are accepted again, done by the files that replace them; a
+ pane's ctl reads acme's fields in acme's order. `Put` saves and `Delete`
+ closes; acme builtins pardes lacks are refused, never run as shell
+ commands. plan9port's `9p write` always truncates, so piping into `body`
+ replaces it: append with `>>` through a mount.
+- Command panes and a REPL binding; `pty/run` runs one line and answers its
+ exit status. Every child starts with default signal dispositions.
+- `Recent` lists recently opened files, closed ones included, and persists
+ in `$XDG_STATE_HOME/pardes/recent`. A Jumplist row for a closed file says
+ `(closed)`. `+Unsaved` lists dirty panes. `ThemeSel` and `FontSel` are now
+ `Themes` and `Fonts`; `Exit`'s refusal opens in an output pane.
+- `pardes --wait FILE` (`-w`) run inside a pane opens FILE there and returns
+ only when its pane is deleted, as plan9port's `E` does: set
+ `EDITOR='pardes --wait'` for fish's Ctrl-O, git and the rest. Without it,
+ `pardes FILE` still hands the file over and returns at once.
+- Only a write logs an `err`: a refused open, create or remove fails with
+ Plan 9 words (`permission denied`, `file does not exist`) and logs nothing.
+- The tag is a full text buffer: multi-line, with undo.
+- Helix keys: the skipped non-conflicting keys, full registers and per-range
+ anchors, checked against the latest helix.
+- Deleting the last column leaves the window empty but for its tag, as in
+ acme. A buffer whose file was deleted on disk counts as dirty.
+- 62 themes in 13 families, each as close as possible to its original,
+ grouped by family in `Themes`; an `acme` theme taken from plan9port's
+ source, with acme's grips, 2 px rules and a 1 px tag rule. Sizes follow
+ display density.
+- GUI motion: `Motion` flavours (crisp, smooth, bouncy, playful, off), `Lift`,
+ a cursor that glides and moves with its pane, smooth scroll, and optional
+ Bloom, Vignette, Grain, SelectionGlow, HoverGlow and Shadertoy post passes
+ that recompile on save. Still passes let the GUI rest; Crt keeps drawing.
+- The terminal: replies to capability queries, malformed escape sequences
+ and lone modifier keys never become typed text; function keys, Insert and
+ the keypad reach terminal panes; a lone Escape is Escape at once; a focus
+ change no longer resends every blank cell.
+- Speed: the theme's chrome is worked out once, not per grapheme; typing
+ tells `g.` where its edit ended; large body and data writes are linear;
+ a pattern that opens with a literal jumps to it. `zig build perf-gate`
+ fails any gesture more than 3x its recorded baseline.
+- Robustness: over-long paths, non-UTF-8 bytes and odd 9P input are refused,
+ never a panic; seeded GUI, core and 9P monkeys (`zig build monkey-9p`)
+ replay and shrink what they find.
+
+- A column can be empty, as in acme. `Newcol` makes an empty column and
+ gives its tag the keyboard; closing a column's last pane, or dragging it
+ away, leaves the column where it was with nothing in it, drawn as its tag
+ over blank space. The `+New` placeholder that used to stand in an emptied
+ column, and the machinery that swapped it out when something else arrived,
+ are gone. Closing the session's last pane now quits.
+- New panes go where acme's makenewwindow puts them: into the active column
+ (the one last typed or clicked in), filling it when it is empty, else under
+ the text of a pane with room to spare, else halving the biggest pane; never
+ into a new column. `Placement pardes` brings back the old rules, which open a
+ first document in a column of its own.
+- A document dragged into the left column no longer closes the untouched
+ boot shell there; `BootShell replace` brings that back.
+- Column tags are always shown: the `ColumnTags` setting is gone, and an
+ init file's `ColumnTags` line is ignored with a message.
+- Carrying a pane or a column by its grip shows acme's box cursor in the SDL
+ shell and a move cursor on the web.
+
+- `Del` takes a side. `Del k` and `DelAbove` give the closed pane's rows to
+ the expanded pane above it, `Del j` and `DelBelow` to the one below. A bare
+ `Del` from the keyboard on a pane with panes both above and below asks on
+ its notice band, and one key answers; a click, a 9P write or a script
+ still closes it at once, rows going up as before.
+- A prompt (Save's path, a search, a pipe) is drawn in the tagline's pitch
+ like the other notices instead of spread one glyph to a body cell, and in
+ the SDL shell every notice chip is ruled off from the body like a tagline.
+- Answer 9P on the connection's task instead of the editor's loop. The core
+ is single-threaded and `pardes.turn` says whose turn it is with it: the
+ editor's by default, given up while it waits for input and while a step of
+ it is out in a syscall, and taken by a connection task to answer a request.
+ A request that would change a pane while a step is out parks in the engine
+ and is retried when the editor rests. So a session can open, read and save
+ its own tree through a mount -- which used to hang it outright, and was
+ then refused by name -- and the name-based refusal, the in-process routing
+ of a mount of oneself and the mailbox that shipped every request to the
+ editor's thread are gone.
+- A notice wider than its pane keeps its tail rather than its head: the end
+ of a message is the file name or the reason.
+
+- Give pty children their own terminal identity. `TERM`, `COLORTERM` and
+ `TERM_PROGRAM` are now written by pardes rather than inherited from whatever
+ launched it, and the child is exec'd with that environment. A macOS `.app`
+ launch supplies no `TERM` at all, so until now `clear` failed, nothing
+ painted a colour, and every cursor-addressing program fell back to printing
+ lines.
+- Answer tty occupancy on macOS. `ttyTaken` had no darwin implementation and
+ said `false` for every pane, which made `Pardes.takesCommandLine` permanently
+ true: a bare Escape in a raw terminal ran the `Last` builtin instead of
+ reaching the child, and `Exec` always believed the pane sat at its prompt.
+ libproc answers it from the tty's foreground process group, and the
+ occupancy suite now runs on both platforms instead of only Linux.
+- Flatten the 9P control tree: `self/` is gone, so `/index`, `/pane/<n>/`,
+ `/screen` and `/os` sit at the root. `/new` is one clone file (reading it
+ makes a pane and answers its serial), `/ctl` takes `look TEXT` and
+ `exec TEXT` in the editor's own command language and answers the serials a
+ command touched, `/log` streams pane events, and each pane gains `name` and
+ `sel` (replacing `rdsel`/`wrsel`); `cons`, `new/` and the `name`, `put`,
+ `del` and `delete` ctl verbs are gone in favour of `name` and `exec`. Stats
+ carry real lengths, modes and mtimes. Sources are served under `/src` only
+ with `-Dembed-sources=true`. The tree code moved from `src/fs.zig` to
+ `src/ninep/`.
+
+## 0.3
+
+- Add pinned tree-sitter declaration context, with optional compact tagline
+ styling and separators between discontinuous source lines.
+- Configure search and LSP result context with `LocationsConfig`. Results use
+ aligned, muted context and navigate actual matches with `n` and `N`.
+- Follow PDF links through Look, with a link cursor and a choice of destinations
+ when a target also names a valid Look location.
+- Remember tagline cursors, distinguish filenames and terminal commands with
+ theme colors, and keep compact tag text, pointer hits and anchors aligned.
+- Reorder columns with aligned, distinctly colored drag grips. Grips leave a
+ small gap before command text; GUI pane indicators center using font metrics.
+- Cycle pane input modes with `Mode`, retain it in terminal tags, and handle
+ keypad Enter in native and attached terminal sessions.
+- Preserve selections through jump history, support mouse thumb navigation,
+ align click and insertion cursors, and mirror terminal mouse selections.
+- Make output location highlighting opt-in and ignore slash-only comment
+ markers during general Look navigation.
+- Use cloud9 for 9P sessions and transports and add Linux mounted terminal
+ sessions with raw terminal key forwarding.
+- Detached sessions now use protocol version 6. Update the server and attached
+ clients together.
+
+## 0.2
+
+- A panic is written down somewhere it survives. Every crash this program has
+ ever had went to stderr and nowhere else, and stderr is the one place it
+ cannot keep anything: in the TTY shell stderr IS the screen, so the trace
+ lands on the grid the terminal is being reset out of and the next `clear`
+ takes it; the SDL and AppKit shells have no terminal at all; a `--detach`
+ session's goes wherever its launcher left it, which is usually nowhere. So
+ the message and the frames behind it are now appended to `crashes` beside the
+ `init` file, under one line naming the build that produced them — version,
+ commit, UTC timestamp, os-arch and pid — which is exactly the set a bug
+ report needs and the set a reporter cannot be asked to reconstruct after the
+ fact. `src/crash.zig` runs inside the panic handler, so it takes no lock of
+ this program's, allocates nothing of its own, and every failure is swallowed:
+ a crash file that could not be written must not become the crash, and stderr
+ still gets its own copy either way. The file carries NO STACK TRACE, and that
+ is measured rather than chosen: `writeCurrentStackTrace` called from a panic
+ handler *before* `defaultPanic` wedges the process at 0% CPU, and
+ `captureCurrentStackTrace` — which looks like the safe half of it — takes
+ `SelfInfo`'s rwlock exclusively on its first call, so a panic inside the walk
+ leaves that lock held and `defaultPanic` waits on it for the life of the
+ process. A crash that becomes a hang is worse than the crash. What makes
+ `defaultPanic` itself survive that is its private `panic_stage`, reachable
+ from nowhere outside `std.debug`, so the frames stay on stderr where they
+ already work. ONE record per process, because the nested panic std's trace
+ printer raises comes back through the handler: the first version of this
+ wrote the real message and then "reached unreachable code" underneath it,
+ which is the panic handler's own second `vaxis.recover()` double-closing the
+ tty — `recover()` never cleared the global saying there was one. That call is
+ guarded now too, in both the panic and the segfault handler, which is a fix
+ older than this file. The AppKit shell got a panic handler of its
+ own in the process: the macOS build roots at `macos.zig`, so the one in
+ `main.zig` had never run there — in the shell with the least useful stderr of
+ the four.
+- A big screen can attach to a detached session. The wire's grid ceiling is
+ 512x128 and no frontend ever clamped to it — the hello carried the window
+ raw — so a 4K display at a small font, which is already past 128 rows, had
+ its geometry refused by the session's decoder as `BadValue`. That path
+ answers with `close(.protocol)` and no `refuse` behind it, so the frontend
+ reported the one thing a bare hangup can mean: "that session hung up on the
+ connect", at a session with all 32 slots free. `client.zig` now asks for the
+ largest grid the protocol carries, which is what its own GEOMETRY note
+ already promises a frontend gets — the session is drawn at its own size in
+ the corner of a bigger window, exactly as when another frontend is the
+ smaller one. A zero geometry is dropped rather than clamped, because the
+ session grid is the smallest common one and a frontend reporting 1 would
+ collapse everybody else: `TIOCGWINSZ` answers 0x0 during a teardown and the
+ tty shell forwarded it, so that was the same mute hangup by another route.
+ The clamp alone would have replaced one bug with a worse one: `max_cols *
+ max_rows` is 65536 and a run's length prefix is a `u16`, so the single grid
+ legal at both bounds is the one grid whose full frame — and an attach always
+ produces a full frame — cannot be described by one run. It panicked on the
+ `@intCast` in a safe build and was illegal behaviour in a fast one. The
+ encoder splits the run instead, which `frameBound` had already paid for, and
+ the protocol version is bumped to 2: the geometry a v2 frontend now asks for
+ is one a v1 daemon panics encoding, so a mixed pair — `zig build` replacing
+ the binary under a running session — meets a `Refusal.version` instead of
+ losing every pane shell the daemon owns.
+- `pardes nosuchfile` opens an editor. It used to return `BadArgs` out of
+ `main`, which std prints as `error: BadArgs` with a return trace under it:
+ indistinguishable from a crash, for a typo, and it left the human with no
+ editor at all. A launch that names nothing now boots one `+Errors` pane
+ filling the window — acme's own vocabulary for output that came from the
+ program rather than from a word somebody clicked — saying `file or directory
+ not found` and the argument AS TYPED, in the directory it was typed in — an
+ output pane's directory is where a `Grep` from it walks, where its `Newtty`
+ spawns and what its `Save` prefills, so a pane rooted at `""` would have
+ pointed all three at `/`. A typo INSIDE pardes is refused by that shell in one
+ line instead: the hand-off block that keeps a pardes from stacking a second
+ full-screen UI inside a pane of the first says in its own comment that a word
+ naming nothing must not get through, and an `+Errors` boot would have made a
+ typo the one input that did. A `chdir` that fails on a directory that really
+ is one is still `BadArgs`: that is a permission problem, not a typo, and the
+ two want different answers.
+
+- The macOS trackpad's two verbs trade places: a two-finger click is Exec and
+ a deep press is Look. Exec is what a hand spends a session doing, so it takes
+ the gesture that costs nothing, and the verb that goes somewhere is worth one
+ deliberate push past the click. Three fingers stay Exec, and that is the
+ hardware rather than a gesture left unused: macOS's secondary click is "click
+ or tap with two or more fingers", so a three-finger click arrives as
+ `rightMouseDown` exactly like a two-finger one, and the resting count is the
+ only thing that keeps either of them off Look. `pressureChange` still
+ releases the click in flight before the new button goes out, which now steps
+ around acme's 1-3 chord (Paste) where it used to step around 1-2 (Cut). Look
+ by finger count is gone, so a Mac with "Force Click and haptic feedback" off
+ — or a trackpad with no force sensor — reaches it through a real mouse's
+ right button, the `Look` builtin, or Enter on the word. `trackpad.snap`
+ asserts all of it without a trackpad, because `NSTouch` and the pressure
+ stages have no public constructors and `Trackpad` is therefore pure policy a
+ script can name finger counts to; the swap left every golden screen
+ byte-identical under the other gesture, which is what shows the two paths
+ were exchanged and nothing else moved.
+- A filtered terminal costs what an unfiltered one does. `Filter`'s second
+ stage asked `RGB.contrast` for every cell it painted, and that call ends in
+ `std.math.pow` six times over — a libm round trip per cell, per frame, to
+ re-derive a ratio against a background that had not moved. The indexed path
+ takes a `u8`, so all 256 of its answers are now enumerated once per pass,
+ after the two default roles are fixed and before the first cell is read;
+ what a cell names is an array index into them. Only truecolour, whose
+ 16.7M inputs cannot be tabulated, still reduces, and the direct-mapped RGB
+ cache is what keeps that cheap. Tracy over the AppKit shell, ReleaseFast,
+ 190x56: the recolour pass falls 3.09 ms to 0.130 ms and the whole frame
+ 3.37 ms to 0.299 ms. The luminance table is comptime-evaluated from
+ ghostty's own expression and a test pins it to `RGB.luminance` and
+ `RGB.contrast` exactly, across every channel value and all 65 536 palette
+ pairs, because the filter's decision is a threshold comparison where one
+ ULP is a different colour on screen.
+- A pardes launched from the Dock finds the same programs a pardes launched
+ from a terminal does. LaunchServices hands a bundle launchd's own
+ environment, whose `PATH` is `/usr/bin:/bin:/usr/sbin:/sbin`, and every pty
+ shell, `|` filter and language server inherited it — so `yazi` in
+ `/opt/homebrew/bin` was missing in the app and present in the same build run
+ from a shell, which reads as "the Dock build is broken". `host_io.Shell`
+ composes `/etc/paths` then `/etc/paths.d/*` in the order `path_helper`
+ reads them and adopts the result before the first fork in all four native
+ hosts. It appends, so an inherited entry is never demoted and a configured
+ `PATH` is left byte-for-byte alone: the rule is that only a `PATH` nobody
+ configured gets repaired.
+- Language servers other than ZLS start on macOS. The protocol client opened
+ its control socket with `SOCK.CLOEXEC`, which Zig defines for Linux and
+ which Darwin answers with `EPROTONOSUPPORT` — so `socketpair` failed before
+ any fork, every spec in the table reported "no server", and rust-analyzer,
+ clangd and gopls were unreachable in every macOS build. It is a plain
+ socket plus `fcntl(FD_CLOEXEC)` now, the route `fuse.zig` and `nested.zig`
+ already used. Verified end to end against a 200-crate Rust workspace:
+ rust-analyzer indexes, and `gd`, `document_symbols` and `hover` answer.
+- `SPC l i` reports what the language backends are doing in the macOS app,
+ and `|` filters a selection there. Both effects were unimplemented host
+ methods — `lsp` and `pipe` were absent from the AppKit vtable, so the core
+ answered its own empty answer and the panel rendered blank while a sort
+ filter silently did nothing. The snapshot-plus-worker body each shell had
+ its own copy of is one module (`src/lsp_host.zig`), and the in-flight pipe
+ table is `selection_pipe.Tasks`; all three native shells share both.
+ Unsolicited server news ("rust-analyzer indexing 45%") reaches the message
+ row because the status sink is registered rather than merely defined.
+- Animation runs at the speed it claims. `pardes_animation_tick` advanced one
+ scene frame per callback and reported time as `frame_count / 60`, so
+ animation time was a count of how often the callback happened rather than
+ how much time had passed — and the AppKit chain re-armed `asyncAfter(.now()
+ + 0.016)` only AFTER the previous frame's work, making the real period 16 ms
+ plus all of it. Motion ran at roughly three quarters of wall clock,
+ unevenly. The tick measures elapsed monotonic time and spends it in whole
+ 16 ms steps, banking the remainder, so a late callback advances two frames
+ instead of stretching one; the arithmetic is a pure function with its own
+ tests, no display attached. On macOS 14 and later the run is driven by one
+ `CADisplayLink` phase-locked to vsync instead of a chain rebuilt per frame.
+- A filtered terminal's colours are mapped in two stages, and the second one
+ keeps text off the page. `Filter` reduces every colour to its nearest
+ canonical xterm key and reads that key out of ghostty-vt's theme-derived
+ 256-colour projection — a comparison of RGB triples, which knows about hue
+ and nothing about the background. The projection is generated FROM the
+ default foreground and background, so its cube corners are those two
+ anchors, and the nearest key to a truecolour extreme was therefore the
+ background itself: `\x1b[38;2;255;255;255m` on acme's `#ffffea` paper
+ resolved to `#ffffea`, a WCAG ratio of 1.000, text painted the colour of the
+ page under it. Every curated theme owned such a key — 231 on the light one,
+ ANSI black on both dark ones, which is a bare `\x1b[30m`. The two default
+ roles are now mapped first and named as the anchors they are, and every
+ other FOREGROUND has to clear `config.tty_filter_min_contrast` (1.5) against
+ the mapped background; one that cannot is not mapped at all, and takes
+ whichever anchor is still visible there. Backgrounds are exempt, because a
+ background is the page the floor is measured against. Measured across the
+ curated three the floor refuses 12, 16 and 7 of 256 keys, where a WCAG
+ body-text 4.5 would refuse 61, 154 and 91 and flatten the palette.
+
+## 0.1
+
+- Pane taglines sit where they do in the SDL window. The macOS shell had its own
+ copy of the band geometry and it only ever centred the shorter band in its
+ body-sized row, which is the exact case `gui_topbar_pane_border_px` exists to
+ prevent: the topbar's unused half-band and the first pane tag's unused
+ half-band meet, and the window background shows through the seam — 4 physical
+ pixels at the default 82%, 10 at 50%, 14 at 30% on a 20-pixel cell, so it grew
+ as the tagline face shrank. The rule moved into the core and both pixel hosts
+ now call it: row zero bottom-aligned, the first pane-tag row top-aligned, the
+ two joined by the themed rule, rows between centred, and a `Tagbottom` band on
+ the last row flush with the window edge with the sub-cell strip beneath it
+ painted in the band's own colour instead of the page's.
+- Files reload themselves on macOS. The tty shell, the SDL window and the
+ detached daemon all watched with `inotify` and therefore watched nothing off
+ Linux: an edit made outside pardes never reached the pane, and a PDF replaced
+ on disk kept rendering the old inode. They now share one mark/reconcile
+ transaction over two kernels — `inotify`, or a `kqueue` whose queue the hosts
+ wait on and poll exactly as they did the old descriptor. A macOS mark is two
+ filters, because a kqueue directory filter reports its entries changing and
+ never a write to a file already inside it: the parent follows rename-over
+ saves, the file catches in-place writes, and the file filter is re-armed once
+ a rename-over has moved the inode. That is the same pair the AppKit host's
+ DispatchSources already used for the same reason.
+- Snapshot captures are deltas against the previous capture in the same script,
+ and a scripted click may name a word (`press middle @Del 2`, `@Del#2` for the
+ second pane on a row, `@Save-2` for a column beside one) instead of a screen
+ column. Adding one builtin word to a tagline used to rewrite 78 goldens
+ (3,758 lines) and silently move seven scripts onto the wrong word: `tutor.snap`
+ had been clicking `Grep` and asserting a tutor pane, `tagbottomimage.snap`
+ clicked 176 columns from the `Del` it claimed to execute. Seven tests regained
+ their subject, the corpus dropped from 16,700 lines to 5,722, and the same
+ edit now moves 337 lines.
+- `zig build snap -- --update` regenerates in parallel at the widest probe
+ settings and then verifies every golden it just wrote, instead of capturing
+ once, serially, and blessing whatever it saw: 77s to 41s, and a capture that
+ does not reproduce is reported rather than committed.
+- `zig build unit-test -Dtest-filter=<substring>` runs one test. The whole
+ binary is 14s, so a one-line change used to cost the full run; the test
+ runner's own `--test-filter` was silently dropped by the build.
+- A snapshot script covers the `Save` prompt for the first time: armed on a
+ `+New` scratch it draws on the message row, prefilled with the pane's own
+ directory, and submitting it turns the scratch into the file it names.
+
+- `pardes --fs` serves acme's control filesystem over Linux FUSE: a directory
+ per pane holding `addr`, `body`, `ctl`, `data`, `errors`, `event`, `rdsel`,
+ `tag`, `wrsel`, `xdata`, plus `index`, `cons` and `new/` at the root. A
+ program that opens those files is an editor extension — no plugin API, no
+ interpreter. `--fs=<dir>` names the mount point instead of deriving one under
+ `$XDG_RUNTIME_DIR`; every pane shell gets `PARDES_FS` and `PARDES_PANE`.
+ See docs/acme-fs.md and examples/acmefs/.
+- While a script holds a pane's `event` file open, buttons 2 and 3 in that pane
+ are REPORTED to it instead of performed, so the words in that pane's tag are
+ the script's commands (acme's extension model). Keyboard Enter/Tab still
+ execute, so a scripted pane stays editable.
+- Writing an event record back (`origin type q0 q1`) makes pardes perform the
+ Look or Exec it names — the same door acme has always had, and the reason
+ the mount is 0700.
+- Version tracking: the compiled version is embedded from build.zig.zon and shown by Changelog.
+- New builtins: Changelog, Newtty, and Joincol.
+- Markdown tree-sitter highlighting, including nested fenced code blocks.
+- `.patch` and `.diff` files are highlighted.
+- Coloring dispatch keys off the buffer title.
+- Opening a new file only splits into a new column when both panes would be at least 100 columns wide.
+- Terminal ANSI colors render only in tty mode; normal mode is a plain editing
+ view, so an edit can never shift a shell row's colour.
+- `New` and `Newcol` open an empty scratch buffer instead of a shell or a
+ temporary file. Its directory is inherited from the pane it was opened from.
+- `Save` on a scratch asks for a path, prefilled with that inherited
+ directory, and the buffer becomes an ordinary file once written.
+- `Save` reaches every pane that holds text of its own and leads its tagline:
+ a terminal ("Save New Newtty Del Filter") and an output buffer like
+ `+Search` ("Save New Newtty Del") as well as a file. Images and PDFs keep
+ the plain tail — their bytes on disk already are what they are.
+- `Save` takes the path as an ARGUMENT (`Save notes.txt`, or a selection
+ chorded onto the word) and asks for one only when it was not given, the way
+ Find and Grep ask for a pattern. A relative path resolves against the
+ pane's own directory, with `.` and `..` normalized; a path that cannot be
+ made absolute is refused rather than written next to the process.
+- Writing to a path never rewrites the pane: a terminal stays a terminal, an
+ output buffer keeps its rows and its place in the n/N ring, and an open file
+ keeps the file it has, so `Save <elsewhere>` is a copy and not a rename.
+ The scratch `+New` is still the one exception, becoming the file it names.
+- A dropped pane's memory outlives its frame, so a pane pointer taken during
+ that frame stays valid until the next one repairs it.
+- The core owns the event loop. Each platform is now a `Host` of optional
+ function pointers; an unimplemented method falls back to an in-process
+ default, so a host with no methods at all is still a complete pardes.
+- Ctrl-V and Ctrl-Shift-V paste in a tty pane: the default register and the
+ system clipboard, typed at the program the way a terminal emulator pastes
+ (bracketed under mode 2004). A paste arriving from the desktop reaches the
+ shell instead of an edit buffer the pty cannot see.
+- The default filesystem is pardes's own source, embedded from an allowlist
+ (src/source_manifest.zig): what a host with no file method reads, and what
+ the browser has always read. It replaced a build-time generator that embedded
+ every tracked .zig file.
+- `zig build run-isolated` builds and runs `pardes-isolate`: the same source
+ with one comptime option, whose host supplies only the terminal. The
+ filesystem is not disabled in it, it is absent — the libc paths compile away.
+- Typst highlighting: headings, `*bold*` spans, raw/code blocks and inline raw
+ spans, and `#`-prefixed function calls (including the sigil itself).
+- Fenced Typst raw blocks with a language tag (e.g. ```` ```zig ````) get that
+ language's grammar injected, the same treatment markdown fenced blocks
+ already had.
+- Markdown bold, italics and inline code spans are highlighted: pardes now
+ builds the markdown inline grammar, a second parser off the same dependency,
+ and re-parses the block grammar's `inline` nodes with it. Only the block
+ grammar was built before, so emphasis had no nodes to match.
+- Escape in a PDF pane is the document's own cancel: it drops the mouse
+ selection and the search highlight overlay and stays where you were reading.
+ It used to run `Last`, which moved focus out of the pane and left every
+ following key going somewhere else. `Shift-Esc` is now the hop out — the same
+ chord that leaves a raw tty.
+- `gj`/`gk` move one VISUAL line, following the automatic breaks of a
+ soft-wrapped body and keeping the goal column inside the row. `j`/`k` are
+ unchanged: whole file lines. With `Wrap` off a line is one visual row and the
+ two pairs are the same motion.