Closed selfish closed 6 years ago
I wasnt ware of this actually. I will try fix it as soon as I get the chance. Thanks for reporting the issue @selfish
@selfish I am trying to find a reproducible test case to check that #28 correctly fixes this issue. Would you mind providing me with your:
Alternatively, you can checkout my branch and install it to your system to see if it works :)
@MichaelAquilina sure, no problem, thanks for the help! Sorry for not including the steps to reproduce, here they are:
git branch
. Example: I use alias g='git'
.git
plugin enabled: plugins=(git ...)
or antigen bundle git
or however you do it.exec zsh
to re-source your .zshrc
)git checkout
and the beginning of the name of a branch, for example: git checkout ma
, assuming you have master
branch.
In any other scenario, the git plugin will show auto-completion for the branch name, but when YSU is active, it will fail to parse the format.The reason being that it types git branch
, and hits the Found existing alias
prompt.
Expected behavior (YSU turned off):
Actual behavior: zsh autocomplete shows, listing files in the directory.
Since I do not have a clean environment to test this in an isolated way, I can't rule out the option that this has to do with other stuff on my machine. If you can't reproduce it, I'm happy to try and assist.
Oh, NICE. Thank you so much!
Please test that this works @selfish and get back to me :) I was uable to reproduce it myself unfurtunately but the output should be writtent to stderr now
Seems to be looking good. Thanks again!
No problem, glad to be of help :)
Best use case: zsh plugin
git
which we all use cannot complete branch names, because it doesgit branch --all
, and the output from you-should-use will mess the output.If there was a way to test current context and know if the user didn't type in the command, the text can be hidden.