Is this speed competitive with tools like the silver searcher (`ag`) or is the focus here on color?
Show HN: Grep with colours written in Go
11–20 of 90 posts
Re: Show HN: Grep with colours written in Go
#12Useless use of cat candidate.
Re: Show HN: Grep with colours written in Go
#13Useless use of cat candidate.
Re: Show HN: Grep with colours written in Go
#14Do be sure to at least consider supporting no colour! http://no-color.org
Re: Show HN: Grep with colours written in Go
#15Is this speed competitive with tools like the silver searcher (`ag`) or is the focus here on color?
I’m doubtful ag and rg use a lot of smart optimizations to get their speed.
I know ripgrep has a ton of fantastic optimizations by Burntsushi.
You might wanna check it out...before making such statements.
Re: Show HN: Grep with colours written in Go
#16Is this speed competitive with tools like the silver searcher (`ag`) or is the focus here on color?
Re: Show HN: Grep with colours written in Go
#17Do be sure to at least consider supporting no colour! http://no-color.org
Genuinely curious, why do some developers prefer not having colors for ls, grep, etc.? no-color.org mentions that many users prefer having colors disabled, but didn't list any reasons why.
And the color themes for the terminal are godawful. No matter how you spin 16 colors, how solarized or other, everyone is kind of chained more or less to that attrocious 16 color pallet, which is always going to be way way higher contrast or low-fi than something like a vim theme that can pick some complementary colors to work with.
Colors feel like my terminal punching me in the face. No thanks.
Also have you ever logged into ubuntu? Holy shit colors were a TERRIBLE idea.
Re: Show HN: Grep with colours written in Go
#18Earlier quoted context omitted.
I’m doubtful ag and rg use a lot of smart optimizations to get their speed.
Ummm...your kidding right? I know ripgrep has a ton of fantastic optimizations by Burntsushi. You might wanna check it out...before making such statements.
Re: Show HN: Grep with colours written in Go
#19Do be sure to at least consider supporting no colour! http://no-color.org
Genuinely curious, why do some developers prefer not having colors for ls, grep, etc.? no-color.org mentions that many users prefer having colors disabled, but didn't list any reasons why.
Re: Show HN: Grep with colours written in Go
#20Useless use of cat candidate.
Yes, 'cat FILENAME | blush "some text"' and 'blush "some text" So, yes, its unnecessary. And, yes, in a script using cat like that can complicate error handling. But, for interactive use, what advice exactly are you trying to convey?