Skip to content

[WebExtension] Open GitHub notifications with shortcuts in Gmail.

License

Notifications You must be signed in to change notification settings

muan/github-gmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

198c09e · Mar 19, 2014
Dec 10, 2013
Dec 6, 2013
Dec 10, 2013
Mar 19, 2014
Dec 11, 2013
Mar 19, 2014
Mar 19, 2014

Repository files navigation

GitHub :octocat: 🔛 💌 Gmail

This is a Chrome Extension that allows you to open threads in GitHub notification emails with a shortcut. ✨

Features

Mail View Shortcut

Open your GitHub notifications using a shortcut (default to shift + g), or this button in mail view:

image

List View Shortcut (*Require setup)

You have to have

  1. Gmail shortcut mode enabled
  2. An organization named label matching the Regular Expression (default to ^\((.+)\)).

And then you will be able to open a selected GitHub notification email thread using ctrl + return(enter) in a list view where the label is present.

list view

Installation

The Easy Way

Install the extension via Chrome webstore

The Mu-An-might-steal-all-my-data-so-I-want-to-manually-load-it Way

  1. Go to Releases and download the latest version.
  2. Unzip the folder wherever you'd like.
  3. Go to Chrome extensions page (chrome://extensions/) and load the folder as an Unpacked extension.

As:

image

Options and preferences

There are 3 preference settings:

  1. Custom domains
  2. Mail view shortcut
  3. List view regular expression

Attention After updating a setting, please refresh both the extensions page in Chrome and the Gmail page.

Custom Domains (for GitHub Enterprise)

If you are using GitHub enterprise and have a custom domain, you can set it in the extension options page.

domain option

Mail View Shortcut

Customize your keyboard shortcut for trigger the View on GitHub button. Change it by focusing the input, and press whatever key you want to be the shortcut. It will be displayed in keyCode which is why you see 71 here instead of G, don't worry about it.

image

List View Regular Expression

Custom Regular Expression for matching labeled Organization name. Eg. /^\((.+)\)/ matches muan in (muan)\github-gmail, and will be use to build the url: https://github.com/muan/github-gmail/issues.

image

Code

All the core functions are written in src/inject/inject.js.

The End

Love ❤️ it? Tell this little bird over at @muanchiou and I'll be thrilled.

Found a 🐛 bug? Open an issue with some emojis. Issues without emojis are not valid. :trollface: