| Crates.io | tui_document |
| lib.rs | tui_document |
| version | 0.9.30 |
| created_at | 2025-05-26 18:54:02.072368+00 |
| updated_at | 2025-06-01 23:42:00.346899+00 |
| description | A Ratatui widget wrapping the Ropey crate. |
| homepage | |
| repository | https://github.com/killrpenguin/tui_document |
| max_upload_size | |
| id | 1690133 |
| size | 53,757 |
Bring the rope data structure to a Ratatui widget. This crate wraps the 'ropey' crate. The rope data structure is a binary tree used for efficiently manipulating long strings. The author of the ropey crate has a great paper on 'Ropey's Design' that goes over his specific implementation of this data structure.
The underlying ropey crate allocates space in kilobytes. Small text documents don't need a rope. This crate is for things like text editors or large log files. Medium to large documents that require frequent edits or efficient search functionality.
Some of the code and documentation in this crate has been taken directly from Ropey source code. My goal in this project is to produce a widget that wraps a great crate and bring it to the Ratitui community.