mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
- Added legend to "task calendar" output
This commit is contained in:
parent
f73c64801c
commit
74e77e4dc5
2 changed files with 12 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
+ Bug: when run without arguments, task dumps core on Solaris 10
|
||||
+ "task calendar" now reports all months with due pending tasks
|
||||
+ Added rules for colorization by tag, project and keyword
|
||||
+ Added legend to "task calendar"
|
||||
|
||||
0.9.9 (5/27/2008)
|
||||
+ Autoconf/automake behaving properly.
|
||||
|
|
12
src/task.cpp
12
src/task.cpp
|
@ -1856,7 +1856,7 @@ std::string renderMonth (
|
|||
due.year () == year)
|
||||
{
|
||||
table.setCellFg (row, dow + 1, Text::black);
|
||||
table.setCellBg (row, dow + 1, d < today.day () ? Text::red : Text::yellow);
|
||||
table.setCellBg (row, dow + 1, d < today.day () ? Text::on_red : Text::on_yellow);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1915,6 +1915,16 @@ void handleReportCalendar (const TDB& tdb, T& task, Config& conf)
|
|||
++yFrom;
|
||||
}
|
||||
}
|
||||
|
||||
std::cout << "Legend: "
|
||||
<< Text::colorize (Text::cyan, Text::nocolor, "today")
|
||||
<< ", "
|
||||
<< Text::colorize (Text::black, Text::on_yellow, "due")
|
||||
<< ", "
|
||||
<< Text::colorize (Text::black, Text::on_red, "overdue")
|
||||
<< "."
|
||||
<< std::endl
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue