aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Ovchinnikov <v@postbox.nz>2023-09-12 13:36:06 +0000
committerRobin Jarry <robin@jarry.cc>2023-09-19 01:16:52 +0200
commitb17e8aed7c36f5f5ffc3c490704df78694477370 (patch)
tree7197402e1d37e9f7b67ba2026b9d945f36dcbc37
parent65db1c6513d655aec2ab1345fb68ba0349dfc79f (diff)
downloadaerc-b17e8aed7c36f5f5ffc3c490704df78694477370.tar.gz
aerc-b17e8aed7c36f5f5ffc3c490704df78694477370.zip
binds: control and alt modifiers for delete
Add Control and Alt modifiers to Delete key, so C-Delete and A-Delete kebyoard shortcuts could be bound. Signed-off-by: Vitaly Ovchinnikov <v@postbox.nz> Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--config/binds.go2
-rw-r--r--doc/aerc-binds.5.scd4
2 files changed, 6 insertions, 0 deletions
diff --git a/config/binds.go b/config/binds.go
index 99c4df34..78f68eb4 100644
--- a/config/binds.go
+++ b/config/binds.go
@@ -443,6 +443,8 @@ var keyNames = map[string]KeyStroke{
"end": {tcell.ModNone, tcell.KeyEnd, 0},
"insert": {tcell.ModNone, tcell.KeyInsert, 0},
"delete": {tcell.ModNone, tcell.KeyDelete, 0},
+ "c-delete": {tcell.ModCtrl, tcell.KeyDelete, 0},
+ "a-delete": {tcell.ModAlt, tcell.KeyDelete, 0},
"backspace": {tcell.ModNone, tcell.KeyBackspace2, 0},
"help": {tcell.ModNone, tcell.KeyHelp, 0},
"exit": {tcell.ModNone, tcell.KeyExit, 0},
diff --git a/doc/aerc-binds.5.scd b/doc/aerc-binds.5.scd
index 0230610c..b9d4cb8a 100644
--- a/doc/aerc-binds.5.scd
+++ b/doc/aerc-binds.5.scd
@@ -169,6 +169,10 @@ special keys are supported:
: Insert
| *<delete>*
: Delete
+| *<c-delete>*
+: Ctrl+Delete
+| *<a-delete>*
+: Alt+Delete
| *<backspace>*
: Backspace
| *<exit>*