acheronfail / repgrep

An interactive replacer for ripgrep that makes it easy to find and replace across files on the command line.
Apache License 2.0
267 stars 4 forks source link

Support replacing with capture groups #89

Closed acheronfail closed 1 year ago

acheronfail commented 1 year ago

See discussion here: https://github.com/BurntSushi/ripgrep/issues/2325#issuecomment-1602344404

We can't get the matches from ripgrep's JSON output, but we should be able to run the regex against the matched lines and perform the replacements that way.

jokeyrhyme commented 1 year ago

:astonished: