mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancement - special tags
- Implemented the 'nocal' special tag.
This commit is contained in:
parent
a345541ff7
commit
feeafb9b23
4 changed files with 9 additions and 5 deletions
|
@ -15,7 +15,8 @@
|
||||||
+ Improved man pages (thanks to Andy Lester).
|
+ Improved man pages (thanks to Andy Lester).
|
||||||
+ Default .taskrc files are now largely empty, and rely almost completed
|
+ Default .taskrc files are now largely empty, and rely almost completed
|
||||||
on default values.
|
on default values.
|
||||||
+ Special tags are now documented, and the 'tags' command highlights them.
|
+ Special tags 'nocal', 'nocolor' and 'nonag' are implemented.
|
||||||
|
+ The 'tags' command highlights special tags.
|
||||||
+ Fixed bug #427, preventing the task edit command to parse annotation
|
+ Fixed bug #427, preventing the task edit command to parse annotation
|
||||||
dates with spaces.
|
dates with spaces.
|
||||||
+ Fixed bug #433, making task command output more consistent.
|
+ Fixed bug #433, making task command output more consistent.
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -2,7 +2,7 @@
|
||||||
New Features in task 1.9.3
|
New Features in task 1.9.3
|
||||||
|
|
||||||
- Start and stop times for a task can now be recorded as annotations.
|
- Start and stop times for a task can now be recorded as annotations.
|
||||||
- Special tags 'nocolor' and 'nonag'.
|
- Special tags 'nocolor', 'nocal' and 'nonag'.
|
||||||
|
|
||||||
Please refer to the ChangeLog file for full details. There are too many to
|
Please refer to the ChangeLog file for full details. There are too many to
|
||||||
list here.
|
list here.
|
||||||
|
|
|
@ -275,8 +275,9 @@ Certain tags (called 'special tags'), can be used to affect the way tasks are
|
||||||
treated. For example, is a task has the special tag 'nocolor', then it is
|
treated. For example, is a task has the special tag 'nocolor', then it is
|
||||||
exempt from all color rules. The supported special tags are:
|
exempt from all color rules. The supported special tags are:
|
||||||
|
|
||||||
+nocolor Disable color rules processing for this task.
|
+nocolor Disable color rules processing for this task
|
||||||
+nonag Completion of this task suppresses all nag messages.
|
+nonag Completion of this task suppresses all nag messages
|
||||||
|
+nocal This task will not appear on the calendar
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B project:<project-name>
|
.B project:<project-name>
|
||||||
|
|
|
@ -1927,6 +1927,7 @@ std::string renderMonths (
|
||||||
foreach (task, all)
|
foreach (task, all)
|
||||||
{
|
{
|
||||||
if (task->getStatus () == Task::pending &&
|
if (task->getStatus () == Task::pending &&
|
||||||
|
!task->hasTag ("nocal") &&
|
||||||
task->has ("due"))
|
task->has ("due"))
|
||||||
{
|
{
|
||||||
std::string due = task->get ("due");
|
std::string due = task->get ("due");
|
||||||
|
@ -2063,7 +2064,8 @@ int handleReportCalendar (std::string &outs)
|
||||||
{
|
{
|
||||||
if (task->getStatus () == Task::pending)
|
if (task->getStatus () == Task::pending)
|
||||||
{
|
{
|
||||||
if (task->has ("due"))
|
if (task->has ("due") &&
|
||||||
|
!task->hasTag ("nocal"))
|
||||||
{
|
{
|
||||||
++countDueDates;
|
++countDueDates;
|
||||||
Date d (atoi (task->get ("due").c_str ()));
|
Date d (atoi (task->get ("due").c_str ()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue