summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-11-16 17:35:59 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-11-21 22:07:14 +1100
commit986abc1e45e314e68beb7c0ba92804e60c99310b (patch)
tree788b7f689a051c414bec231489279f0f41a949bd /pkg/gui/keybindings.go
parent61dac10bb94874800d7b955c875cbcc3b3efa546 (diff)
support viewing a remote branch
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 3b469d81e..a67894999 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -415,6 +415,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Handler: gui.handlePrevBranchesTab,
},
{
+ ViewName: "branches",
+ Contexts: []string{"remote-branches"},
+ Key: gocui.KeyEsc,
+ Modifier: gocui.ModNone,
+ Handler: gui.handleRemoteBranchesEscape,
+ Description: gui.Tr.SLocalize("ReturnToRemotesList"),
+ },
+ {
ViewName: "commits",
Key: 's',
Modifier: gocui.ModNone,
@@ -1027,6 +1035,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Handler: gui.handleRemotesClick,
},
{
+ ViewName: "branches",
+ Contexts: []string{"remotes"},
+ Key: gocui.KeyEnter,
+ Modifier: gocui.ModNone,
+ Handler: gui.handleRemoteEnter,
+ },
+ {
ViewName: "commits",
Key: gocui.MouseLeft,
Modifier: gocui.ModNone,