I also prefer ripgrep, because it’s a lot closer to a drop-in replacement for grep, and sometimes I’m on a server where only grep is installed. I don’t want to have to remember how to use 2 different programs for the same thing.
ag does have some functionality for file-matching that ripgrep (and grep) is missing, but once I discovered fd https://github.com/sharkdp/fd (a drop-in-ish replacement for find) and xargs I never looked back.
Typical command: fd match_some_paths | xargs rg match_lines_in_some_files (-l if i just want the matching filenames)
I also prefer ripgrep, because it’s a lot closer to a drop-in replacement for grep, and sometimes I’m on a server where only grep is installed. I don’t want to have to remember how to use 2 different programs for the same thing.
ag does have some functionality for file-matching that ripgrep (and grep) is missing, but once I discovered fd https://github.com/sharkdp/fd (a drop-in-ish replacement for find) and xargs I never looked back.
Typical command:
fd match_some_paths | xargs rg match_lines_in_some_files (-l if i just want the matching filenames)