Thanks to David Winterbottom (@codeinthehole). See https://twitter.com/codeinthehole/status/1346774847221870593
- 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.
So, do I add a search engine for each repository?