mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Feature - color rules for partial project names
- The color.project.foo colorization rules now matches on partial project names (like foobar), matching the functionality of filters.
This commit is contained in:
parent
167b9aa8eb
commit
79113668cd
2 changed files with 5 additions and 2 deletions
|
@ -109,8 +109,9 @@ void autoColorize (Task& task, Color& c)
|
|||
{
|
||||
if (it->first.substr (0, 14) == "color.project.")
|
||||
{
|
||||
std::string value = it->first.substr (14);
|
||||
if (task.get ("project") == value)
|
||||
std::string value = lowerCase (it->first.substr (14));
|
||||
std::string project = lowerCase (task.get ("project"));
|
||||
if (project.find (value) == 0)
|
||||
c.blend (it->second);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue