1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-08 22:36:49 +02:00

Feat: Add emacs character navigation, because I'm weird like that :)

This commit is contained in:
lkearn
2022-08-09 17:58:43 +10:00
parent fc49068a6f
commit 6422b399e7

View File

@ -22,9 +22,9 @@ func (gui *Gui) handleEditorKeypress(textArea *gocui.TextArea, key gocui.Key, ch
textArea.MoveCursorDown()
case key == gocui.KeyArrowUp:
textArea.MoveCursorUp()
case key == gocui.KeyArrowLeft:
case key == gocui.KeyArrowLeft || key == gocui.KeyCtrlB:
textArea.MoveCursorLeft()
case key == gocui.KeyArrowRight:
case key == gocui.KeyArrowRight || key == gocui.KeyCtrlF:
textArea.MoveCursorRight()
case key == newlineKey:
if allowMultiline {