top | item 35865106

(no title)

colin353 | 2 years ago

I'm Colin from GitHub's code search team, happy to answer any questions.

For more info on how we built this, you can check out our technical blog post from a few months ago https://github.blog/2023-02-06-the-technology-behind-githubs...

discuss

order

davidrjenni|2 years ago

How does it compare to Sourcegraph? What is the main differentiator?

jhgg|2 years ago

It would be really awesome if code search could one day consume LSIF for precise results in its index similar to source graph. The symbol search is good now, but approximate. Having more precise code search by allowing devs to upload LSIF data in their CI pipelines would allow for precise symbol search (go to definition / find usages actually being accurate) and remove irrelevant result.

colin353|2 years ago

Great point. Yes, we initially focused on zero-config approximate code navigation. But we do intend to support build-based code navigation in the future, since the approximate code navigation experience can be pretty poor for some languages (e.g. C/C++).

thinkingemote|2 years ago

Great stuff, is there any update on searches which include code in branches? I often manually find interesting work done in development branches of cloned repos of the one I'm focused on but which never sees the light of day and not found in search. I imagine having the network also part of the search would be a good facet.

s3graham|2 years ago

I've been using it for a few weeks, and it's a great improvement, congrats on the launch.

(Pleeeease make the right click context menu just be the normal default menu though, I (apparently) "Right-click > Back" a lot when using a mouse rather than a trackpad and I keep getting that goofy Emoji dialog.)

panic|2 years ago

Are you planning to release code search as open source? I can’t find a link to the source code anywhere.

catchmeifyoucan|2 years ago

Loving the new Code Search! Might be super specific, but is there any syntax for searching attributes in HTML elements. For example if a React Component called <Button ...some-props color="red" /> what's the best way to find all the buttons that are red?

airstrike|2 years ago

I imagine a future in which this is integrated into vscode so I can go from an error message in the terminal to a search through my code + third-party modules that my code is importing

r9295|2 years ago

You can already do that by including your module folder (eg. node_modules, site-packages etc) in your project tree

lexh|2 years ago

Will this make it to GH enterprise eventually?

colin353|2 years ago

Yes, we're working on bringing it to GitHub enterprise right now.

dmix|2 years ago

Any plans to add support for Vue SFC syntax highlighting?

Edit: correction it looks like that's been fixed since last week, nm