Lurker News

Comments (155) 49 threads

Earlier comments
glouwbug2 replies#
Amazin, why Microsoft hasn't built this for GitHub yet is beyond me.

Can it grep on individual repos?

funklute3 replies#
Why would you want to use this tool to grep individual repos? If you know the repo you're interested in, you can just clone it and then grep it locally...?
m3kw9#
So you don’t have to clone it and grep it locally
big_chungus1 reply#
Some things can take a while to clone. On the top end, repos like blink, webkit, and gecko can take half an hour or more.
leni536#
Even with --depth=1?
tehlike#
I like to grep a code pattern through out all repos. I use gstreamer, and sometimes i just don't know how to use it to do a specific thing. So i search substrings to find out usage patterns by other people.
hcm#
I built https://grephub.com for that. It doesn’t maintain an index so it’s not super snappy, but it’s good enough / better than you’d expect in many cases!
oefrha2 replies#
A tangent, my biggest gripe with GitHub code search (within a repo) off the top of my head is the inability to blacklist directories or only search whitelisted directories. Often times I want to look up the implementation of a function, and bam, three pages of results from tests.
Noctem#
I'm glad I'm not the only one. It's very common that I'll be searching for a keyword that only appears in the actual code a handful of times but hundreds of times in tests. GitHub's search is practically useless in those cases.

I almost always just resort to cloning and searching with ripgrep, which can be annoying if I have no other reason to have the codebase on my machine or it's just a one-off.

cynicalreason#
yeap .. having this issue as well, trying to easily find where a method is defined in JS/TS I'd so much want to be able to exclude `*.(spec|test).(js|ts|jsx|tsx)`
patrickdevivo1 reply#
This is really cool! Awesome work. I assume you've seen https://sourcegraph.com/ as well? This to me seems much clearer and a bit more intuitive (though I've only spent a little time in sourcegraph). Really really cool. Does it also search code comments?
edwinyzh1 reply#
last time I tried sourcegraph doesn't cover the language I use, so it's useless to me.
akavel1 reply#
For regex?? how's language relevant?
edwinyzh#
Sorry, maybe I have confused SourceGraph with https://searchcode.com, but last time I tried, it supports only most widely used languages such as Java, Python and so on, but not the language I use (Delphi/Object Pascal)
hartator#
Excellent work!

I am the CEO at SerpApi. If you need a job, shot me an at julien _at_ serpapi.com.

Load more comments