GithubHelp home page GithubHelp logo

Comments (7)

MichaelAquilina avatar MichaelAquilina commented on June 18, 2024

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.

MichaelAquilina avatar MichaelAquilina commented on June 18, 2024

@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.

selfish avatar selfish commented on June 18, 2024

@MichaelAquilina sure, no problem, thanks for the help!
Sorry for not including the steps to reproduce, here they are:

  1. Have any alias that will trigger upon git branch. Example: I use alias g='git'.
  2. Have the default oh-my-zsh git plugin enabled: plugins=(git ...) or antigen bundle git or however you do it.
  3. 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)
  4. Navigate to a directory that is a git repository.
  5. Type in 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):
image

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.

selfish avatar selfish commented on June 18, 2024

Oh, NICE. Thank you so much!

from zsh-you-should-use.

MichaelAquilina avatar MichaelAquilina commented on June 18, 2024

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.

selfish avatar selfish commented on June 18, 2024

Seems to be looking good.
Thanks again!

from zsh-you-should-use.

MichaelAquilina avatar MichaelAquilina commented on June 18, 2024

No problem, glad to be of help :)

from zsh-you-should-use.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.