split due into 'due today' and 'overdue'

This commit is contained in:
Damien Elmes 2021-02-11 10:49:36 +10:00
parent b75851d823
commit 397cff9194
2 changed files with 11 additions and 1 deletions

View File

@ -129,3 +129,4 @@ browsing-again-today = Again
browsing-edited-today = Edited browsing-edited-today = Edited
browsing-sidebar-due-today = Due browsing-sidebar-due-today = Due
browsing-sidebar-untagged = Untagged browsing-sidebar-untagged = Untagged
browsing-sidebar-overdue = Overdue

View File

@ -640,7 +640,7 @@ class SidebarTreeView(QTreeView):
name=TR.BROWSING_SIDEBAR_DUE_TODAY, name=TR.BROWSING_SIDEBAR_DUE_TODAY,
icon=icon, icon=icon,
type=type, type=type,
on_click=search(SearchTerm(card_state=SearchTerm.CARD_STATE_DUE)), on_click=search(SearchTerm(due_on_day=0)),
) )
root.add_simple( root.add_simple(
name=TR.BROWSING_ADDED_TODAY, name=TR.BROWSING_ADDED_TODAY,
@ -670,6 +670,15 @@ class SidebarTreeView(QTreeView):
) )
), ),
) )
root.add_simple(
name=TR.BROWSING_SIDEBAR_OVERDUE,
icon=icon,
type=type,
on_click=search(
SearchTerm(card_state=SearchTerm.CARD_STATE_DUE),
SearchTerm(negated=SearchTerm(due_on_day=0)),
),
)
# Tree: Card State # Tree: Card State
########################### ###########################