nushell / nushell/reedline

Autocomplete: recognize when user removed a completion, and suggest other

Open
#309 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-Completions A-History enhancement
Dominant language
Rust
Stars
818
Forks
249
Avg merge
4d 14h
Merged PRs (30d)
30

Description

For example, I type:

git push it autocompletes origin; forming: git push origin.

Done! Pushed to origin.

But then I input and it is git push origin. Then I remove origin, but it still marks/suggests origin; suggestion:
In this case, display the next last used to autocomplete, in this case it autocompletes github, forming: git push github.

Contributor guide

Open the contributing guide

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

Reproduce the described sequence in reedline: complete git push with origin, navigate back, remove origin, and observe the remaining suggestion. Start by locating the autocomplete and history-suggestion entry points; done means removing a completion no longer preserves it as the active suggestion and the next last-used completion, such as github, is offered.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.