Skip to content

Instantly share code, notes, and snippets.

@anglinb
Last active September 3, 2017 17:56
Show Gist options
  • Save anglinb/dae2aebbe7b42879f04231a5f116dabd to your computer and use it in GitHub Desktop.
Save anglinb/dae2aebbe7b42879f04231a5f116dabd to your computer and use it in GitHub Desktop.
Quickly access GitHub repos by leveraging Chrome's search engine settings

tl;dr You can use Chrome's custom search as a text-expander to quickly access GitHub repos.


Chrome's custom search engine settings take a name, keyword, and a URL (which contains a %s). When you type the keyword in the browser and press tab, the search bar will say Search {name} and will allow you to keep typing. When you press enter, whatever you typed will be injected into the URL you set by replacing %s with your input. This is really powerful because you can essentially setup a hotkey to get the prefix for your GitHub namespace or maybe your company's org.

Example:

  • name: GitHub @anglinb
  • keyword: a
  • URL: https://github.com/anglinb/%s

Autocomplete.gif

Setup:

  1. Visit chrome://settings/searchEngines
  2. Click Add and enter the keyword & GitHub URL (ex: keyword:gh, URL:https://github.com/github/%s)
  3. Profit!

@missinformed orignally showed this to me--thank you so much! 🎉 🎉 🎉

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