Skip to main content

Crate strop_core

Crate strop_core 

Source
Expand description

strop-core: the buffer. A rope, byte-offset positions, edit ops. No UI, no modes, no grammar — the thing everything else edits.

Modules§

history
Undo history (Helix helix-core/history.rs lineage, ported): revisions form a tree — every committed transaction is a node holding both its undo and redo edit sets; u walks to the parent, Ctrl-r descends to the last-visited child. Editing after an undo forks a new branch; the tree keeps the old one (0001 pillar 4: Neovim users expect branches).

Structs§

Buffer
A text buffer. Positions are UTF-8 byte offsets, everywhere (0001 §5.1).
Range
A half-open byte range [start, end) plus how vim thinks about it.