Expand description
Ropey-backed text buffer module.
This module is split across multiple files to keep each concern small:
pos.rs: logical positions and selectionsedit.rs: edit representation (char-indexed)text_buffer.rs: theTextBufferimplementation (backed byropey::Rope)util.rs: internal helper functionstests.rs: unit testsprelude.rs: convenience re-exports for downstream crates
Re-exports§
pub use text_buffer::DelimiterKind;pub use text_buffer::TextBuffer;pub use text_buffer::TextObjectEditPlan;pub use text_buffer::TextObjectKind;pub use text_buffer::TextObjectScope;pub use text_buffer::TextObjectSpec;pub use text_buffer::VisualModeKind;pub use text_buffer::VisualSelectionEditPlan;
Modules§
- prelude
- Convenience re-exports for the
buffermodule. - text_
buffer - Split implementation of the Ropey-backed
TextBuffer.
Structs§
- Edit
- A text edit expressed in character indices within the buffer.
- Edit
Batch Summary - Summary returned by batched edit application.
- Pos
- A stable identifier for positions within a buffer.
- Selection
- A selection expressed as an anchor + active cursor.