doc: mention .ignore and .rgignore more prominently

Fixes #1284
This commit is contained in:
Andrew Gallant
2019-08-01 17:37:04 -04:00
parent 5e84e784c8
commit 052c857da0

View File

@@ -93,11 +93,11 @@ increases the times to `2.640s` for ripgrep and `10.277s` for GNU grep.
[the FAQ](FAQ.md#posix4ever) for more details on whether ripgrep can truly [the FAQ](FAQ.md#posix4ever) for more details on whether ripgrep can truly
replace grep.) replace grep.)
* Like other tools specialized to code search, ripgrep defaults to recursive * Like other tools specialized to code search, ripgrep defaults to recursive
directory search and won't search files ignored by your `.gitignore` files. directory search and won't search files ignored by your
It also ignores hidden and binary files by default. ripgrep also implements `.gitignore`/`.ignore`/`.rgignore` files. It also ignores hidden and binary
full support for `.gitignore`, whereas there are many bugs related to that files by default. ripgrep also implements full support for `.gitignore`,
functionality in other code search tools claiming to provide the same whereas there are many bugs related to that functionality in other code
functionality. search tools claiming to provide the same functionality.
* ripgrep can search specific types of files. For example, `rg -tpy foo` * ripgrep can search specific types of files. For example, `rg -tpy foo`
limits your search to Python files and `rg -Tjs foo` excludes Javascript limits your search to Python files and `rg -Tjs foo` excludes Javascript
files from your search. ripgrep can be taught about new file types with files from your search. ripgrep can be taught about new file types with