Show HN: Grep with colours written in Go
31–40 of 90 posts
Re: Show HN: Grep with colours written in Go
#32Useless use of cat candidate.
This is one of my pet peeves - complaining about technically unnecessary, but fully benign uses of cat. 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?
Re: Show HN: Grep with colours written in Go
#33Do 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.
Another bonus is that I don't feel cheated when I log into systems that don't support colors (*BSD, Solaris, etc). Everything just looks normal to me. Even non-syntax highlighted vi (not vim).
Re: Show HN: Grep with colours written in Go
#34Earlier quoted context omitted.
I could be wrong, but I read valarauca1's comment as "I’m doubtful. ag and rg use a lot of smart optimizations to get their speed."
lol people's reading comprensión is so bad sometimes
Re: Show HN: Grep with colours written in Go
#35Useless use of cat candidate.
This is one of my pet peeves - complaining about technically unnecessary, but fully benign uses of cat. 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?
Re: Show HN: Grep with colours written in Go
#36Earlier quoted context omitted.
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.
I turned most colors off many years ago. For me it was because several tools (especially ls) used colors that were very hard to distinguish with my terminal background. I found myself spending too much time trying to figure out what was on my screen. Another bonus is that I don't feel cheated when I log into systems that don't support colors (*BSD, Solaris, etc). Everything just looks normal to me. Even non-syntax hi…
If your terminal has a background very close to one of the colors on that palette, that is a theme problem, not an app problem.
Re: Show HN: Grep with colours written in Go
#37Useless use of cat candidate.
This is one of my pet peeves - complaining about technically unnecessary, but fully benign uses of cat. 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?
< FILENAME blush "some text"
Re: Show HN: Grep with colours written in Go
#38Is this speed competitive with tools like the silver searcher (`ag`) or is the focus here on color?
I'm okay with it being not as fast because speed is not the goal here, but rather highlighting specific patterns to make it easier to spot for the human eyes, especially when tailing log lines from your development webserver.
I suppose in that sense it does aim to be fast. Fast for the human to parse.
Re: Show HN: Grep with colours written in Go
#39Do 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.
HN discussion: https://news.ycombinator.com/item?id=3717303
Re: Show HN: Grep with colours written in Go
#40Useless use of cat candidate.
This is one of my pet peeves - complaining about technically unnecessary, but fully benign uses of cat. 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?