diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/CHANGELOG.md | 76 |
1 files changed, 66 insertions, 10 deletions
diff --git a/core/CHANGELOG.md b/core/CHANGELOG.md index 1b28267e..d4034ca0 100644 --- a/core/CHANGELOG.md +++ b/core/CHANGELOG.md @@ -2,6 +2,62 @@ ## Unreleased +- On a client, and so on a far one, what changes only the editor is + applied at once and only what touches the session's machine waits for + it (a save, a shell's keys, a file read from disk, a program run, a + kind whose state is the session's). Collapse, Newcol, Joincol, a window + resized and a pane's grip dragged beside a shell, Del and Zerox of a + file's pane, a yank to the clipboard, ClipPaste, a Theme after a + ThemeFile and a key that starts an addon's job each waited a round + trip and no longer do; nor does a click into or out of a shell whose + program asked for focus events, which hears of the focus a round trip + after it shows. + +- A client's yank to the system clipboard (`"+y`, ClipYank) fills the + clipboard of the machine the client runs on, ClipPaste pastes that + clipboard, and a link a client looks at opens there; all three went to + the session's machine. + +- `n` and `N` in a kind's pane (+Search, references, errors) step to the + places its rows hold, at once, and no longer stop on a bare word of a + command's output that names a file. + +- On a client, `~`, the default shell, a word run in the session's + directory, `Font`, `Fonts` and DumpDir's check of its directory are the + session's machine's, where a client's own step read its own machine and + could part from the session. + +- An idle client and its session stay idle: a client's quiet check, once + answered, asked again 300 ms later for ever, waking both processes + three times a second. + +- A pardes that starts while another, still running, loads an addon no + longer takes that load for a crash: a client starting while its session + loaded the same game listed it `skipped: it crashed its last load`, and + every key into the game waited for the session, until `Addon load`. + +- A search pattern that stops inside a count or an escape (typing + `a{2}` or `fn main() {`, `a{1,`, `\x`) no longer takes a safe build + down, nor in a fast one finds what the bytes after it made of it: it + is a pattern that does not compile, found as the characters it is. A + class escape holding a lone non-ASCII byte no longer loops without end, + and a half-typed pattern that does not compile (`(`, `[`) no longer + leaks. + +- A client no longer diverges and joins again after a press on a + notice's chip, or a click in a big markdown text's table, in a view + whose frame it had not drawn; a big text's tables are read whole when + it opens (18 ms for 2.7 MB of tables), where they were read 4096 lines + first, then 4 ms a frame. + +- A client no longer crashes when another's input rolls back its own Del + of a pane whose kind's state is not plain, nor drawing a closed + terminal with a kitty image it brought back (`Look @pN`) under a + rollback. A kind's picture drawn for a pane closed meanwhile is let go, + where it was kept for the session's life; `pardes help` with no session + running no longer crashes now and then, freeing its own core while + still answering it. + - The row after a file's last newline, where the cursor can sit and no line is yet, shows `~` in the gutter where its line number was, as helix's does. @@ -21,7 +77,7 @@ `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`, +- The text pane is a library too, `pardes-editor` (`core/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 @@ -42,10 +98,10 @@ 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 +- The terminal is a module of its own (`core/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 + entries, `core/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 @@ -73,7 +129,7 @@ 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 + work tree are now rules of `core/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 @@ -94,7 +150,7 @@ 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, + pardes's rules (`core/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 @@ -148,7 +204,7 @@ 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 + given the `pardes-syntax` module (`core/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 @@ -216,12 +272,12 @@ 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. + `abi/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 +- Addons in Zig: `abi/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 @@ -246,7 +302,7 @@ 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 +- Addons speak ABI 2 (abi/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 @@ -366,7 +422,7 @@ 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 + in `dev/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. |
