Show tasks with deadline first, in order

This commit is contained in:
Vyn 2024-04-17 15:07:33 +02:00
parent 3030e15d5e
commit d1a4858504
4 changed files with 19 additions and 1 deletions

View file

@ -75,6 +75,11 @@ bool TaskItem::hasDate() const
return isDate(data.date);
}
bool TaskItem::hasTime() const
{
return getStartTime() != "" && getEndTime() != "";
}
bool TaskItem::hasTag(const std::string &tag) const
{
return vectorUtils::contains(data.tags, tag);