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
Tab completion not working #16
Comments
Try putting
after
Let me know if that helps! |
That was it. Did not know that the order mattered. Thank you for the help and again for the awesome plugin! |
No problem. Enjoy! |
@agkozak I'm a total zsh noob so could you please explain why |
Great question! You should never run My documentation says
As soon as I've had a bit more coffee, I'll try rewriting that to say something like, "Most frameworks load But @borekb, are you having a more specific problem where you seem to need to load it twice? If so, feel free to share your |
Yes, I think my problem is more specific – this is my # "Automatic compinit": https://github.com/marlonrichert/zsh-snap#automatic-compinit-and-bashcompinit
source ~/.znap/zsh-snap/znap.zsh
# Should probably call compinit as well? https://github.com/ohmyzsh/ohmyzsh/blob/71cc861/oh-my-zsh.sh#L21
znap source ohmyzsh/ohmyzsh
# Finally, zhs-z:
znap source agkozak/zsh-z
autoload -U compinit && compinit # I must call this to see completions |
There's a lot going on behind the scenes in your example. You can fix this problem by sourcing I'll do some experimenting, but I'll probably just update the |
One more thing I wonder about: Oh I just realized something that I didn't before. I have other completions like source ~/.znap/zsh-snap/znap.zsh
znap source ohmyzsh/ohmyzsh
znap source zsh-users/zsh-completions
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'
znap source agkozak/zsh-z
I just tried removing Also found this example of Not yet sure if this relates to my issue or not... |
If you type
you’ll see that |
Interesting.. Also, Oh My Zsh seems to be somehow significant, I've posted a couple of examples here: marlonrichert/zsh-snap#61 (reply in thread). |
Thanks for showing me that thread! I think you're right about Oh-My-ZSH. |
Hi! Me again 😬 I switched laptops (still a Mac, but this time it's M1 and with Big Sur). I ended up having the same problem again. Went through the initial fix, but that doesn't seem to do it for me anymore. Here's my
And the output from
Again, I can see the database being populated with directories, but I don't get tab completion when typing Do you have any ideas on what I can try to debug this further? Thanks once again! |
Yes, I can see what's happening. You're downloading and sourcing
|
As always, you are right! Thank you very much! |
@mihai-dinu You're very welcome. |
Hello! First off, thank you so much for the plugin, it's awesome!
Secondly, I'm running a bare bones zsh with just a
.zshrc
file that I've created and for some reason tab completion does not work withz
.This is the contents of the
.zshrc
Contents of
z -l
:When I type
z tm<TAB>
, i don't get the path expanded to/private/tmp
.Am i doing anything wrong?
The text was updated successfully, but these errors were encountered: