News for hackers. Stuff that matters.
Re:Go Replace - simple and fast search and replace tool for ... by lazyjones on Wednesday May 22, 2013 @07:05AM (#5749974)
Nice! svn support would be useful (ignore .svn directories) and the -r option is easy to remember, but perhaps not so much in line with the already messy standard Unix options (-r or -R for recursive operation).

Note that specifically for Go source code, there is "go fix -r" for syntax/context-aware code replacement (see "godoc fix").

Re:Go Replace - simple and fast search and replace tool for ... by piranha on Wednesday May 22, 2013 @07:16AM (#5750013)
In case of go fix `-r` does something absolutely unrelated.

To be honest, I was just lazy inventing a command line key and it's recursive by design, so it happened this way. Plus, as you say, it's easy to remember because of mnemonics.

I haven't touched svn repos in years, but yeah, that could be added. I know they exist, it just that I haven't felt the need to support them.

Re:Go Replace - simple and fast search and replace tool for ... by piranha on Thursday May 23, 2013 @01:12AM (#5755457)
Btw, it ignores .svn and a bit more common stuff if it doesn't find itself in a git or hg repo.
Re:Go Replace - simple and fast search and replace tool for ... by thameera on Wednesday May 22, 2013 @07:53AM (#5750127)
Exactly. gr can be for find/sed like ack is for grep.