mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
#480 Allow cycling side panels with number keys
This commit is contained in:
committed by
Jesse Duffield
parent
a045313e08
commit
ac5cbc1d2c
@ -523,6 +523,36 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
||||
Handler: gui.handleOpenOldCommitFile,
|
||||
Description: gui.Tr.SLocalize("openFile"),
|
||||
},
|
||||
{
|
||||
ViewName: "",
|
||||
Key: '1',
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.goToStatus,
|
||||
},
|
||||
{
|
||||
ViewName: "",
|
||||
Key: '2',
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.goToFiles,
|
||||
},
|
||||
{
|
||||
ViewName: "",
|
||||
Key: '3',
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.goToBranches,
|
||||
},
|
||||
{
|
||||
ViewName: "",
|
||||
Key: '4',
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.goToCommits,
|
||||
},
|
||||
{
|
||||
ViewName: "",
|
||||
Key: '5',
|
||||
Modifier: gocui.ModNone,
|
||||
Handler: gui.goToStash,
|
||||
},
|
||||
}
|
||||
|
||||
for _, viewName := range []string{"status", "branches", "files", "commits", "commitFiles", "stash", "menu"} {
|
||||
|
Reference in New Issue
Block a user