repgrep
repgrep copied to clipboard
ripgrep has the `-r` flag to replace in results. This could auto-populate the replacement text with repgrep.
Good suggestion, I have roughly implemented this in the rg-replace-flag branch. One question for you: if -r/--replace is passed, should rgr start in the "select matches" mode, or the "input replacement" mode?
Basically these scenarios:
-r barpassed:rgropens in "input replacement" mode withbarprefilled (if you want to select/deselect items, you'd have to pressescto go back to the previous mode)-r barpassed:rgropens as per usual in select mode, but whenenteris pressed to input a replacementbaris pre-filled- <your suggestion here>