summaryrefslogtreecommitdiffstats
path: root/functions.h
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-01-22 19:09:55 -0800
committerKevin McCarthy <kevin@8t8.us>2020-01-23 13:18:15 -0800
commit7e0886af9c054827447a09eeb6f854736349e196 (patch)
treebb97f18188b615993aa6394b1ba41cc6715bc7d7 /functions.h
parent235c74a74c0ab377156ebadec2efeb413ed01a0b (diff)
Add move-up and move-down functions to compose menu.
This adds the ability to rearrange the order of the attachments, including swapping the first attachment if desired. The compose menu doesn't support nested attachments, but since data structures and code are shared with recvattach, the new functions use the v2r and try to behave sensibly with respect to parent pointer adjustments. However, the functions do restrict movement to be between siblings. Adding code to support cross-tree movement would be more complicated for no current purpose.
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions.h b/functions.h
index dc0a1c1d..3f52225c 100644
--- a/functions.h
+++ b/functions.h
@@ -389,6 +389,8 @@ const struct binding_t OpCompose[] = { /* map: compose */
{ "view-alt-mailcap", OP_COMPOSE_VIEW_ALT_MAILCAP, "V" },
{ "send-message", OP_COMPOSE_SEND_MESSAGE, "y" },
{ "pipe-entry", OP_PIPE, "|" },
+ { "move-down", OP_COMPOSE_MOVE_DOWN, NULL },
+ { "move-up", OP_COMPOSE_MOVE_UP, NULL },
{ "attach-key", OP_COMPOSE_ATTACH_KEY, "\033k" },
{ "pgp-menu", OP_COMPOSE_PGP_MENU, "p" },