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>
This commit is contained in:
Lukas Fleischer
2011-06-29 19:26:29 +02:00
parent 9e60084262
commit 309fa84cb7
5 changed files with 33 additions and 7 deletions

View File

@@ -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)