3 ms·
I use both ag and rg with fish. For me, both are equally fast (because my repositories are small enough that it doesn't matter), but ag has better UI (I remembe
by StavrosK 9y ago
I use both ag and rg with fish. For me, both are equally fast (because my repositories are small enough that it doesn't matter), but ag has better UI (I remember the --python option, but have no idea how to filter with rg). Those are about the only differences that matter to me, so I use whatever is muscle memory. Usually rg, unless I want to search for specific filetypes.
If you're wondering whether to switch, don't bother unless you find ag slow.
Fish, on the other hand, I can't live without. I recommend fisherman and z, and a few other plugins I forget now (I use one that shows a notification if your long running command completes while the terminal is in the background, I love it).
- burntsushi 9y ago> don't bother unless you find ag slow Or if you want more correct gitignore matching. > (I remember the --python option, but have no idea how to filter with rg) rg -tpy 'def __init__' or, to exclude Python files rg -Tpy 'def __init__' You can see the list of types available with `rg --type-list`.
- deleted 9y ago[deleted]
- StavrosK 9y agoAh, thanks for that, I didn't even know rg had types (I thought -t accepted the actual extensions). I'm not saying your tool is worse than ag, just that it doesn't make sense to switch if you're not having problems with ag.