If you only want to search in a specific repository, follow the Instruction-1 that David tweeted Winterbottom. For searching in whole repositories of organiation/user follow the Instruction-2
- Open Chrome > Settings
- Search "manage search engines" and click into it
- Click "Add"
- Give "search engine" a name. e.g GitHub - Some repo
- Give "keyword" a shortcut e.g gh
- Give "URL with %s in place of query" the URL below:
https://github.com/search?q=%s+repo%3A[ORG]%2F[REPO]&type=Code
Replace `[ORG]` with your organisation/username and `[REPO]` with the name of your repository.
e.g for Django:
https://github.com/search?q=%s+repo%3Adjango%2Fdjango&type=Code
-
Click "Add".
-
Search! e.g Type "gh NameOfComponent" in your address bar.
follow the instruction below and use the following URL in step 6.
- Give "URL with %s in place of query" the URL below:
https://github.com/search?type=code&q=org%3A[ORG]+%s
Replace `[ORG]` with your organisation/username with the name of your organization/user.
e.g for Django:
https://github.com/search?type=code&q=org%3Adjango+%s
-
Click "Add".
-
Search! e.g Type "g NameOfComponent" in your address bar.