summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-11-17 13:47:47 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-11-21 22:07:14 +1100
commita9cd647075119c760ca22cceba8c4ad14687b732 (patch)
treec0327f30ec6ab244a14c07003dfce65c135017ee /pkg/gui/keybindings.go
parentf0cd730fbb025d5c9068913f5ef11c5082617209 (diff)
support deleting remote branches
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 19d2191f5..88e35bc5c 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -1074,6 +1074,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Description: gui.Tr.SLocalize("mergeIntoCurrentBranch"),
},
{
+ ViewName: "branches",
+ Contexts: []string{"remote-branches"},
+ Key: 'd',
+ Modifier: gocui.ModNone,
+ Handler: gui.handleDeleteRemoteBranch,
+ Description: gui.Tr.SLocalize("deleteBranch"),
+ },
+ {
ViewName: "commits",
Key: gocui.MouseLeft,
Modifier: gocui.ModNone,