5 ms·
Searching for exact code matches is super useful while coding. Good to see another tool for this. So far, the only tool I know that offers it is grep.app. It
by mg 5y ago
Searching for exact code matches is super useful while coding. Good to see another tool for this.
So far, the only tool I know that offers it is grep.app.
It seems the grep.app index is bigger at the moment? For example:
https://grep.app/search?q=boolean%20isCyclic%28 https://grep.app/search?q=boolean%20isCyclic%28
https://heline.dev/search?q=boolean%20isCyclic%28 https://heline.dev/search?q=boolean%20isCyclic%28
- dotancohen 5y agoGithub also has a code-search feature. It's returning two orders of magnitude more results for "boolean isCyclic" than is grep.app: https://github.com/search?q=%22boolean+isCyclic%28%22+size%3A%3E1&type=Code https://github.com/search?q=%22boolean+isCyclic%28%22+size%3...
- sqs 5y agoSourcegraph (disclaimer: where I work) code search returns ~2700 results (more than the other 2 linked) and properly matches the "(" (which GitHub's current code search incorrectly ignores). https://sourcegraph.com/search?q=context:global+boolean+isCyclic%28+count:10000&patternType=literal https://sourcegraph.com/search?q=context:global+boolean+isCy... (Still, awesome to see more code search tools get built! Most devs aren't using code search and have no idea why it's awesome, so anything that changes that is a huge help.)
- dotancohen 5y agoTerrific, thank you!
- ramoz 5y agoWow, the Sourcegraph search is returning results I couldn’t find yesterday on GitHub. Bookmarked.
- wodenokoto 5y agoDoesn't it ignore special characters like : , . ( ) etc.? I remember struggling to find function definitions because `f(` would be treated like `f` I've also not found a way to filter out tests. I know tests are also code, but most of the time I am not interested in them.
- dotancohen 5y agoYou've got to put the search string in quotes.
- petepete 5y agoThere's also cs.github.com which is fantastic and in beta at the moment.
- ahmadrosid 5y agoI was inspired by grep.app in making this project.