Ripgrep: Automatically switch to case-insensitive mode if the query is all lowercase

Created on 30 Mar 2017  路  2Comments  路  Source: BurntSushi/ripgrep

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!)

duplicate

Most helpful comment

Doh, sorry about the dupe. Thanks!

All 2 comments

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!)

:-)

Doh, sorry about the dupe. Thanks!

Was this page helpful?
0 / 5 - 0 ratings