~rjarry/aerc-devel

aerc: binds: control and alt modifiers for delete v2 APPLIED

Vitaly Ovchinnikov: 1
 binds: control and alt modifiers for delete

 2 files changed, 6 insertions(+), 0 deletions(-)
#1056647 alpine-edge.yml success
#1056648 openbsd.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~rjarry/aerc-devel/patches/44604/mbox | git am -3
Learn more about email & git

[PATCH aerc v2] binds: control and alt modifiers for delete Export this patch

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>
---

- v1 - initial version
- v2 - man page updated to reflect the changes
 config/binds.go      | 2 ++
 doc/aerc-binds.5.scd | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/config/binds.go b/config/binds.go
index 99c4df3..78f68eb 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 0230610..b9d4cb8 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>*
-- 
2.39.2 (Apple Git-143)
aerc/patches: SUCCESS in 5m2s

[binds: control and alt modifiers for delete][0] v2 from [Vitaly Ovchinnikov][1]

[0]: https://lists.sr.ht/~rjarry/aerc-devel/patches/44604
[1]: mailto:v@postbox.nz

✓ #1056648 SUCCESS aerc/patches/openbsd.yml     https://builds.sr.ht/~rjarry/job/1056648
✓ #1056647 SUCCESS aerc/patches/alpine-edge.yml https://builds.sr.ht/~rjarry/job/1056647
Vitaly Ovchinnikov, Sep 12, 2023 at 15:36: