diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-16 17:35:59 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-21 22:07:14 +1100 |
commit | 986abc1e45e314e68beb7c0ba92804e60c99310b (patch) | |
tree | 788b7f689a051c414bec231489279f0f41a949bd /pkg/gui/keybindings.go | |
parent | 61dac10bb94874800d7b955c875cbcc3b3efa546 (diff) |
support viewing a remote branch
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 15 |
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, |