Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Echo the files without changing #40

Open
vikas027 opened this issue Mar 11, 2022 · 2 comments
Open

Feature Request - Echo the files without changing #40

vikas027 opened this issue Mar 11, 2022 · 2 comments

Comments

@vikas027
Copy link

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/'

@piranha
Copy link
Owner

piranha commented Mar 11, 2022

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

@vikas027
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants