62 releases

0.8.4 Feb 19, 2024
0.8.1 Jan 10, 2024
0.7.2 Sep 30, 2018
0.6.3 Jun 30, 2018
0.0.4 Mar 30, 2015

#433 in Data structures

Download history 61/week @ 2024-01-29 50/week @ 2024-02-05 68/week @ 2024-02-12 240/week @ 2024-02-19 104/week @ 2024-02-26 43/week @ 2024-03-04 188/week @ 2024-03-11 60/week @ 2024-03-18 22/week @ 2024-03-25 141/week @ 2024-04-01 26/week @ 2024-04-08 25/week @ 2024-04-15 32/week @ 2024-04-22 2/week @ 2024-05-06 26/week @ 2024-05-13

64 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–14MB
~166K SLoC