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 <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer
2016-01-17 20:04:25 +01:00
parent 2857bac971
commit 1a4bf2b0a2
5 changed files with 84 additions and 15 deletions

View File

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