diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-16 22:01:14 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-16 22:24:54 +1000 |
commit | db826b3c8795e47e3471ab76bc4bcb131892c224 (patch) | |
tree | 37938ead603d4da7697ba4391f91e173787b2b17 /pkg/gui/keybindings.go | |
parent | be658e7d64c8d120a6c7ca9c59cbb05957135c1d (diff) |
add keybinding to create new branch off of commit
retain focus in commits panel
surface prompt errors
better description
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 6e4afceec..e149dc66d 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -778,6 +778,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { { ViewName: "commits", Contexts: []string{"branch-commits"}, + Key: gui.getKey("universal.new"), + Modifier: gocui.ModNone, + Handler: gui.wrappedHandler(gui.handleNewBranchOffCommit), + Description: gui.Tr.SLocalize("createNewBranchFromCommit"), + }, + { + ViewName: "commits", + Contexts: []string{"branch-commits"}, Key: gui.getKey("commits.tagCommit"), Handler: gui.handleTagCommit, Description: gui.Tr.SLocalize("tagCommit"), |