Skip to main content

Module editor

Module editor 

Source
Expand description

Low-level bounded editor helpers; the TUI renderer is private and separate.

Structs§

EditorCheckpoint
A named in-memory checkpoint of open editor buffers.
EditorComment
A durable human or agent comment anchored to a source range.
EditorProposal
An unsaved, reviewable replacement produced by an agent or human.
FoldRegion
One-based inclusive line range that can be folded.
SyntaxSpan
Half-open byte range and category for one syntax span.
TextPosition
One-based line and character-column position in editor text.
TextSelection
A selection represented by its fixed anchor and active cursor positions.

Enums§

EditorCommentState
Lifecycle of an anchored editor comment.
EditorProposalState
Lifecycle of a proposed editor change.
SyntaxKind
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_index points to (, [, {, ), ], or } and a balanced partner exists.
syntax_spans
Find coarse keyword, comment, and number spans in source text.