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

Smart case support #17

Open
rauchg opened this issue Mar 3, 2017 · 2 comments
Open

Smart case support #17

rauchg opened this issue Mar 3, 2017 · 2 comments

Comments

@rauchg
Copy link

rauchg commented Mar 3, 2017

It might be interesting to use vi-style smart case. If you include at least one uppercase letter, the search becomes case sensitive.

Also implemented by spot:

https://github.com/rauchg/spot#smart-case

@sindresorhus
Copy link
Owner

sindresorhus commented Mar 4, 2017

Interesting. How do you force it to be only lowercase? Or is that not a common use-case?

@pirate
Copy link

pirate commented Mar 14, 2017

Might be better to not try and be "too smart", and just have a cli argument like -s for 'case-sensitive'.

For example, ag (the silver searcher) is case-insensitive by default, but you can force case sensitivity with -s or --case-sensitive.

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