summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 06:16:40 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit946e96c0ec793d6b546da8ebef19555d639ccda6 (patch)
tree8da8bdaebeede93e92dcbecea8e138b2f6e9c24e /src
parentf923d0342f7fbbc965867c19e03cb6c94fcb7fd3 (diff)
downloadpardes-946e96c0ec793d6b546da8ebef19555d639ccda6.tar.gz
pardes-946e96c0ec793d6b546da8ebef19555d639ccda6.zip
docs: the text pane as a library, as built (docs/next-editor.md): the calls, the flat form's fields and capacities, what is refused at capacity and what a ring drops, the numbers (a key at 1, 16 and 64 KiB in Debug and ReleaseFast, the pages a typed character changes, a full parse, what a package taking the editor pays to compile, pardes's recompile, perf cells and codeloc before and after), the seam's compile-time branches, the hxlib counts, what is left out and why, and the recipe for an editor in a sketch; building.typ's library section gains the editor, how a package asks for it, its calls and `zig build hxlib`; the changelog says so
Diffstat (limited to 'src')
-rw-r--r--src/CHANGELOG.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md
index 44d55707..294b7445 100644
--- a/src/CHANGELOG.md
+++ b/src/CHANGELOG.md
@@ -2,6 +2,18 @@
## Unreleased
+- 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 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