mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1301
- TW-1301 Virtual tag +PENDING (thanks to Profpatsch). - Also added +COMPLETED and +DELETED.
This commit is contained in:
parent
a49ed165c3
commit
c6b0c0d927
5 changed files with 11 additions and 3 deletions
1
AUTHORS
1
AUTHORS
|
@ -205,3 +205,4 @@ suggestions:
|
||||||
jck
|
jck
|
||||||
Michele Vetturi
|
Michele Vetturi
|
||||||
Jeremiah Marks
|
Jeremiah Marks
|
||||||
|
Profpatsch
|
||||||
|
|
|
@ -9,14 +9,13 @@ Features
|
||||||
- TW-255 'Mask' instead of 'iMask' shown in info report (thanks to Benjamin
|
- TW-255 'Mask' instead of 'iMask' shown in info report (thanks to Benjamin
|
||||||
Weber)
|
Weber)
|
||||||
- TW-261 Easy to create "not deletable" task (thanks to Jan Kunder).
|
- TW-261 Easy to create "not deletable" task (thanks to Jan Kunder).
|
||||||
- TW-278 Cygwin throws warnings building mk_wcwidth() in wcwidth6.c.
|
|
||||||
- TW-1255 New testing framework (thanks to Renato Alves).
|
- TW-1255 New testing framework (thanks to Renato Alves).
|
||||||
- TW-1258 Portuguese Localization (thanks to Renato Alves).
|
- TW-1258 Portuguese Localization (thanks to Renato Alves).
|
||||||
- TW-1260 New virtual tags YESTERDAY, TOMORROW.
|
- TW-1260 New virtual tags YESTERDAY, TOMORROW.
|
||||||
- TW-1261 Migrate test bug.360.t to new unit testing framework (thanks to
|
- TW-1261 Migrate test bug.360.t to new unit testing framework (thanks to
|
||||||
Renato Alves).
|
Renato Alves).
|
||||||
- TW-1274 Map 'modification' attribute to 'modified' (thanks to jck).
|
- TW-1274 Map 'modification' attribute to 'modified' (thanks to jck).
|
||||||
- TW-1302 CmdShow.cpp:244: bad length in substr ? (thanks to David Binderman).
|
- TW-1301 Virtual tag +PENDING (thanks to Profpatsch).
|
||||||
- Removed deprecated 'echo.command' setting, in favor of the 'header' and
|
- Removed deprecated 'echo.command' setting, in favor of the 'header' and
|
||||||
'affected' verbosity tokens.
|
'affected' verbosity tokens.
|
||||||
- Removed deprecated 'edit.verbose' setting, in favor of the 'edit' verbosity
|
- Removed deprecated 'edit.verbose' setting, in favor of the 'edit' verbosity
|
||||||
|
@ -35,6 +34,7 @@ Bugs
|
||||||
- TD-42 Cannot compile taskd - GNUTLS_VERSION undefined in diag.cpp (thanks
|
- TD-42 Cannot compile taskd - GNUTLS_VERSION undefined in diag.cpp (thanks
|
||||||
to Michele Vetturi).
|
to Michele Vetturi).
|
||||||
- TD-45 Fix preprocessor define (thanks to Jochen Sprickerhof).
|
- TD-45 Fix preprocessor define (thanks to Jochen Sprickerhof).
|
||||||
|
- TW-278 Cygwin throws warnings building mk_wcwidth() in wcwidth6.c.
|
||||||
- TW-1254 Calc command can segfault on negative numbers (thanks to Renato
|
- TW-1254 Calc command can segfault on negative numbers (thanks to Renato
|
||||||
Alves).
|
Alves).
|
||||||
- TW-1282 incorrect URLs in man task-sync (thanks to Jeremiah Marks).
|
- TW-1282 incorrect URLs in man task-sync (thanks to Jeremiah Marks).
|
||||||
|
@ -44,6 +44,7 @@ Bugs
|
||||||
Wilk).
|
Wilk).
|
||||||
- TW-1296 make test/run_all exit with non-zero code if a test fail (thanks to
|
- TW-1296 make test/run_all exit with non-zero code if a test fail (thanks to
|
||||||
Jakub Wilk).
|
Jakub Wilk).
|
||||||
|
- TW-1302 CmdShow.cpp:244: bad length in substr ? (thanks to David Binderman).
|
||||||
- #1511 sync init crashes if client certification file is empty or invalid
|
- #1511 sync init crashes if client certification file is empty or invalid
|
||||||
(thanks to Marton Suranyi).
|
(thanks to Marton Suranyi).
|
||||||
- #1508 Show command highlight configuration (thanks to Nicolas Appriou).
|
- #1508 Show command highlight configuration (thanks to Nicolas Appriou).
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -5,7 +5,7 @@ New Features in taskwarrior 2.4.0
|
||||||
- Removed deprecated commands 'push', 'pull' and 'merge'.
|
- Removed deprecated commands 'push', 'pull' and 'merge'.
|
||||||
- Portuguese (por-PRT) localization.
|
- Portuguese (por-PRT) localization.
|
||||||
- Better handling for deletion of recurring tasks.
|
- Better handling for deletion of recurring tasks.
|
||||||
- New virtual tags: YESTERDAY, TOMORROW, READY.
|
- New virtual tags: YESTERDAY, TOMORROW, READY, PENDING, COMPLETED, DELETED.
|
||||||
|
|
||||||
New commands in taskwarrior 2.4.0
|
New commands in taskwarrior 2.4.0
|
||||||
|
|
||||||
|
|
|
@ -588,6 +588,9 @@ are:
|
||||||
UNTIL Matches if the task expires
|
UNTIL Matches if the task expires
|
||||||
WAITING Matches if the task is waiting
|
WAITING Matches if the task is waiting
|
||||||
ANNOTATED Matches if the task has annotations
|
ANNOTATED Matches if the task has annotations
|
||||||
|
PENDING Matches if the task has pending status
|
||||||
|
COMPLETED Matches if the task has completed status
|
||||||
|
DELETED Matches if the task has deleted status
|
||||||
|
|
||||||
You can use +BLOCKED to filter blocked tasks, or -BLOCKED for unblocked tasks.
|
You can use +BLOCKED to filter blocked tasks, or -BLOCKED for unblocked tasks.
|
||||||
Similarly, -BLOCKED is equivalent to +UNBLOCKED.
|
Similarly, -BLOCKED is equivalent to +UNBLOCKED.
|
||||||
|
|
|
@ -1169,6 +1169,9 @@ bool Task::hasTag (const std::string& tag) const
|
||||||
if (tag == "WAITING") return has ("wait");
|
if (tag == "WAITING") return has ("wait");
|
||||||
if (tag == "ANNOTATED") return hasAnnotations ();
|
if (tag == "ANNOTATED") return hasAnnotations ();
|
||||||
if (tag == "PARENT") return has ("mask");
|
if (tag == "PARENT") return has ("mask");
|
||||||
|
if (tag == "PENDING") return get ("status") == "pending";
|
||||||
|
if (tag == "COMPLETED") return get ("status") == "completed";
|
||||||
|
if (tag == "DELETED") return get ("status") == "deleted";
|
||||||
|
|
||||||
// Concrete tags.
|
// Concrete tags.
|
||||||
std::vector <std::string> tags;
|
std::vector <std::string> tags;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue