Overflow in completer
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 818
- Forks
- 249
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 30
Description
When writing the completion system with reedline::Completer, I stumbled across a problem:
If I say have a path in the list of completions that's larger than the terminal's width, it overflows and makes the whole completion's behaviour messy. Notably, it will redraw the entire completion list every time another option is selected.
Would it be possible to add a new struct option that would allow to provide a text to display AND a suggestion content? The former would be displayed in the user's terminal, while the second would be the output content.
Contributor guide
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 at the reedline::Completer entry point and trace how completion display text is rendered and how selecting options triggers redraws. Done means long completion paths no longer overflow or cause messy full-list redraws, while the displayed text can differ from the suggestion content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100