mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Enhancements - config variables, debug
- "debug" now considered a valid configuration variable. - "alias.*" now considered a valid configuration variable. - Moved some messages over to use Context::debug.
This commit is contained in:
parent
344b1aba58
commit
3bed6bb573
3 changed files with 16 additions and 15 deletions
|
@ -547,7 +547,7 @@ void Context::autoFilter (Task& t, Filter& f)
|
|||
foreach (word, words)
|
||||
{
|
||||
f.push_back (Att ("description", "has", *word));
|
||||
header ("auto filter: " + att->first + ".has:" + *word);
|
||||
debug ("auto filter: " + att->first + ".has:" + *word);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -555,7 +555,7 @@ void Context::autoFilter (Task& t, Filter& f)
|
|||
else if (att->first == "project")
|
||||
{
|
||||
f.push_back (Att ("project", "startswith", att->second.value ()));
|
||||
header ("auto filter: " + att->first + ".startswith:" + att->second.value ());
|
||||
debug ("auto filter: " + att->first + ".startswith:" + att->second.value ());
|
||||
}
|
||||
|
||||
// The limit attribute does not participate in filtering, and needs to be
|
||||
|
@ -571,7 +571,7 @@ void Context::autoFilter (Task& t, Filter& f)
|
|||
att->first != "tags")
|
||||
{
|
||||
f.push_back (att->second);
|
||||
header ("auto filter: " + att->first + ":" + att->second.value ());
|
||||
debug ("auto filter: " + att->first + ":" + att->second.value ());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -579,14 +579,14 @@ void Context::autoFilter (Task& t, Filter& f)
|
|||
foreach (tag, tagAdditions)
|
||||
{
|
||||
f.push_back (Att ("tags", "has", *tag));
|
||||
header ("auto filter: +" + *tag);
|
||||
debug ("auto filter: +" + *tag);
|
||||
}
|
||||
|
||||
// Include tagRemovals.
|
||||
foreach (tag, tagRemovals)
|
||||
{
|
||||
f.push_back (Att ("tags", "hasnt", *tag));
|
||||
header ("auto filter: -" + *tag);
|
||||
debug ("auto filter: -" + *tag);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue