64 releases

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

#630 in Data structures

Download history 49/week @ 2024-10-23 178/week @ 2024-10-30 32/week @ 2024-11-06 35/week @ 2024-11-13 56/week @ 2024-11-20 60/week @ 2024-11-27 160/week @ 2024-12-04 122/week @ 2024-12-11 29/week @ 2024-12-18 36/week @ 2024-12-25 28/week @ 2025-01-01 24/week @ 2025-01-08 4/week @ 2025-01-15 13/week @ 2025-01-22 22/week @ 2025-01-29 398/week @ 2025-02-05

440 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
~146K SLoC