diff options
author | Syphdias <syphdias+git@gmail.com> | 2023-05-21 11:40:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-21 18:40:05 +0900 |
commit | 37f258b1bf863633205548e7b8194776daab463b (patch) | |
tree | 307c214a985ffe24441aec0a0169a5e661783900 /src/options.go | |
parent | e2dd2a133e780dbc9184ecf04892edaa98115e8a (diff) |
Add key combinations for ctrl-delete and shift-delete (#3284)
Currently there is not option to bind ctrl-delete and shift-delete. As
suggested by issue #3240, shift-delete could be used to bind "delete
entry from history" as it is a common way to do so in other
applications, e.g. browsers.
This, however, does only implement to use the key combination itself and
does not assign a default action to any of them. This does enable to
call one's all predefined actions. With the exec action this can
expanded like the issue #3240 suggested.
If desirable, the key combinations could later get a default behavior.
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Diffstat (limited to 'src/options.go')
-rw-r--r-- | src/options.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/options.go b/src/options.go index 6e3040b3..4db34640 100644 --- a/src/options.go +++ b/src/options.go @@ -614,6 +614,8 @@ func parseKeyChordsImpl(str string, message string, exit func(string)) map[tui.E add(tui.BSpace) case "ctrl-space": add(tui.CtrlSpace) + case "ctrl-delete": + add(tui.CtrlDelete) case "ctrl-^", "ctrl-6": add(tui.CtrlCaret) case "ctrl-/", "ctrl-_": @@ -684,6 +686,8 @@ func parseKeyChordsImpl(str string, message string, exit func(string)) map[tui.E add(tui.SLeft) case "shift-right": add(tui.SRight) + case "shift-delete": + add(tui.SDelete) case "left-click": add(tui.LeftClick) case "right-click": |