I work on code search at GitHub – what needs to improve?
twitter.com
twitter.com
2. Inline expand in search results. Let me click a button to see all matches in a file when there's more than fits into your result preview, rather than having to click into the search result then repeat the same search with my browser search to find where in the file it is
Also bunching dupes and near-dupes. It stinks to wade through 100s of duplicate files.
For C and C++ files, it would be nice if you prioritized implementation files (and only header files with inline code etc) above boring header files in the search results.
E.g. this appears in X more times (in Y other repositories). Particularly useful when the code is part of sdk (like aws sdk) which almost all repos have a copy off, and so the result appears 5k times with the same file showing over and over.
I use GitHub search a lot to find how people are using an API or some function but the main results get obscured because of the problem above.
If someone fixed my issue in a new commit in fork somewhere, or already added the feature I need, I'd really like to know, so I don't reinvent the wheel!
I want to be able to hover over a variable, function or class and see where it is defined and some places where it is used elsewhere.
Essentially the features of an advanced IDE, without the ability to edit and a simple user interface. I don't want the website to break if JS isn't enabled or use a 1000% CPU.
Edit: checked a little project I committed last weekend, and it works! I think the search indexing is done every once in a while, not incrementally.
So having the function/method/var/etc definition(s) at the top of the results.
git grep works only for primitive results, but for all the metadata you need proper indices and an ui. Eg. exclude forks, rank headers higher than source. Rank titles or headers higher than bodies. Verbatim vs regex vs parsed search queries.
Xapian can all do that. And is very efficient on that scale. Unlike elasticsearch or Google code search.
I think they made it harder to find - I remember being able to get to it in just the search bar. Having the syntax autocompleted for you would be nice.
It would be great if you could exact match and also if the results would be from master by default. Quite often it puts me in a commit and I have no idea why or if it's still current.
$ git clone —depth 1 —bare <URL>
Followed by such as:
$ git-grep <regex>
$ git-log -G<regex> —stat -55
So, Sourcegraph will remain independent. (Sourcegraph CEO here.)