summaryrefslogtreecommitdiffstats
path: root/pkg/gui/editors.go
diff options
context:
space:
mode:
authorlkearn <liam@sproutlabs.com.au>2022-08-09 17:58:43 +1000
committerlkearn <liam@sproutlabs.com.au>2022-08-09 17:58:43 +1000
commit6422b399e73967f012c29b05c9a26fc9e852711a (patch)
tree87065d9ea2b0b851427caffc98643cc39b9c96e1 /pkg/gui/editors.go
parentfc49068a6f534001880da0f14406ac6978449819 (diff)
Feat: Add emacs character navigation, because I'm weird like that :)
Diffstat (limited to 'pkg/gui/editors.go')
-rw-r--r--pkg/gui/editors.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/editors.go b/pkg/gui/editors.go
index 6f40c6d58..777d897d8 100644
--- a/pkg/gui/editors.go
+++ b/pkg/gui/editors.go
@@ -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 {