-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Should complete exact prefix before fuzzy matches #301
Comments
Can you give examples of GitHub repos where this is done that way? I would like to see if there's any standard or conventions for this, instead of just making up my own. |
Implemented. |
PS: If you enjoy using this software, please consider becoming a sponsor. 🙂 |
done ;) |
No. I just think that instead of copy pasting commands to and from terminal, running something like |
Sure, I can add some kind of command for that. |
zsh-autocomplete
version: b164ae7| BTW, the above, imho, should be generated by a command
the problem:
I'm very fast at the keyboard, and used to type ahead, not waiting for shell to catch up.
Since switching to
zsh-autocomplete
shell frequently does something very unexpected.Where it comes to autocompletion, there is a lot of 'muscle memory' and default expectation as to how such a system supposed to work. For example, if I type something that is an exact prefix of some completion, then I expect it to be used when I press tab.
Here is an example:
I have 2 aliases
git-merged
which shows branches merged into current, andgit-clean-merged
which deletes those branches. I usually rungit-merged
first ;).To my surprise, when I typed
git-mer<tab><enter>
it gotgit-clean-merged
executed.Another frequent problem is when I need to change into a directory, and I type couple of first letters, knowing there are no other directories with the same prefix, then
<tab><enter>
, and then taken to some random unexpected place, because it got completed from history or something.test script:
result
% git-me alias git-clean-merged git-merged
At this point (or even before the completion appears) if I press
tab
it will completegit-clean-merged
, which I think is wrong, when anexact prefix
completion exists.The text was updated successfully, but these errors were encountered: