An interactive replacer for ripgrep
.
This is an interactive command line tool to make find and replacement easy.
It uses [ripgrep
] to find, and then provides you with a simple interface to see
the replacements in real-time and conditionally replace matches.
Supported file encodings:
Other encodings are possibly supported but untested at the moment. See this issue for more information.
After installing, just use rgr
(think: rg
+ replace
).
The arguments are:
bash
rgr <rg arguments> # See `rgr --help` for more details
Here's an example where we ran the command:
bash
rgr -C5 dreamcast
And have entered the replacement flycast
:
First and foremost, make sure you've installed ripgrep
(AKA: rg
).
To do so see the [ripgrep
installation instructions].
See the [releases] page for pre-compiled binaries.
NOTE: The minimum Rust version required is 1.46.0
.
bash
cargo install repgrep
Maintained by orhun.
repgrep
can be installed
from the official repositories using Pacman.
bash
pacman -S repgrep
NOTE: The minimum Rust version required is 1.64.0
.
bash
git clone https://github.com/acheronfail/repgrep/
cd repgrep
cargo install --path .
License: Unlicense OR MIT OR Apache-2.0