tawasuyu

tawasuyu/llimphi

Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.

Rust 660Markdown 302TOML 157RON 312382 Definiciones

⎇ c5a232cf24788ab75a850ffe81eca5a7af50e2f8 widgets/text-editor-core/README.md Markdown · 25 líneas · 1.2 KB Historia crudo

chore: refresco desde el monorepo — 27 crates nuevos (anim, lottie, svg, mesh, image, layer, test, wire-view, widgets rag-sidebar/router/lazy-list/rive-button) y sync de los 95 existentes 93253cc22 · Sergio ·

1# llimphi-widget-text-editor-core
2
3The agnostic core of the code editor.
4
5Thin, **pure** layers (no IO, no Llimphi, no GPU) over `ropey`:
6
7- `buffer` — a `Rope` wrapper with (line, col) ↔ char_offset conversions.
8- `cursor` — `Cursor` + `Selection`; movement by char/word/line/page.
9- `ops` — pure editing operations over `(Buffer, Cursor) → (Buffer, Cursor)`.
10- `undo` — reversible stack: every operation is recorded as an `EditDelta`.
11- `bracket` — matching of parentheses, braces and brackets.
12- `find` — incremental search over the buffer.
13- `diagnostics` — the model of diagnostics (errors/warnings) by range.
14- `clipboard` — a clipboard abstraction (mem/null) that never touches the OS.
15- `highlight` — syntax highlighting with tree-sitter (Rust/Python/WAT/Plain).
16
17Its only external coupling is `peniko::Color` in `highlight::SyntaxPalette` — a
18colour type, not the render stack. That leaves the core reusable from a TUI, a
19mini-REPL, a single-line text input, a web backend, and so on. The visual layer
20(state + view over Llimphi) lives in `llimphi-widget-text-editor`, which
21re-exports this whole core.
22
23---
24
25Part of **llimphi** — see [llimphi](../../README.md).

README.md

llimphi-widget-text-editor-core

The agnostic core of the code editor.

Thin, pure layers (no IO, no Llimphi, no GPU) over ropey:

Its only external coupling is peniko::Color in highlight::SyntaxPalette — a colour type, not the render stack. That leaves the core reusable from a TUI, a mini-REPL, a single-line text input, a web backend, and so on. The visual layer (state + view over Llimphi) lives in llimphi-widget-text-editor, which re-exports this whole core.


Part of llimphi — see llimphi.