Skip to main content

Module text_buffer

Module text_buffer 

Source
Expand description

Split implementation of the Ropey-backed TextBuffer.

The goal of this submodule is to keep the TextBuffer implementation easy to navigate and extend by separating it into focused files:

  • core.rs: struct definition + basic constructors/accessors
  • lines.rs: line indexing helpers
  • positions.rs: (line, col) conversions and cursor movement
  • slicing.rs: extracting text
  • editing.rs: mutation operations (insert/delete/apply edits)
  • words.rs: word motions

TextBuffer remains a single public type re-exported by buffer::mod.rs. All methods are inherent impls spread across these modules.

Structsยง

TextBuffer
A Ropey-backed text buffer.
VisualSelectionEditPlan
A precomputed plan for visual selection operations.