summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-22 10:08:44 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commit63209ef71e3de50cce815b5982fec5f659f2eb74 (patch)
tree0c6a492ef5a70453ca5e2261f21804cc3540dc0b /pkg/gui/keybindings.go
parentf63ec38aae9800a05d1b39977c8b51f6f1d4201c (diff)
try allowing creating branches off the stash too
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 51fcdd2a2..fed17e291 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -892,6 +892,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Description: gui.Tr.SLocalize("drop"),
},
{
+ ViewName: "stash",
+ Key: gui.getKey("universal.new"),
+ Handler: gui.wrappedHandler(gui.handleNewBranchOffCurrentItem),
+ Description: gui.Tr.SLocalize("newBranch"),
+ },
+ {
ViewName: "commitMessage",
Key: gui.getKey("universal.confirm"),
Modifier: gocui.ModNone,