Skip to main content

Module text_editor

Module text_editor 

Source

Modules§

autocomplete_glue
Glue between the autocomplete controller (which works in byte offsets against a single joined buffer string) and ratatui_textarea::TextArea (which works in (row, char_col) per-line coordinates).
backend
markdown
nvim_decode
Pure decode of the STATE_QUERY_LUA response into a DecodedState.
nvim_host
Host-side glue for the Neovim backend.
nvim_rpc
parse_incremental
Incremental-parse machinery: line-construct classification cache, damage-diff against the previous buffer snapshot, safe-boundary widening, and fence-range derivation. Pure functions only — no pulldown_cmark calls (those live in markdown.rs).
snapshot
text_coords
Shared byte ↔ char coordinate conversion for editor text.
view
widener_metrics
Counters for the hybrid widener’s per-keystroke outcomes.
word_wrap

Structs§

ClipboardImage
Owned RGBA image data lifted from the system clipboard. Returned by TextEditorComponent::take_clipboard_image so the screen layer can encode + persist without holding the editor’s clipboard borrow.
TextEditorComponent
Snapshot of the textarea backend used to classify a key event as a text edit (text differs) vs. a pure cursor move (text same, cursor moved) vs. a no-op (both same).

Enums§

LinkTarget
The resolved target of a cursor follow-link action.