1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

allow adding a file viewed from the commit files panel

This commit is contained in:
Jesse Duffield
2019-03-15 13:29:27 +11:00
parent 466fc4227e
commit b6447ebdbb
2 changed files with 12 additions and 0 deletions

View File

@ -466,6 +466,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Handler: gui.handleDiscardOldFileChange,
Description: gui.Tr.SLocalize("discardOldFileChange"),
},
{
ViewName: "commitFiles",
Key: 'o',
Modifier: gocui.ModNone,
Handler: gui.handleOpenOldCommitFile,
Description: gui.Tr.SLocalize("openFile"),
},
}
for _, viewName := range []string{"status", "branches", "files", "commits", "commitFiles", "stash", "menu"} {