#find #replace #ripgrep #regex #grep

app repgrep

An interactive command line replacer for ripgrep

24 releases

new 0.12.2 Mar 22, 2023
0.11.0 Mar 21, 2023
0.10.5 Jan 3, 2022
0.10.0 Jan 6, 2021
0.4.3 Jun 24, 2020

#70 in Text processing

Download history 2/week @ 2022-12-03 3/week @ 2022-12-10 21/week @ 2022-12-17 10/week @ 2022-12-24 3/week @ 2022-12-31 5/week @ 2023-01-07 3/week @ 2023-01-14 7/week @ 2023-01-21 9/week @ 2023-01-28 42/week @ 2023-02-04 41/week @ 2023-02-11 40/week @ 2023-02-18 4/week @ 2023-02-25 2/week @ 2023-03-04 10/week @ 2023-03-11 136/week @ 2023-03-18

153 downloads per month

Unlicense OR MIT OR Apache-2.0 and LGPL-3.0

4.5K SLoC

crate documentation Average time to resolve an issue Percentage of issues still open

repgrep (rgr)

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:

  • UTF8
  • UTF16BE
  • UTF16LE

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:

rgr <rg arguments> # See `rgr --help` for more details

Here's an example where we ran the command:

rgr -C5 dreamcast

And have entered the replacement flycast:

demo using rgr


First and foremost, make sure you've installed ripgrep (AKA: rg). To do so see the ripgrep installation instructions.

Precompiled binaries

See the releases page for pre-compiled binaries.

Via Cargo

NOTE: The minimum Rust version required is 1.46.0.

cargo install repgrep

From Source (via Cargo)

NOTE: The minimum Rust version required is 1.64.0.

git clone https://github.com/acheronfail/repgrep/
cd repgrep
cargo install --path .

License: Unlicense OR MIT OR Apache-2.0


~669K SLoC