summaryrefslogtreecommitdiff
path: root/src/calcurse.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/calcurse.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/calcurse.c')
-rw-r--r--src/calcurse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index 662f185..0ae7e9a 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -368,6 +368,13 @@ main (int argc, char **argv)
do_storage = 1;
break;
+ case KEY_PIPE_ITEM:
+ if (wins_slctd () == APP && apoint_hilt () != 0)
+ day_pipe_item (&conf);
+ else if (wins_slctd () == TOD && todo_hilt () != 0)
+ todo_pipe_item ();
+ break;
+
case KEY_RAISE_PRIORITY:
case KEY_LOWER_PRIORITY:
if (wins_slctd () == TOD && todo_hilt () != 0)