Skip to content
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 #4177

Closed
infusion opened this issue Jul 22, 2015 · 4 comments
Closed

Tab completion #4177

infusion opened this issue Jul 22, 2015 · 4 comments

Comments

@infusion
Copy link

Hi,

I'm not sure if it should address OMZ or zsh itself. When I type "cd ..", I would expect to browse the upper directory, without typing a slash. Is this possibly configurable or patchable with OMZ?

Thanks

@apjanke
Copy link
Contributor

apjanke commented Jul 27, 2015

I believe this is normal zsh behavior. The same thing happens with OMZ turned off. (You can test that by temporarily moving ~/.zshrc out of the way and starting a new zsh session.) I suspect that .. and .. are being handled specially, and not considered as candidates for completion when it's looking for a directory. (Probably to avoid ".." popping up where you usually wouldn't want it, e.g. as a completion candidate for a path element when you've already provided some leading path elements, or as a high-precedence exact match when you have more complicated completion options enabled, or in the presence of files which start with "..".)

You can look at the _cd function supplied with zsh to see exactly how it's doing the completion. (Though it can be pretty unreadable.) To find it, do for i in $fpath; do ls $i/_cd; done. The first one that's found is probably the one in effect for you.

I don't see an option to control it, so I think this is just normal zsh behavior.

@apjanke
Copy link
Contributor

apjanke commented Jul 28, 2015

Looks like a duplicate of #3775.

@mcornella
Copy link
Member

I found the solution: #3775 (comment)
Please close the issue if it works

@infusion
Copy link
Author

This works perfectly well, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants