News for hackers. Stuff that matters.
Re:Show HN: Search code in GitHub repos using regular expres... by oefrha on Sunday February 23, 2020 @01:23PM (#22398515)
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.
Re:Show HN: Search code in GitHub repos using regular expres... by Noctem on Sunday February 23, 2020 @07:39PM (#22400635)
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.

Re:Show HN: Search code in GitHub repos using regular expres... by cynicalreason on Monday February 24, 2020 @04:08AM (#22402654)
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)`