Searching code on Github (web)

Anything not related to STM32
Post Reply
stevestrong
Posts: 79
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 2

Searching code on Github (web)

Post by stevestrong »

Hi,
a stupid question: is anyone aware how to search for source code on Github (web)?
It seems that Github can only find exact words (case insensitive), or terms including the searched query extended with "_" (underscore).
Partial matches are not detected. Is that right?

For example, I want to find all words containing the term "debug" in a specific repository.
If I only enter "debug", then "debugPorts" is not found, but "debug_port" is found.
What should I enter in the search field in order to also find "debugPorts"?

BennehBoy
Posts: 38
Joined: Sat Jan 04, 2020 2:38 am

Re: Searching code on Github (web)

Post by BennehBoy »

Have you tried standard match all operators such as %? Not something I've tried btw.

User avatar
fpiSTM
Posts: 266
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 5
Location: Le Mans
Contact:

Re: Searching code on Github (web)

Post by fpiSTM »

I got several times the same issue than you.
And it seems not possible to find using a pattern.
You can try using this:
https://github.com/search/advanced

Here the consideration for search with all the restrictions:
https://help.github.com/en/github/searc ... ode-search

stevestrong
Posts: 79
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 2

Re: Searching code on Github (web)

Post by stevestrong »

Thanks Frederic, I have already read all those links and many more, but none of them provided answers to my issue.
That is why posted here in the hope that some has a solution.

But it seems that the usage of match operators is not supported, so I think we have to live with this restriction.

User avatar
fpiSTM
Posts: 266
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 5
Location: Le Mans
Contact:

Re: Searching code on Github (web)

Post by fpiSTM »

stevestrong wrote:
Thu Mar 26, 2020 2:01 pm
But it seems that the usage of match operators is not supported, so I think we have to live with this restriction.
Right. :roll:

Post Reply

Return to “Off topic”