linebender / linebender/parley
Editor for large buffers of text
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 736
- Forks
- 120
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 53
Description
The current `PlainEditor` is great for editing small amounts of plain text. This makes it a good fit for text inputs in UIs (even multi-line text inputs). However it is backed by a single `String` which makes it very inefficient when editing large quanties of text. This makes it unsuitable for use cases like editing a text file.
We should create an editing abstraction that uses a Rope, Gap Buffer or similar that is suitable for these use cases.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing PlainEditor and reviewing how its String-backed editing is exposed. Compare the proposed Rope or Gap Buffer approaches against the large-text editing use case, then define the abstraction and acceptance criteria for efficient editing of large quantities of text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100