-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Partial completion #920
Comments
Sounds interesting, but also difficult to implement properly, especially considering you could mean something else. What if you actually wanted |
Currently, with ctrl-f or right cursor it would complete immediately to "ls -lha /var/www", so when I mean "less" I'll type "le", it will suggest "less" and then press right cursor. My suggestions is to have the exact same rules that apply to the ctrl-f/right cursor completion, but have another shortcut that only completes 1 word at the time, thus allowing to repeat commands with slight differences. Let's assume the part inside the [] is the suggested part that is still not completed Pressing this new shortcut (let's for examples sake use ctrl-w): And so on. At any time, pressing ctrl-f would have the exact same effect it does now Cheers, |
You can press |
As siteshwar says, this is already available! |
Thanks, but with fish 2.0.0 installed from homebrew on iTerm ALT-right arrow only produces this output [1;9C EDIT: Just found out the fix for this, on iTerm, go to preferences->profiles->keys and set alt-right arrow to send the following hex codes: 0x1b 0x1b 0x5b 0x43 |
Maybe we can support iTerm's default key bindings. |
if @mlopes means iTerm2, maybe the better configuration is to have opt-right mapped to opt-f, and opt-left to opt-b |
23ba7b5 adds support for iTerm2's default escapes (opt-right-arrow and opt-left-arrow). Thanks for reporting this! |
Hi,
I would like to suggest the following enhancement to the auto-completion process.
When there's a multi word completion suggestion, based on history, frequently one needs part of the command and more often than not, the end part needs to be replaced.
My suggestion consists in adding an extra auto-complete shortcut that only completes until the next white space:
Ex:
when typing "l" I get the following suggestion:
ls -lha /var/www
pressing the new shortcut key would produce "ls" and keep the remainder as a suggestion, pressing it again wound produce "ls -lha" and keep the remainder as a suggestion.
Cheers,
Marco Lopes
The text was updated successfully, but these errors were encountered: