From 309fa84cb7439221c01f8526fcbc67b6004a95d1 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 29 Jun 2011 19:26:29 +0200 Subject: 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 --- src/calcurse.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/calcurse.c') 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) -- cgit v1.2.3-54-g00ecf