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

Feature request: support case-insensitive directory match #12

Open
kergoth opened this issue Feb 11, 2015 · 5 comments
Open

Feature request: support case-insensitive directory match #12

kergoth opened this issue Feb 11, 2015 · 5 comments

Comments

@kergoth
Copy link

kergoth commented Feb 11, 2015

This is supported by https://github.com/vigneshwaranr/bd with an argument in its alias: "To enable case-insensitive directory name matching, use -si instead of -s in the alias.". Of course, one could enable case-insensitive tab-completion in general and use the zsh-bd tab-completion for this, but one might not want it enabled everywhere.

@Tarrasch
Copy link
Owner

but one might not want it enabled everywhere.

Is this actually the case for you? Why would you not want this in general? Look how useful it is. :)

selection_031

@Tarrasch
Copy link
Owner

Of course, if you want to implement it and add tests for this and make it not the default behavior. I'll happily merge it. Same goes for #11. :)

@kergoth
Copy link
Author

kergoth commented Feb 11, 2015

Fair enough, thanks for the quick responses.

@Tarrasch
Copy link
Owner

Thanks for opening these issues. I'm happy you care for the best of the project. :)

@tom-auger
Copy link

I spent some time working out how to enable case-insensitive matching just for bd, so posting in case it's useful for others.
To enable case-insensitive matches change the following line in bd.zsh:

compctl -V directories -K _bd bd

to

compctl -M 'm:{a-zA-Z}={A-Za-z} r:|=* l:|=* r:|=*' -V directories -K _bd bd

The -M parameter lets you pass a custom match specification for auto completion. The match spec here is the same one used to enable global case-insensitive matching in oh-my-zsh.

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