Skip to content

Instantly share code, notes, and snippets.

@M-Razavi
Last active March 16, 2023 14:11
Show Gist options
  • Save M-Razavi/e90a3ebc7a0c0c60e878a7a333d954e8 to your computer and use it in GitHub Desktop.
Save M-Razavi/e90a3ebc7a0c0c60e878a7a333d954e8 to your computer and use it in GitHub Desktop.
Create a Chrome GitHub Search Shortcut

Create a Chrome search shortcut for your GitHub

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

Instructions-1: search in a specific repository

  1. Open Chrome > Settings
  2. Search "manage search engines" and click into it
  3. Click "Add"

  1. Give "search engine" a name. e.g GitHub - Some repo
  2. Give "keyword" a shortcut e.g gh
  3. 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

  1. Click "Add".

  2. Search! e.g Type "gh NameOfComponent" in your address bar.

Instructions-2: search in all repository of your organization/user

follow the instruction below and use the following URL in step 6.

  1. 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


  1. Click "Add".

  2. Search! e.g Type "g NameOfComponent" in your address bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment