Skip to content

Commit 6422b39

Browse files
committed
Feat: Add emacs character navigation, because I'm weird like that :)
1 parent fc49068 commit 6422b39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/gui/editors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ func (gui *Gui) handleEditorKeypress(textArea *gocui.TextArea, key gocui.Key, ch
2222
textArea.MoveCursorDown()
2323
case key == gocui.KeyArrowUp:
2424
textArea.MoveCursorUp()
25-
case key == gocui.KeyArrowLeft:
25+
case key == gocui.KeyArrowLeft || key == gocui.KeyCtrlB:
2626
textArea.MoveCursorLeft()
27-
case key == gocui.KeyArrowRight:
27+
case key == gocui.KeyArrowRight || key == gocui.KeyCtrlF:
2828
textArea.MoveCursorRight()
2929
case key == newlineKey:
3030
if allowMultiline {

0 commit comments

Comments
 (0)