goreplace icon indicating copy to clipboard operation
goreplace copied to clipboard

Feature Request - Echo the files without changing

Open vikas027 opened this issue 2 years ago • 2 comments

As of now, go-replace replaces the strings in the files in the current directory, it would be nice to also print out the files without changing them.

For example, this is the current behaviour go-replace search -r replace

A sed alternative of what I am looking for cat * | sed 's/search/replace/'

vikas027 avatar Mar 11 '22 04:03 vikas027

Hah, it's funny, but I switched to ripgrep for searching, and for replacing of that kind, and use goreplace only for changing files...

piranha avatar Mar 11 '22 05:03 piranha

yeah, I know :) It will be just good to have the feature, I'll leave it up to you if you wanna build it. Thanks!

vikas027 avatar Mar 11 '22 07:03 vikas027