1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

support alt-enter for inserting newline when typing commit message within the app

This commit is contained in:
Jesse Duffield
2021-04-02 15:08:15 +11:00
parent b4827a98ca
commit 1a5f380c00
9 changed files with 27 additions and 17 deletions

View File

@ -11,7 +11,7 @@ import (
func (gui *Gui) commitMessageEditor(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier) bool {
newlineKey, ok := gui.getKey(gui.Config.GetUserConfig().Keybinding.Universal.AppendNewline).(gocui.Key)
if !ok {
newlineKey = gocui.KeyTab
newlineKey = gocui.KeyAltEnter
}
matched := true