user
user

Reputation: 18529

GitHub : Is it possible to search inside code and sort by stars

I'm not sure if this is the right forum for this question. Saw quite a few Q&A related to search on GitHub, hence posting here. E.g. Search code inside a Github project

GitHub advanced search allows terms like stars:>100 but the query term is restricted to repository names only. Is it possible to search for a term inside the files (code) & sort by stars? My aim is to see which popular repos are using a particular keyword in their code. It would be very useful if GitHub's advanced search options for Repositories worked for Code also.

Upvotes: 38

Views: 4834

Answers (1)

Andrei Damian-Fekete
Andrei Damian-Fekete

Reputation: 1980

It is not possible to sort by stars when searching inside code.

From an e-mail from github.com support:

Code search does not support sorting by number of stars, but I will definitely add your +1 to that suggestion internally! I can't say if or when a change will happen, but your feedback is in the right hands.


You may want to vote for this feature: Add Stars count filter.
The feedback is related to this announcement: Improving GitHub code search

Upvotes: 26

Related Questions