top | item 33310709

(no title)

leakbang | 3 years ago

From what I could tell by looking at ripgrep's github page, it works exactly the same as grep. So it is not real-time as I type, search.

discuss

order

burntsushi|3 years ago

It might be fast enough though. You haven't specified your corpus size. If your corpus is small enough, ripgrep might be instant enough. Another alternative is to look at fzf paired with ripgrep, but I imagine for large enough corpus sizes, it won't be instant.

Otherwise, if you're searching something large and really absolutely need "real time as I type" as a hard requirement, then you'll not really be looking for a grep per se, but for a tool that builds an inverted index and uses that for searches. So things like Russ Cox's 'codesearch', 'qgrep', 'livegrep' and Sourcegraph.

leakbang|3 years ago

I did notice that ripgrep was noticeably faster than grep, however, I'm looking for a solution that searches through the source code as I type. Something like Fsearch but for searching through source code contents.

I think for something like this even grep would be fast enough.