diff --git a/README.md b/README.md index 9c87fa6f4fe63a1678df36c49852c93c80da8bb8..48612447ac927c63350e6795a21e064d5cf0b2ab 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ==================== Open the current [Atom] project in _[GitKraken]_. -This can be activated from the _Packages_ menu, _command palette_, from the context menu on the root project folder in _tree view_, or the git _branch_ indicator in the _status bar_. +This can be activated from the _Packages_ menu, _command palette_, from the context menu on the root project folder in _tree view_, or the git _branch_ indicator in the _status bar_. <kbd>⌥</kbd> or <kbd>⇧</kbd> click will also work here. An instance of _GitKraken_ will be spawned for each project by default, but can be configured in the package settings to only ever run a single instance of the application. diff --git a/index.coffee b/index.coffee index 0985bdd2c418b2019c249e5b6a7d264b6e2120af..cc2eacc1d65d8ede2acd622a4c692b64773ed2e6 100644 --- a/index.coffee +++ b/index.coffee @@ -21,8 +21,9 @@ module.exports = @subs.add atom.commands.add 'atom-workspace', 'gitkraken:release': => @open @project - atom.packages.onDidActivateInitialPackages => - @subs.add 'status-bar','click', selector, @open @project + @subs.add atom.packages.onDidActivateInitialPackages => + @subs.add 'status-bar','click', @selector, ({altKey, shiftKey}) => + @open @project if altKey or shiftKey #------------------------------------------------------------------------------- open: ({path}) ->