mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 18:50:39 +02:00
CmdCalendar: Consider waiting status equivalent to pending for purposes of display
The purpose of displaying due dates on the calendar is to convey the relative business of any given day. Waiting status signifies a task should not be displayed in reports yet, but for the purposes of planning, it should be displayed in the calendar overview. Closes #2393.
This commit is contained in:
parent
89ffe13677
commit
22228547ca
1 changed files with 6 additions and 3 deletions
|
@ -175,7 +175,8 @@ int CmdCalendar::execute (std::string& output)
|
|||
Datetime oldest (2037, 12, 31);
|
||||
for (auto& task : tasks)
|
||||
{
|
||||
if (task.getStatus () == Task::pending)
|
||||
auto status = task.getStatus ();
|
||||
if (status == Task::pending || status == Task::waiting)
|
||||
{
|
||||
if (task.has ("due") &&
|
||||
!task.hasTag ("nocal"))
|
||||
|
@ -562,8 +563,10 @@ std::string CmdCalendar::renderMonths (
|
|||
Context::getContext ().config.set ("due", 0);
|
||||
for (auto& task : all)
|
||||
{
|
||||
if (task.getStatus () == Task::pending &&
|
||||
!task.hasTag ("nocal") &&
|
||||
auto status = task.getStatus ();
|
||||
if ((status == Task::pending ||
|
||||
status == Task::waiting ) &&
|
||||
!task.hasTag ("nocal") &&
|
||||
task.has ("due"))
|
||||
{
|
||||
std::string due = task.get ("due");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue