summaryrefslogtreecommitdiff
path: root/src/calcurse.c
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-01-17 20:04:25 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-01-18 18:04:18 +0100
commit1a4bf2b0a2a54393c401522611f85c2637d1de88 (patch)
treeba67832cbddbe7fd3a45a7797b369e8dd5d357aa /src/calcurse.c
parent2857bac97163ea43bf087e6350d44016fe1764b6 (diff)
downloadcalcurse-1a4bf2b0a2a54393c401522611f85c2637d1de88.zip
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>
Diffstat (limited to 'src/calcurse.c')
-rw-r--r--src/calcurse.c6
1 files changed, 6 insertions, 0 deletions
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);
}
}