diff options
author | Alexey Yerin <yyp@disroot.org> | 2021-04-27 19:23:26 +0300 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-04-27 19:32:20 +0200 |
commit | d12564cc5e2b145f7c6d4122b98dbe2ac9ea620e (patch) | |
tree | 840089a2b24fba046463edc35f07076fc98fbba9 /ui/ui.go | |
parent | Add BUFFER command to jump to the matching buffer (diff) |
editor: Ctrl+{Right,Left} moves cursor by words
A very useful readline feature when combined with ^W can be a really
quick way to reformat a sentence, which is what I do on IRC quite often.
Diffstat (limited to 'ui/ui.go')
-rw-r--r-- | ui/ui.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -176,10 +176,18 @@ func (ui *UI) InputRight() { ui.e.Right() } +func (ui *UI) InputRightWord() { + ui.e.RightWord() +} + func (ui *UI) InputLeft() { ui.e.Left() } +func (ui *UI) InputLeftWord() { + ui.e.LeftWord() +} + func (ui *UI) InputHome() { ui.e.Home() } |