34 ms·
People in comments suggesting alternatives like sourcegraph, zoekt, hound, etc -- I've set up local code search for repositories on my computer a while ago and
by karlicoss 6y ago
People in comments suggesting alternatives like sourcegraph, zoekt, hound, etc -- I've set up local code search for repositories on my computer a while ago and tried out most of the tools I could find at the time [0]. Nothing comes remotely close to a simple ripgrep against literally all of the repositories, both in terms of convenience and speed (it's instantaneous against hundreds of repositories, at least on SSD!). The only hassle is configuring .ignore files (most is covered by .gitignores), but usually only have to do it a few times to exclude the few spammy offenders.
I'm using it with my emacs (+helm), I just have a global keybinding which instantly opens a new code search. I could imagine having a web frontend being very convenient for people who aren't hooked on Emacs, even I often want to persist a code search result for several days, so will give datasette-ripgrep a try!
[0] https://beepb00p.xyz/pkm-search.html#code https://beepb00p.xyz/pkm-search.html#code