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

Automatically switch to case-insensitive mode if the query is all lowercase #424

Closed
alex opened this issue Mar 30, 2017 · 2 comments
Closed
Labels
duplicate An issue that is duplicative of another.

Comments

@alex
Copy link

alex commented Mar 30, 2017

This is a great feature that ag has. If your search is all lowercase, it'll switch to -i automatically, which it turns out is basically always what I want :-)

(PS: rg is fantastic, thank you!)

@BurntSushi
Copy link
Owner

This is a dupe of #70. The short story is that the -S/--smart-case flag already exists, so all you need to do is alias rg="rg --smart-case" in your .bashrc and you should be good to go.

I'm strongly opposed to making this the default.

(PS: rg is fantastic, thank you!)

:-)

@BurntSushi BurntSushi added the duplicate An issue that is duplicative of another. label Mar 30, 2017
@alex
Copy link
Author

alex commented Mar 30, 2017

Doh, sorry about the dupe. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate An issue that is duplicative of another.
Projects
None yet
Development

No branches or pull requests

2 participants