summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-03-17 21:22:07 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-18 21:29:06 +1100
commit1be0ff8da738c706e1aff8111428b36a5efced44 (patch)
tree3f4b90cea75e3803fa0799f76c8e57e34c8cbbeb /pkg/gui/keybindings.go
parent2169b5109f508a28848ced699f698ca3e4ed2c49 (diff)
better upstream tracking and allow renaming a branch
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 0fb196aa3..258409e09 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -577,6 +577,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
},
{
ViewName: "branches",
+ Contexts: []string{"local-branches"},
+ Key: gui.getKey("branches.renameBranch"),
+ Modifier: gocui.ModNone,
+ Handler: gui.handleRenameBranch,
+ Description: gui.Tr.SLocalize("viewResetOptions"),
+ },
+ {
+ ViewName: "branches",
Contexts: []string{"tags"},
Key: gui.getKey("universal.select"),
Modifier: gocui.ModNone,