mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
test
type safe view access
This commit is contained in:
@ -625,21 +625,21 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
||||
ViewName: "branches",
|
||||
Contexts: []string{TAGS_CONTEXT_KEY},
|
||||
Key: gui.getKey(config.Universal.Select),
|
||||
Handler: gui.handleCheckoutTag,
|
||||
Handler: gui.withSelectedTag(gui.handleCheckoutTag),
|
||||
Description: gui.Tr.LcCheckout,
|
||||
},
|
||||
{
|
||||
ViewName: "branches",
|
||||
Contexts: []string{TAGS_CONTEXT_KEY},
|
||||
Key: gui.getKey(config.Universal.Remove),
|
||||
Handler: gui.handleDeleteTag,
|
||||
Handler: gui.withSelectedTag(gui.handleDeleteTag),
|
||||
Description: gui.Tr.LcDeleteTag,
|
||||
},
|
||||
{
|
||||
ViewName: "branches",
|
||||
Contexts: []string{TAGS_CONTEXT_KEY},
|
||||
Key: gui.getKey(config.Branches.PushTag),
|
||||
Handler: gui.handlePushTag,
|
||||
Handler: gui.withSelectedTag(gui.handlePushTag),
|
||||
Description: gui.Tr.LcPushTag,
|
||||
},
|
||||
{
|
||||
@ -653,7 +653,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
||||
ViewName: "branches",
|
||||
Contexts: []string{TAGS_CONTEXT_KEY},
|
||||
Key: gui.getKey(config.Commits.ViewResetOptions),
|
||||
Handler: gui.handleCreateResetToTagMenu,
|
||||
Handler: gui.withSelectedTag(gui.handleCreateResetToTagMenu),
|
||||
Description: gui.Tr.LcViewResetOptions,
|
||||
OpensMenu: true,
|
||||
},
|
||||
|
Reference in New Issue
Block a user