mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1360
- TW-1360 color.until directive missing.
This commit is contained in:
parent
5a6f81a1fd
commit
1ac7dc0d5d
6 changed files with 15 additions and 2 deletions
|
@ -111,6 +111,7 @@
|
||||||
- TW-1341 confirmation config setting should apply to config command as well
|
- TW-1341 confirmation config setting should apply to config command as well
|
||||||
(thanks to Charles Ulrich).
|
(thanks to Charles Ulrich).
|
||||||
- TW-1345 taskrc.5 manpage errors.
|
- TW-1345 taskrc.5 manpage errors.
|
||||||
|
- TW-1360 color.until directive missing.
|
||||||
- TW-1361 Strange results with complex filter (thanks to Jim B).
|
- TW-1361 Strange results with complex filter (thanks to Jim B).
|
||||||
- TW-1366 In diagnostics it's called 'Cert', and in config it's called
|
- TW-1366 In diagnostics it's called 'Cert', and in config it's called
|
||||||
'certificate' (thanks to Jack).
|
'certificate' (thanks to Jack).
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -14,6 +14,7 @@ New Features in taskwarrior 2.4.0
|
||||||
command.
|
command.
|
||||||
- The 'new-uuid' verbosity token shows the UUID of newly created tasks.
|
- The 'new-uuid' verbosity token shows the UUID of newly created tasks.
|
||||||
- The 'info' report now breaks down urgency values.
|
- The 'info' report now breaks down urgency values.
|
||||||
|
- New 'color.until' color rule.
|
||||||
|
|
||||||
New commands in taskwarrior 2.4.0
|
New commands in taskwarrior 2.4.0
|
||||||
|
|
||||||
|
|
|
@ -760,6 +760,9 @@ Task is started, therefore active.
|
||||||
.B color.scheduled
|
.B color.scheduled
|
||||||
Task is scheduled, therefore ready for work.
|
Task is scheduled, therefore ready for work.
|
||||||
.br
|
.br
|
||||||
|
.B color.until
|
||||||
|
Task has an expiration date.
|
||||||
|
.br
|
||||||
.B color.blocking
|
.B color.blocking
|
||||||
Task is blocking another in a dependency.
|
Task is blocking another in a dependency.
|
||||||
.br
|
.br
|
||||||
|
|
|
@ -121,6 +121,7 @@ int CmdShow::execute (std::string& output)
|
||||||
" color.tagged"
|
" color.tagged"
|
||||||
" color.undo.after"
|
" color.undo.after"
|
||||||
" color.undo.before"
|
" color.undo.before"
|
||||||
|
" color.until"
|
||||||
" column.padding"
|
" column.padding"
|
||||||
" complete.all.tags"
|
" complete.all.tags"
|
||||||
" confirmation"
|
" confirmation"
|
||||||
|
|
|
@ -151,6 +151,13 @@ static void colorizeScheduled (Task& task, const Color& base, Color& c)
|
||||||
c.blend (base);
|
c.blend (base);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
static void colorizeUntil (Task& task, const Color& base, Color& c)
|
||||||
|
{
|
||||||
|
if (task.has ("until"))
|
||||||
|
c.blend (base);
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
static void colorizeTag (Task& task, const std::string& rule, const Color& base, Color& c)
|
static void colorizeTag (Task& task, const std::string& rule, const Color& base, Color& c)
|
||||||
{
|
{
|
||||||
|
@ -312,6 +319,7 @@ void autoColorize (Task& task, Color& c)
|
||||||
else if (*r == "color.pri.none") colorizePriorityNone (task, base, c);
|
else if (*r == "color.pri.none") colorizePriorityNone (task, base, c);
|
||||||
else if (*r == "color.active") colorizeActive (task, base, c);
|
else if (*r == "color.active") colorizeActive (task, base, c);
|
||||||
else if (*r == "color.scheduled") colorizeScheduled (task, base, c);
|
else if (*r == "color.scheduled") colorizeScheduled (task, base, c);
|
||||||
|
else if (*r == "color.until") colorizeUntil (task, base, c);
|
||||||
else if (*r == "color.project.none") colorizeProjectNone (task, base, c);
|
else if (*r == "color.project.none") colorizeProjectNone (task, base, c);
|
||||||
else if (*r == "color.tag.none") colorizeTagNone (task, base, c);
|
else if (*r == "color.tag.none") colorizeTagNone (task, base, c);
|
||||||
else if (*r == "color.due") colorizeDue (task, base, c);
|
else if (*r == "color.due") colorizeDue (task, base, c);
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
# Ensure python finds the local simpletap and basetest modules
|
|
||||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
from basetest import BaseTestCase
|
from basetest import BaseTestCase
|
||||||
|
@ -41,7 +40,7 @@ class BaseTestBug1306(BaseTestCase):
|
||||||
"confirmation=no\n")
|
"confirmation=no\n")
|
||||||
|
|
||||||
class TestBug1306(BaseTestBug1306):
|
class TestBug1306(BaseTestBug1306):
|
||||||
def test_overdue(self):
|
def test_mod_before_add(self):
|
||||||
"""FILTER before 'add' command upgraded to MODIFICATION"""
|
"""FILTER before 'add' command upgraded to MODIFICATION"""
|
||||||
self.callTaskSuccess(["rc:1306.rc", "project:PROJ", "add", "foo"])
|
self.callTaskSuccess(["rc:1306.rc", "project:PROJ", "add", "foo"])
|
||||||
code, out, err = self.callTaskSuccess(["rc:1306.rc", "1", "info"])
|
code, out, err = self.callTaskSuccess(["rc:1306.rc", "1", "info"])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue