mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Task
- Tag add/remove details improved.
This commit is contained in:
parent
c342159369
commit
4ada2e2c43
1 changed files with 6 additions and 3 deletions
|
@ -2103,15 +2103,18 @@ void Task::modify (modType type)
|
|||
// appropriate.
|
||||
else if ((*i)->hasTag ("TAG"))
|
||||
{
|
||||
context.debug (label + "tags " + (*i)->attribute ("raw"));
|
||||
std::string tag = (*i)->attribute ("tag");
|
||||
if ((*i)->attribute ("sign") == "+")
|
||||
{
|
||||
std::string tag = (*i)->attribute ("tag");
|
||||
context.debug (label + "tags <-- add '" + tag + "'");
|
||||
addTag (tag);
|
||||
feedback_special_tags ((*this), tag);
|
||||
}
|
||||
else
|
||||
removeTag ((*i)->attribute ("tag"));
|
||||
{
|
||||
context.debug (label + "tags <-- remove '" + tag + "'");
|
||||
removeTag (tag);
|
||||
}
|
||||
}
|
||||
|
||||
// WORD and TERMINATED args are accumulated.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue