rgw
v1.0.6
Published
> Search and replace in current directory.
Downloads
5
Readme
ripgrep-write (rgw)
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.
Install
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
Usage
$ 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.