diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-18 09:38:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-21 22:07:14 +1100 |
commit | 3c1322914518168374be02a78cee968cf1d13730 (patch) | |
tree | d31c1064a1101a6081db025328f39789fc3b74c4 /pkg/gui/keybindings.go | |
parent | cea24c2cf98c48e187900041d9e3bbeb93596019 (diff) |
add tags panel
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index a64bb2965..2dfdedf61 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -403,6 +403,38 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Description: gui.Tr.SLocalize("FastForward"), }, { + ViewName: "branches", + Contexts: []string{"tags"}, + Key: gocui.KeySpace, + Modifier: gocui.ModNone, + Handler: gui.handleCheckoutTag, + Description: gui.Tr.SLocalize("checkout"), + }, + { + ViewName: "branches", + Contexts: []string{"tags"}, + Key: 'd', + Modifier: gocui.ModNone, + Handler: gui.handleDeleteTag, + Description: gui.Tr.SLocalize("deleteTag"), + }, + { + ViewName: "branches", + Contexts: []string{"tags"}, + Key: 'P', + Modifier: gocui.ModNone, + Handler: gui.handlePushTag, + Description: gui.Tr.SLocalize("pushTags"), + }, + { + ViewName: "branches", + Contexts: []string{"tags"}, + Key: 'n', + Modifier: gocui.ModNone, + Handler: gui.handleCreateTag, + Description: gui.Tr.SLocalize("createTag"), + }, + { ViewName: "branches", Key: ']', Modifier: gocui.ModNone, @@ -556,6 +588,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Description: gui.Tr.SLocalize("CommitsDiff"), }, { + ViewName: "commits", + Key: 'T', + Modifier: gocui.ModNone, + Handler: gui.handleTagCommit, + Description: gui.Tr.SLocalize("tagCommit"), + }, + { ViewName: "stash", Key: gocui.KeySpace, Modifier: gocui.ModNone, |