Comments (5)
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.
from zsh-bd.
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. :)
from zsh-bd.
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. :)
from zsh-bd.
Fair enough, thanks for the quick responses.
from zsh-bd.
Thanks for opening these issues. I'm happy you care for the best of the project. :)
from zsh-bd.
Related Issues (10)
- zsh-bd for prezto HOT 4
- Feature request: match incomplete string at beginning of line HOT 1
- Error when using antigen HOT 2
- bd into cwd is meaningless HOT 2
- Feature request: add support for folder color in tab-completion HOT 1
- Feature request: bd with no arguments should move up one directory HOT 4
- Add fuzzy support HOT 1
- How to install as oh-my-zsh plugin? HOT 5
- Syntax error: word unexpected (expecting ")") HOT 6
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-bd.