Mailspring/internal_packages/message-view-on-github
Ben Gotow a46bad4eb7 refactor(menus): Major prune of keymaps/commands, real conditional menus
Summary:
Keymaps & menus CSON => JSON, remove AtomKeymaps, CommandRegistry use of CSS selectors, use Mousetrap instead

Important Notes:

- The `application:` prefix is reserved for commands which are handled in the application process. Don't use it for other things. You will not receive the events in the window.

- Maintaining dynamic menus seems to come with quite an overhead, because Electron updates the entire menu every time. In the future, we'll need https://github.com/electron/electron/issues/528 to really make things nice. I will be tracking this upstream.

- The format for keyboard shortcuts has changed. `cmd-X` is now `command+shift+x`

Test Plan: Run tests

Reviewers: juan, evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2917
2016-04-24 12:16:25 -05:00
..
assets fix(examples): examples => packages, move away from installing them 2016-01-07 14:56:34 -08:00
keymaps refactor(menus): Major prune of keymaps/commands, real conditional menus 2016-04-24 12:16:25 -05:00
lib fix(view-on-github): Add readme and fix bug 2016-04-14 17:03:57 -04:00
stylesheets feat(selection): Add new display for selection count + update toolbar 2016-03-21 12:20:11 -07:00
icon.png 💄(icon): A delightful seafoam green icon 2016-02-23 10:35:08 -08:00
package.json fix(examples): examples => packages, move away from installing them 2016-01-07 14:56:34 -08:00
README.md fix(view-on-github): Add readme and fix bug 2016-04-14 17:03:57 -04:00

View on GitHub

The "View on GitHub" plugin adds a button to the toolbar above the message view. When you view a message from GitHub that contains a "View on GitHub" link, the button appears and makes it easy to jump to the issue / pull request / comment on GitHub.

This example is a good starting point for plugins that want to create custom actions.

Install this plugin

  1. Download and run N1

  2. From the menu, select Developer > Install a Plugin Manually... The dialog will default to this examples directory. Just choose the package to install it!

    When you install packages, they're moved to ~/.nylas/packages, and N1 runs apm install on the command line to fetch dependencies listed in the package's package.json