Ripgrep: Feature request: -I (--no-ignore) argument

Created on 26 Jun 2018  路  4Comments  路  Source: BurntSushi/ripgrep

From fd I'm used to typing -H to search hidden files or -I to not respect .gitignore. They also form a convenient mnemonic, -HI, to search everything.

Unfortunately -H is already in-use, but since -I isn't currently used by ripgrep I thought I'd ask if you'd want to add it as an alias for --no-ignore. Thanks.

question

All 4 comments

Have you read the guide's section on automatic filtering?

Namely, ripgrep already has an alias. -u stops respecting .gitignore. Specifying it again, -uu, will cause ripgrep to search hidden files. Specifying it a third time, -uuu, will cause ripgrep to search binary files.

I did notice in the manpage that -u is equivalent to -I and -uu is equivalent to -HI as described above. I thought it could still be worth adding, but I understand if you don't want two single-letter aliases that do the same thing.

You got it. Single letter aliases are a limited resource, and -u is good enough.

@kbd It's a hidden feature, but (for consistency/symmetry reasons) you can use ripgrep's -u and -uu in fd as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wsdjeg picture wsdjeg  路  3Comments

fcantournet picture fcantournet  路  3Comments

timotheecour picture timotheecour  路  3Comments

daxim picture daxim  路  3Comments

kenorb picture kenorb  路  3Comments