Expand description
Low-level bounded editor helpers; the TUI renderer is private and separate.
Structs§
- Editor
Checkpoint - A named in-memory checkpoint of open editor buffers.
- Editor
Comment - A durable human or agent comment anchored to a source range.
- Editor
Proposal - An unsaved, reviewable replacement produced by an agent or human.
- Fold
Region - One-based inclusive line range that can be folded.
- Syntax
Span - Half-open byte range and category for one syntax span.
- Text
Position - One-based line and character-column position in editor text.
- Text
Selection - A selection represented by its fixed anchor and active cursor positions.
Enums§
- Editor
Comment State - Lifecycle of an anchored editor comment.
- Editor
Proposal State - Lifecycle of a proposed editor change.
- Syntax
Kind - Coarse syntax categories emitted by
syntax_spans.
Functions§
- fold_
regions - Collect brace-delimited fold regions using one-based inclusive line numbers.
- matching_
bracket - Return the matching bracket’s character index, if
character_indexpoints to(,[,{,),], or}and a balanced partner exists. - syntax_
spans - Find coarse keyword, comment, and number spans in source text.