Comments (7)
I wasnt ware of this actually. I will try fix it as soon as I get the chance. Thanks for reporting the issue @selfish
from zsh-you-should-use.
@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:
- set of aliases
- a link to the git zsh you are referring to
- an example command where autocompletion fails
Alternatively, you can checkout my branch and install it to your system to see if it works :)
from zsh-you-should-use.
@MichaelAquilina sure, no problem, thanks for the help!
Sorry for not including the steps to reproduce, here they are:
- Have any alias that will trigger upon
git branch
. Example: I usealias g='git'
. - Have the default oh-my-zsh
git
plugin enabled:plugins=(git ...)
orantigen bundle git
or however you do it. - Start your terminal, make sure zsh is up to date (save and start a new terminal, or type in
exec zsh
to re-source your.zshrc
) - Navigate to a directory that is a git repository.
- Type in
git checkout
and the beginning of the name of a branch, for example:git checkout ma
, assuming you havemaster
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.
from zsh-you-should-use.
Oh, NICE. Thank you so much!
from zsh-you-should-use.
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
from zsh-you-should-use.
Seems to be looking good.
Thanks again!
from zsh-you-should-use.
No problem, glad to be of help :)
from zsh-you-should-use.
Related Issues (20)
- Usage guide for prezto
- Install guide for sorin-ionescu/prezto
- check_alias_usage results in a malloc error failing to load counting data HOT 4
- Add to Homebrew for Mac HOT 2
- Not useful when aliased to 'command <command>' HOT 2
- Request: Option to match only typed command without path
- Consider support function aliases HOT 5
- Common aliases HOT 3
- Question/suggestion: printing alias content before execution HOT 1
- Partial alias use prevents discovery of a better alias HOT 2
- show the original full cmd when use alias
- Replaced yaourt with yay for global install
- aliasing git breaks functionality HOT 1
- Donβt report both shell alias and Git alias HOT 1
- `check_alias_usage` prints all history
- can not parse you-should-use.plugin.zsh with oh-my-zsh in wsl2 HOT 3
- Wrong format in existing alias message
- Feature request: interoperability with `zsh-abbr` HOT 7
- Tests failing without modifications HOT 3
- Escape sequences and printf placeholders get expanded in "Found..." message HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zsh-you-should-use.