mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +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
|
@ -26,6 +26,8 @@
|
|||
Added as well synonyms soww/eoww plus new socw/eocw for calendar weeks.
|
||||
+ Added feature #471, which makes greater use of projects by reporting
|
||||
changes to the completion percentage when it changes.
|
||||
+ Added feature #478, which uses the colorization rules in the 'info'
|
||||
report.
|
||||
+ New 'depends' column for custom reports.
|
||||
+ New 'blocked' report for showing blocked tasks.
|
||||
+ Improved man pages (thanks to Andy Lester).
|
||||
|
|
1
NEWS
1
NEWS
|
@ -13,6 +13,7 @@ New Features in task 1.9.3
|
|||
- Import and export of YAML 1.1, including round-trip capability.
|
||||
- New merge capability for syncing task data files.
|
||||
- When completing or modifying a task, the project status is displayed.
|
||||
- The 'info' report is now colorized.
|
||||
|
||||
Please refer to the ChangeLog file for full details. There are too many to
|
||||
list here.
|
||||
|
|
|
@ -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