How to make ripgrep not match filenames? #1880
-
Lets say i have a file |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You aren't running ripgrep though. Or at least, you're not running only ripgrep. You're running some other tool that is either using ripgrep to match filenames or is matching filenames itself. When asking questions about ripgrep, I definitely prefer that you do it in the context of running |
Beta Was this translation helpful? Give feedback.
You aren't running ripgrep though. Or at least, you're not running only ripgrep. You're running some other tool that is either using ripgrep to match filenames or is matching filenames itself.
When asking questions about ripgrep, I definitely prefer that you do it in the context of running
rg
commands on the command line. In that context,rg pattern
only searches the contents of files forpattern
. It does not also search filenames.