Add --files alias for -f - #402
Conversation
|
Does it make sense to make one for -g as well? |
I call YAGNI here-- So if anything, I'd go the opposite direction with |
|
I don't get why I would remove |
Because it's rarely used and there's an easy alternative: But that conversation is out of scope here. The direct question was whether to add a long-files flag for Personally, I wouldn't because I expect |
I use I get that So I'll just add |
I'm also tired of |
|
@pelagic — Ack2 actually allowed combining Making Explicit separation of (Yes I know I can include |
Not exactly true. Someone who remembers only one might reasonably but wrongly expect it to be an abbreviation for any of the existing three. Which is not an argument against aliasing, exactly, but weakens the argument for, slightly. (FWIW, |
I understand that perfectly! |
Same! But in the above I do have a bash script that does equivalent of |
Some justifications for adding --files an alias for
-f:--filesis more readable for scripting--filescould be easier to remember. Lot of CLI tools also use-ffor "force".rg. Even if you don't user ripgrep directly, it's a favorite choice of AI coding agents, so increasing number of people are seeingrgsyntax scroll by, including--files.--filesis unlikely to be used for anything other than an anliasfor
-fin the future, so it's likely forward-compatible, too.(I'm not suggesting adding any /further/ compatible with
rg, only that's nice to align new flags with /something/)