Open dudicoco opened 8 months ago
wow, did't know that before. Adding a short cut to add --replace is quite simple, but how to render the diff preview of origin/replace? Is there any idea?
Interesting idea :thinking:
Unfortunately ripgrep doesn't support replace. From the man page
-r REPLACEMENT, --replace=REPLACEMENT
Replaces every match with the text given when printing results. Neither this flag nor any other ripgrep flag will modify your files.
Is your feature request related to a problem? Please describe. It would be nice to use telescope as a one stop shop for both finding and replacing content in files.
Describe the solution you'd like rg has the
--replace
flag which allows replacing the match, a key binding which would then perform the actual replacement is needed as a final step.Additional context