Search and replace in current directory.
This is a thin wrapper around ripgrep (rg) that allows you to save the proposed replacements. For the moment in only allows you to specify the search and replace arguments and searches in the current directory.
-
Depends on ripgrep, so install if not already: https://github.com/BurntSushi/ripgrep
-
Depends on nodejs, so install if not already: https://nodejs.org/en/download/
-
Finally install rgw:
$ npm install rgw
$ rgw [search] [replace]
It will show the ripgrep of what would be replaced.
You can then either apply all changes, or interactively decide on each change seperately.