Open danimesq opened 2 years ago
I'm not sure how much of the completions we actually control. Most of these come from rustyline
, the line editor we use. However, we're hopeful to be using our new linefeed
line editor in the next major version of nushell, which is what we're mostly focused on in the engine-q
repo.
I'm gonna transfer this to reedline
as we would be able to solve it there. Implementing it will certainly introduce some additional complexity to track the state of deleted entries to advance through the history autosuggestion hints.
For example, I type:
git push
it autocompletesorigin
; forming:git push origin
.Done! Pushed to
origin
.But then I input
⬆
and it isgit push origin
. Then I removeorigin
, but it still marks/suggestsorigin
; suggestion: In this case, display the next last used to autocomplete, in this case it autocompletesgithub
, forming:git push github
.