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:
@@ -22,9 +22,9 @@ func (gui *Gui) handleEditorKeypress(textArea *gocui.TextArea, key gocui.Key, ch
|
|||||||
textArea.MoveCursorDown()
|
textArea.MoveCursorDown()
|
||||||
case key == gocui.KeyArrowUp:
|
case key == gocui.KeyArrowUp:
|
||||||
textArea.MoveCursorUp()
|
textArea.MoveCursorUp()
|
||||||
case key == gocui.KeyArrowLeft:
|
case key == gocui.KeyArrowLeft || key == gocui.KeyCtrlB:
|
||||||
textArea.MoveCursorLeft()
|
textArea.MoveCursorLeft()
|
||||||
case key == gocui.KeyArrowRight:
|
case key == gocui.KeyArrowRight || key == gocui.KeyCtrlF:
|
||||||
textArea.MoveCursorRight()
|
textArea.MoveCursorRight()
|
||||||
case key == newlineKey:
|
case key == newlineKey:
|
||||||
if allowMultiline {
|
if allowMultiline {
|
||||||
|
Reference in New Issue
Block a user