diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-17 12:02:39 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-21 22:07:14 +1100 |
commit | 6b7aaeca45847ebc41aa0fd9b773362d4a79f1ab (patch) | |
tree | d8f35e24c44a1474414cd09c76b9ae9d904c6451 /pkg/gui/keybindings.go | |
parent | 1f3e1720a3a0bd31c0816a94d0b7c5bca1589f96 (diff) |
support adding/removing remotes
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index a67894999..eb817e76d 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -1042,6 +1042,22 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.handleRemoteEnter, }, { + ViewName: "branches", + Contexts: []string{"remotes"}, + Key: 'n', + Modifier: gocui.ModNone, + Handler: gui.handleAddRemote, + Description: gui.Tr.SLocalize("addNewRemote"), + }, + { + ViewName: "branches", + Contexts: []string{"remotes"}, + Key: 'd', + Modifier: gocui.ModNone, + Handler: gui.handleRemoveRemote, + Description: gui.Tr.SLocalize("removeRemote"), + }, + { ViewName: "commits", Key: gocui.MouseLeft, Modifier: gocui.ModNone, |