summaryrefslogtreecommitdiffstats
path: root/functions.h
diff options
context:
space:
mode:
authorDavid Champion <dgc@bikeshed.us>2016-11-17 15:57:42 -0800
committerDavid Champion <dgc@bikeshed.us>2016-11-17 15:57:42 -0800
commitfdeb4c487b6138c47bcb6e7f5aec07fbc55a557c (patch)
treebbcc9e60b67d8b0a98c84b5379c140c4c1e678e4 /functions.h
parent2f4d02d95e9a8ff54edf1d1b16f886afc50527ba (diff)
Adds <mark-message> binding to create "hotkeys" for messages.
<mark-message>foo<enter> will create a new macro "'foo" which will return to the current message by searching for that message's message id. The initial character of the macro is defined by $mark_macro_prefix, and defaults to "'" for verisimilitude vs. vi. Pushed by Kevin McCarthy with a minor fix.
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions.h b/functions.h
index a0a09d02..6f4b6b48 100644
--- a/functions.h
+++ b/functions.h
@@ -65,6 +65,7 @@ const struct binding_t OpGeneric[] = { /* map: generic */
{ "previous-line", OP_PREV_LINE, "<" },
{ "half-up", OP_HALF_UP, "[" },
{ "half-down", OP_HALF_DOWN, "]" },
+ { "mark-message", OP_MARK_MSG, "~" },
{ "help", OP_HELP, "?" },
{ "tag-prefix", OP_TAG_PREFIX, ";" },
{ "tag-prefix-cond", OP_TAG_PREFIX_COND, NULL },