From 3c4cf6f0250186dfc4e072d7ca4416eb495b16b8 Mon Sep 17 00:00:00 2001
From: Daniel Bayley <daniel.bayley@me.com>
Date: Sat, 16 Jul 2016 16:51:36 +0100
Subject: [PATCH] Play nice with other packages that also use the branch
 indicator
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

<kbd>⌥</kbd> or <kbd>⇧</kbd> click to replace previous functionality.
---
 README.md    | 2 +-
 index.coffee | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 9c87fa6..4861244 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 0985bdd..cc2eacc 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}) ->
-- 
GitLab