63 releases

new 0.8.5 Oct 30, 2024
0.8.4 Feb 19, 2024
0.8.1 Jan 10, 2024
0.7.2 Sep 30, 2018
0.0.4 Mar 30, 2015

#491 in Data structures

Download history 17/week @ 2024-07-15 30/week @ 2024-07-22 27/week @ 2024-07-29 13/week @ 2024-08-05 30/week @ 2024-08-12 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

448 downloads per month
Used in 2 crates

Custom license

155KB
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
~150K SLoC