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 the edit buffer (which works in (row, char_col) per-line coordinates).
backend
find_bar
The find bar: searching and replacing inside the open buffer.
find_replace
The pure half of find-and-replace: compiling a find pattern, counting its matches, expanding a replacement, and building the substituted lines a replace preview draws.
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).
plain_keys
What a key means to the plain backend.
rope_buffer
The edit buffer over ropetext, presenting the surface the rest of the editor already calls.
snapshot
text_coords
Shared byte ↔ char coordinate conversion for editor text.
typing_run
When one keystroke continues the last one’s undo group.
view
widener_metrics
Counters for the hybrid widener’s per-keystroke outcomes.

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§

EditorClaim
Which editor-internal surface currently holds input — the editor claim.
LinkTarget
The resolved target of a cursor follow-link action.