1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-20 05:19:24 +02:00

Added commit keybinding to staging views

This commit is contained in:
Glenn Vriesman 2020-02-03 14:18:03 +01:00 committed by Jesse Duffield
parent 5f53d50492
commit 47d7d87c82

View File

@ -1148,6 +1148,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Modifier: gocui.ModNone,
Handler: gui.handleMouseScrollDown,
},
{
ViewName: "main",
Contexts: []string{"patch-building", "staging"},
Key: gui.getKey("files.commitChanges"),
Modifier: gocui.ModNone,
Handler: gui.handleCommitPress,
Description: gui.Tr.SLocalize("CommitChanges"),
},
{
ViewName: "main",
Contexts: []string{"merging"},