saurik
I don't understand what makes this a "code" search and replace tool as opposed to a general text search and replace tool (a la the many many existing options for such). I was kind of expecting some kind of AST structure or grammar spec or at least a quick tokenizer to be able to handle situations like "don't replace this text if it appears in a string constant", but it doesn't mention anything like that.
danilonc
Reminded me of https://github.com/ast-grep/ast-grep and I wonder how it compares in performance and functionality.
laerus
At this rate of naming projects after the same valuable stones, we are going to need namespacing for the CLI tools.
dmix
I used to use https://comby.dev/ which is amazing when it works but I kept having issues where it wouldn't accept my input or it'd error during processing. It was very flaky. So I've resorted to using https://github.com/piranha/goreplace as backup which is much simpler but reliable.

I'll check this one out...

malthejorgensen
Feels similar to `sd` (https://github.com/chmln/sd)

which in my mind was the first “replace” version of ripgrep

grep -> ripgrep

sed -> sd

js2
Most of the time if I'm doing this, it's in a git repo and I only want to affect the checked-in files so that I can easily diff my changes. So I use a combination of `git grep`, `xargs`, and `perl` via a script I named `git-gsr`:

https://gist.github.com/jaysoffian/0eda35a6a41f500ba5c458f02...

Put it in `PATH` and then: `git gsr <old> <new>`

VagabundoP
https://news.ycombinator.com/item?id=40431835

EDIT: Opps same name different project.

jes5199
I'm glad that people make tools like this, but this is a task that I need to do so rarely that I'm likely to forget it exists, which means that I'll likely roll my own (inferior!) version as a one-time thing.
PaulDavisThe1st

    find . [ ... find args ] | sed -e 's/nee\(dl[aeiou]\)/stack\1/g'
nathants
this is cool! i do the same thing[1], wanted ag/rg to be able to search and replace.

1. https://github.com/nathants/agr

Singletoned
Can it do multiline search and replace?
Ringz
Is it possible to store my config files under ~.config/amber/ on MacOS?
harryquach
Not to be confused with this Amber

https://amber-lang.com/

sam0x17
not to be confused with Amber, the crystal lang web framework