blush

Dev tools

command line search tool

SHOW HN2018

127points
82comments
#328of 2,155 in 2018
Top 16%of 2018 by points

How HN took it

DebatedReal support and real criticism

5 positive, 5 neutral or asking, 0 mixed, 7 critical, out of 17 comments about the project. Thread score -0.03.

Idea: 2 for, 4 againstPerformance: 1 for, 2 againstDocs: 1 for, 1 againstDesign: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Language-specific colouring is useful and nicely done

    From 2 comments
    • Nice job! Language-specific coloring is really nice! I'll give it a try. I normally use a different Golang tool called sift as my grep replacement (which I love so far):…
      ereyes01 on HN
    • Nice UI! Some time ago I wrote something similar, because I was missing some features in ripgrep (which is otherwise pretty awesome): https://github.com/dominikschulz/gg
      tex0 on HN

Objections

  • Performance is slower than ag or ripgrep; no search optimisations

    From 3 comments
    • A quick look at the source shows that it appears to be linear and just uses `strings.Contains` or `r.MatchString` on each line, so I don't think it has any of the optimizations…
      mvkg on HN
    • It's a very nice idea and you should be proud of what you've built, but my personal opinion is that speed is a core feature of `grep`. A good place to start would be this: why…
      ozkatz on HN
    • I’m doubtful ag and rg use a lot of smart optimizations to get their speed.
      valarauca1 on HN
  • Colour output is unwanted by many users; NO_COLOR standard suggested

    From 2 comments
    • Do be sure to at least consider supporting no colour! http://no-color.org
      abstractbeliefs on HN
    • I don't understand why this is a standard. First: It requires that every command line tool add support for this environment variable. It may not be much effort for each project,…
      ggreer on HN

Requests

  • Support the NO_COLOR environment variable

    From 2 comments
    • Do be sure to at least consider supporting no colour! http://no-color.org
      abstractbeliefs on HN
    • +1 for NO_COLOR. For example, yellow text on a dull yellow background? No thanks. For years I've just wrapped commands on bash to strip the colour control-codes from stdout.…
      notinventedhear on HN
  • Handle broken pipe errors cleanly

    From 2 comments
    • But... Can it elegantly suppress broken pipe errors?
      teekert on HN
    • Handling signals are not implemented yet. I appreciate it if you file an issue when you find any. Thanks.
      arsham on HN

Questions

  • Is the speed competitive with ag?

    From 1 comment
    • Is this speed competitive with tools like the silver searcher (`ag`) or is the focus here on color?
      JackCh on HN

Alternatives named

  • GNU grep colour support

    From 1 comment
  • ripgrep

    From 2 comments
    • Nice UI! Some time ago I wrote something similar, because I was missing some features in ripgrep (which is otherwise pretty awesome): https://github.com/dominikschulz/gg
      tex0 on HN
    • Note that you don't need Boyer Moore for the common case. ripgrep for example will very rarely use Boyer Moore. Its work horse is much simpler and typically faster:…
      burntsushi on HN
  • sift

    From 1 comment
    • Nice job! Language-specific coloring is really nice! I'll give it a try. I normally use a different Golang tool called sift as my grep replacement (which I love so far):…
      ereyes01 on HN
  • the silver searcher (ag)

    From 1 comment
    • Is this speed competitive with tools like the silver searcher (`ag`) or is the focus here on color?
      JackCh on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/17236967)