linebender / linebender/parley

Editor for large buffers of text

Open
#524 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.