From 1a4bf2b0a2a54393c401522611f85c2637d1de88 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 17 Jan 2016 20:04:25 +0100 Subject: Add a "hide completed" view to the todo panel Add a second view to the todo panel that hides all completed items. Signed-off-by: Lukas Fleischer --- src/calcurse.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/calcurse.c') diff --git a/src/calcurse.c b/src/calcurse.c index 889c68c..a4dc802 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -423,6 +423,9 @@ static inline void key_generic_scroll_up(void) if (wins_slctd() == CAL) { ui_calendar_view_prev(); wins_update(FLAG_CAL | FLAG_APP); + } else if (wins_slctd() == TOD) { + ui_todo_view_prev(); + wins_update(FLAG_TOD | FLAG_APP); } } @@ -431,6 +434,9 @@ static inline void key_generic_scroll_down(void) if (wins_slctd() == CAL) { ui_calendar_view_next(); wins_update(FLAG_CAL | FLAG_APP); + } else if (wins_slctd() == TOD) { + ui_todo_view_next(); + wins_update(FLAG_TOD | FLAG_APP); } } -- cgit v1.2.3-54-g00ecf