mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 14:36:44 +02:00
Feature
- Added some more low-effort, low-risk virutal tags. Why not. - Updated man page.
This commit is contained in:
parent
a7b06bd0ee
commit
983e07ab01
4 changed files with 15 additions and 6 deletions
|
@ -29,7 +29,8 @@ Features
|
||||||
+ Removed deprecated 'fg:' and 'bg:' attributes.
|
+ Removed deprecated 'fg:' and 'bg:' attributes.
|
||||||
+ The 'diagnostics' command now reports libuuid details.
|
+ The 'diagnostics' command now reports libuuid details.
|
||||||
+ New characters for parsing and formating dates ('n', 's' and 'v').
|
+ New characters for parsing and formating dates ('n', 's' and 'v').
|
||||||
+ Virtual tags.
|
+ Virtual tags (BLOCKED, UNBLOCKED, BLOCKING, DUE, DUETODAY, TODAY, OVERDUE,
|
||||||
|
ACTIVE, SCHEDULED, CHILD, UNTIL and WAITING).
|
||||||
+ New 'modified' attribute, which contains the most recent modification date,
|
+ New 'modified' attribute, which contains the most recent modification date,
|
||||||
if a modification has occurred.
|
if a modification has occurred.
|
||||||
+ Fixed the mechanism used for selecting translations (thanks to Fidel Mato).
|
+ Fixed the mechanism used for selecting translations (thanks to Fidel Mato).
|
||||||
|
|
3
NEWS
3
NEWS
|
@ -2,7 +2,8 @@
|
||||||
New Features in taskwarrior 2.2.0
|
New Features in taskwarrior 2.2.0
|
||||||
|
|
||||||
- Bash autocompletion now works with aliases.
|
- Bash autocompletion now works with aliases.
|
||||||
- Virtual tags provide a tag query interface to more complex states.
|
- Virtual tags provide a tag query interface to more complex states. See the
|
||||||
|
'man task' page for details.
|
||||||
- Deprecated 'fg' and 'bg' attributes removed. Any residual use of those will
|
- Deprecated 'fg' and 'bg' attributes removed. Any residual use of those will
|
||||||
appear as orphaned UDAs.
|
appear as orphaned UDAs.
|
||||||
- Tasks now have a 'modified' attribute, which indicates the last time, if at
|
- Tasks now have a 'modified' attribute, which indicates the last time, if at
|
||||||
|
|
|
@ -575,6 +575,11 @@ are:
|
||||||
DUETODAY Matches if the task is due today
|
DUETODAY Matches if the task is due today
|
||||||
TODAY Matches if the task is due today
|
TODAY Matches if the task is due today
|
||||||
OVERDUE Matches if the task is overdue
|
OVERDUE Matches if the task is overdue
|
||||||
|
ACTIVE Matches if the task is started
|
||||||
|
SCHEDULED Matches if the task is scheduled
|
||||||
|
CHILD Matches if the task has a parent
|
||||||
|
UNTIL Matches if the task expires
|
||||||
|
WAITING Matches if the task is waiting
|
||||||
|
|
||||||
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.
|
||||||
|
|
10
src/Task.cpp
10
src/Task.cpp
|
@ -955,6 +955,12 @@ bool Task::hasTag (const std::string& tag) const
|
||||||
if (tag == "DUETODAY") return is_duetoday ();
|
if (tag == "DUETODAY") return is_duetoday ();
|
||||||
if (tag == "TODAY") return is_duetoday ();
|
if (tag == "TODAY") return is_duetoday ();
|
||||||
if (tag == "OVERDUE") return is_overdue ();
|
if (tag == "OVERDUE") return is_overdue ();
|
||||||
|
if (tag == "ACTIVE") return has ("start");
|
||||||
|
if (tag == "SCHEDULED") return has ("scheduled");
|
||||||
|
if (tag == "CHILD") return has ("parent");
|
||||||
|
if (tag == "UNTIL") return has ("until");
|
||||||
|
if (tag == "WAITING") return has ("wait");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TODO YESTERDAY - due yesterday
|
TODO YESTERDAY - due yesterday
|
||||||
TODO TOMORROW - due tomorrow
|
TODO TOMORROW - due tomorrow
|
||||||
|
@ -962,13 +968,9 @@ bool Task::hasTag (const std::string& tag) const
|
||||||
TODO MONTH - due this month
|
TODO MONTH - due this month
|
||||||
TODO YEAR - due this year
|
TODO YEAR - due this year
|
||||||
TODO ANNOTATED - has any annotations
|
TODO ANNOTATED - has any annotations
|
||||||
TODO ACTIVE - is active
|
|
||||||
TODO READY - is ready
|
TODO READY - is ready
|
||||||
TODO SCHEDULED - is scheduled
|
|
||||||
TODO WAITING - is waiting
|
TODO WAITING - is waiting
|
||||||
TODO CHILD - is a child
|
|
||||||
TODO PARENT - is a parent
|
TODO PARENT - is a parent
|
||||||
TODO UNTIL - will expire
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Concrete tags.
|
// Concrete tags.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue