-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
History limited to command written #3614
Comments
We've been trying to get rustyline to support such a thing as is documented in the PR that @oberien pushed over a year ago. kkawakam/rustyline#424 |
This issue is being marked stale because it has been open for 30 days without activity. If you feel that this is in error, please comment below and we will keep it marked as active. |
Not stale. |
agreed. what's the latest on this @oberien ? |
This issue is being marked stale because it has been open for 90 days without activity. If you feel that this is in error, please comment below and we will keep it marked as active. Otherwise, it will be closed in 10 days. |
I think now nushell uses reedline, is that feature available there ? personaly I can't replace fish because of these kind of details |
Actually it seems to be implemented now, but it works only if the commands share the starting part, fish doesn't have this limitation |
@sigmaSd how should it work? I don't know what you mean where you say, "but it works only if the commands share the starting point". can you give examples of what this means please? |
if you have This is the same case btw in tab completion, if you have a directory called |
The current implementation in nu is similar to the one in zsh. In zsh it's prefix-matching from the start of the line to the current cursor position. The main difference is that in zsh the cursor stays in the same position when arrowing-up through the history while in nu (last I checked) the cursor is moved to the end when a new command is shown (though further searches still use the same prefix). |
In that case I guess this issue can be closed |
Happy to take (reedline) PRs that give our history traversal and completions options to be closer to fish's magic. In my mind the core of this issue is implemented and thus would agree to close. |
In Fish, Xonsh, and many other shells, when pressing arrows up/down for navigating through history, the user only sees commands that share the part of the command already written.
E.g.
when pressing , the user should see
ffmpeg
command and the intermediate commands (ls
etc.)The text was updated successfully, but these errors were encountered: