mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-01 11:20:19 +02:00
Feature - Special tags
- Implemented the 'nocolor' special tag.
This commit is contained in:
parent
3003cdaf08
commit
2c5f590fed
1 changed files with 4 additions and 0 deletions
|
@ -55,6 +55,10 @@ void initializeColorRules ()
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void autoColorize (Task& task, Color& c)
|
void autoColorize (Task& task, Color& c)
|
||||||
{
|
{
|
||||||
|
// The special tag 'nocolor' overrides all auto colorization.
|
||||||
|
if (task.hasTag ("nocolor"))
|
||||||
|
return;
|
||||||
|
|
||||||
// Note: fg, bg already contain colors specifically assigned via command.
|
// Note: fg, bg already contain colors specifically assigned via command.
|
||||||
// Note: These rules form a hierarchy - the last rule is King.
|
// Note: These rules form a hierarchy - the last rule is King.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue