diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 08:12:29 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | 6535f3a59bb2454a0e945d840c083b2423a80b44 (patch) | |
| tree | dbf7e91609275efadc4c9bac7ac9e8e9056d7312 /docs | |
| parent | 0db7861d9da09e059fa1b9e40fff5cd52add27f2 (diff) | |
| parent | 690c504391e07a0767df8255e288ffe39296af22 (diff) | |
| download | pardes-6535f3a59bb2454a0e945d840c083b2423a80b44.tar.gz pardes-6535f3a59bb2454a0e945d840c083b2423a80b44.zip | |
integration: the editor library's indent from the handed-in parse, with the rest
A merge of pardes-next (pumzrknp) and editor-lib (uuuzkvmv), no conflicts; the one change it brings is compiled out of pardes's own panes. On tui core-test 811/950 (139 skipped), shell-test 990/993, lib-test, hxdiff 658 and hxlib 538 with 0 mismatches; on gui core-test 811/950.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/next-editor.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/next-editor.md b/docs/next-editor.md index af0ee537..fdb656cb 100644 --- a/docs/next-editor.md +++ b/docs/next-editor.md @@ -42,8 +42,10 @@ history for Alt-i to go back by (the page allocator: it holds nothing of the code that made it). With it, Alt-o, Alt-i, Alt-n, Alt-p, Alt-a, Alt-I, Alt-e, Alt-b and `]f` and kin are the text's and run in the library on pardes's own nodeSelect and objectJump, and `mif` and kin find -the `Language`'s `textobjects`; with no `lang` they do nothing, as in a -text without a grammar. Without `syn` they come back as actions (`mif` +the `Language`'s `textobjects`, and Enter, `o` and `O` take a new line's +indent from its `indents` as a file's does (edit.treeIndent: without one, +the plain indent, a level more after `(`, `[`, `{` or `)`); with no `lang` +they do nothing, as in a text without a grammar. Without `syn` they come back as actions (`mif` does nothing). An argument, not a field of the value: the tree holds pointers into the grammar's code, and an argument is the least code (the context of the call carries it, `Editor.syntax`; no interface). @@ -125,8 +127,6 @@ terminals, replicas, dumps. Macros and `.`: their log is keys.zig's (the core's dispatcher) and recording replays through it; keeping them meant moving it, more code than leaving them out. `n`/`N`: pardes decides between the look ring, a query's places and the register, the core's. -Tree indents: they read the file's tree through `fileTree`, not -`nodeTree`; a new line's indent in the library is the plain one. Alt-o's history across calls lives in the `Syntax`, so a caller that makes one per call (a sketch's `update` sees only State) has Alt-i go to the first child instead, as helix does with no history. |
