summaryrefslogtreecommitdiff
path: root/src/keys.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-06-29 19:26:29 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-07-07 07:05:48 +0200
commit309fa84cb7439221c01f8526fcbc67b6004a95d1 (patch)
tree02b1f0aa6925e578b827474f595c92ef54b1234e /src/keys.c
parent9e60084262e3e85900a42001ca11876e5c452d32 (diff)
downloadcalcurse-309fa84cb7439221c01f8526fcbc67b6004a95d1.zip
Add key binding for pipe-item command
This removes the need of reading the whole data file and find matching entries if we want to parse appointments in external programs. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/keys.c')
-rw-r--r--src/keys.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keys.c b/src/keys.c
index 6f3316f..1a46530 100644
--- a/src/keys.c
+++ b/src/keys.c
@@ -91,6 +91,7 @@ static struct keydef_s keydef[NBKEYS] = {
{"del-item", "d D"},
{"edit-item", "e E"},
{"view-item", "v V"},
+ {"pipe-item", "|"},
{"flag-item", "!"},
{"repeat", "r R"},
{"edit-note", "n N"},
@@ -567,6 +568,8 @@ keys_popup_info (enum key key)
_("Flag the currently selected item as important.");
info[KEY_REPEAT_ITEM] =
_("Repeat an item");
+ info[KEY_PIPE_ITEM] =
+ _("Pipe the currently selected item to an external program.");
info[KEY_EDIT_NOTE] =
_("Attach (or edit if one exists) a note to the currently selected item");
info[KEY_VIEW_NOTE] =