mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Feature #478
- Added feature #478, which uses the colorization rules in the 'info' report.
This commit is contained in:
parent
5c235ce1ef
commit
a9b18da214
4 changed files with 7 additions and 3 deletions
|
@ -122,9 +122,6 @@ int handleCustomReport (const std::string& report, std::string &outs)
|
|||
if (context.sequence.size ())
|
||||
context.filter.applySequence (tasks, context.sequence);
|
||||
|
||||
// Initialize colorization for subsequent auto colorization.
|
||||
initializeColorRules ();
|
||||
|
||||
Table table;
|
||||
table.setTableWidth (context.getWidth ());
|
||||
table.setDateFormat (context.config.get ("dateformat"));
|
||||
|
|
|
@ -406,6 +406,10 @@ int handleInfo (std::string &outs)
|
|||
table.addCell (row, 0, "Description");
|
||||
table.addCell (row, 1, getFullDescription (*task, "info"));
|
||||
|
||||
Color c;
|
||||
autoColorize (*task, c);
|
||||
table.setCellColor (row, 1, c);
|
||||
|
||||
// status
|
||||
row = table.addRow ();
|
||||
table.addCell (row, 0, "Status");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue