~rjarry/aerc

b17e8aed7c36f5f5ffc3c490704df78694477370 — Vitaly Ovchinnikov 11 months ago 65db1c6
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>
2 files changed, 6 insertions(+), 0 deletions(-)

M config/binds.go
M doc/aerc-binds.5.scd
M config/binds.go => config/binds.go +2 -0
@@ 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},

M doc/aerc-binds.5.scd => doc/aerc-binds.5.scd +4 -0
@@ 169,6 169,10 @@ special keys are supported:
:  Insert
|  *<delete>*
:  Delete
|  *<c-delete>*
:  Ctrl+Delete
|  *<a-delete>*
:  Alt+Delete
|  *<backspace>*
:  Backspace
|  *<exit>*