64 releases

new 0.8.6 Dec 8, 2024
0.8.5 Oct 30, 2024
0.8.4 Feb 19, 2024
0.7.2 Sep 30, 2018
0.0.4 Mar 30, 2015

#499 in Data structures

Download history 16/week @ 2024-08-19 15/week @ 2024-08-26 23/week @ 2024-09-02 59/week @ 2024-09-09 47/week @ 2024-09-16 144/week @ 2024-09-23 95/week @ 2024-09-30 110/week @ 2024-10-07 90/week @ 2024-10-14 68/week @ 2024-10-21 169/week @ 2024-10-28 42/week @ 2024-11-04 29/week @ 2024-11-11 45/week @ 2024-11-18 70/week @ 2024-11-25 119/week @ 2024-12-02

266 downloads per month
Used in 2 crates

Custom license

160KB
3K SLoC

Scribe: A text editor toolkit

Scribe was extracted from Amp, a text editor written in Rust. It provides a layered set of types for dealing with text documents.

  • GapBuffer - Data structure optimized for successive, close-proximity edits.
  • Buffer - Wrapper that provides bounds-checked cursor management, file persistence, undo/redo (with grouping), lexing (scope-qualified tokens), search, and more.
  • Workspace - Collection of buffers with type detection, and buffer selection and lexer management.

More documentation can be found here.

Dependencies

~5–13MB
~149K SLoC