mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-31 23:19:40 +02:00
Added more keybinds
* Commit with editor * Commit without hook Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com>
This commit is contained in:
parent
47d7d87c82
commit
047c3cf880
@ -1150,12 +1150,28 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
ViewName: "main",
|
ViewName: "main",
|
||||||
Contexts: []string{"patch-building", "staging"},
|
Contexts: []string{"staging"},
|
||||||
Key: gui.getKey("files.commitChanges"),
|
Key: gui.getKey("files.commitChanges"),
|
||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.handleCommitPress,
|
Handler: gui.handleCommitPress,
|
||||||
Description: gui.Tr.SLocalize("CommitChanges"),
|
Description: gui.Tr.SLocalize("CommitChanges"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ViewName: "main",
|
||||||
|
Contexts: []string{"staging"},
|
||||||
|
Key: gui.getKey("files.commitChangesWithoutHook"),
|
||||||
|
Modifier: gocui.ModNone,
|
||||||
|
Handler: gui.handleWIPCommitPress,
|
||||||
|
Description: gui.Tr.SLocalize("commitChangesWithoutHook"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ViewName: "main",
|
||||||
|
Contexts: []string{"staging"},
|
||||||
|
Key: gui.getKey("files.commitChangesWithEditor"),
|
||||||
|
Modifier: gocui.ModNone,
|
||||||
|
Handler: gui.handleCommitEditorPress,
|
||||||
|
Description: gui.Tr.SLocalize("CommitChangesWithEditor"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ViewName: "main",
|
ViewName: "main",
|
||||||
Contexts: []string{"merging"},
|
Contexts: []string{"merging"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user