Skip to content
Snippets Groups Projects
Commit 3c4cf6f0 authored by Daniel Bayley's avatar Daniel Bayley
Browse files

Play nice with other packages that also use the branch indicator

<kbd>⌥</kbd> or <kbd>⇧</kbd> click to replace previous functionality.
parent 0f6da420
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
==================== ====================
Open the current [Atom] project in _[GitKraken]_. 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. 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.
......
...@@ -21,8 +21,9 @@ module.exports = ...@@ -21,8 +21,9 @@ module.exports =
@subs.add atom.commands.add 'atom-workspace', @subs.add atom.commands.add 'atom-workspace',
'gitkraken:release': => @open @project 'gitkraken:release': => @open @project
atom.packages.onDidActivateInitialPackages => @subs.add atom.packages.onDidActivateInitialPackages =>
@subs.add 'status-bar','click', selector, @open @project @subs.add 'status-bar','click', @selector, ({altKey, shiftKey}) =>
@open @project if altKey or shiftKey
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
open: ({path}) -> open: ({path}) ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment