mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-1592: Able to add duplicate tags using 'tags:<value>'
- Thanks to Tomas Babej.
This commit is contained in:
parent
b8a68683cd
commit
264dae02bc
2 changed files with 19 additions and 0 deletions
|
@ -38,6 +38,8 @@
|
||||||
- TW-1569 update wait:<wait-date> manpage entry (thanks to David Patrick).
|
- TW-1569 update wait:<wait-date> manpage entry (thanks to David Patrick).
|
||||||
- TW-1572 Better urgency inheritance (thanks to Jens Erat).
|
- TW-1572 Better urgency inheritance (thanks to Jens Erat).
|
||||||
- TW-1575 `task log` mangles URLs when quoted (thanks to Luke Macken).
|
- TW-1575 `task log` mangles URLs when quoted (thanks to Luke Macken).
|
||||||
|
- TW-1592 Able to add duplicate tags using 'tags:<value>' (thanks to Tomas
|
||||||
|
Babej).
|
||||||
- TW-1600 Filtering "regressions"(?) in task-2.4.3, task-2.4.4 (thanks to Ralph
|
- TW-1600 Filtering "regressions"(?) in task-2.4.3, task-2.4.4 (thanks to Ralph
|
||||||
Bean).
|
Bean).
|
||||||
- TW-1609 In 'urgency<10', 10 is interpreted as an ID (thanks to Wim Schuermann).
|
- TW-1609 In 'urgency<10', 10 is interpreted as an ID (thanks to Wim Schuermann).
|
||||||
|
|
17
src/Task.cpp
17
src/Task.cpp
|
@ -1949,6 +1949,23 @@ void Task::modify (modType type, bool text_required /* = false */)
|
||||||
++modCount;
|
++modCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For those using the "tags:..." attribute directly.
|
||||||
|
else if (name == "tags")
|
||||||
|
{
|
||||||
|
std::vector <std::string> tags;
|
||||||
|
split (tags, value, ',');
|
||||||
|
|
||||||
|
for (auto& tag : tags)
|
||||||
|
{
|
||||||
|
addTag (tag);
|
||||||
|
context.debug (label + "tags <-- add '" + tag + "'");
|
||||||
|
addTag (tag);
|
||||||
|
feedback_special_tags (*this, tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
++modCount;
|
||||||
|
}
|
||||||
|
|
||||||
// Dates are special, maybe.
|
// Dates are special, maybe.
|
||||||
else if (column->type () == "date")
|
else if (column->type () == "date")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue