mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Feature
- Add the configuration variable 'print.empty.columns'. - If this variable is set to 'no', columns with all empty values are not printed. This variable defaults to 'yes' (thus nothing is changed by default). - Updated taskrc.5.in to mention the new variable. - Added unit tests.
This commit is contained in:
parent
a7b20b7a4e
commit
d7c225c87b
6 changed files with 92 additions and 4 deletions
|
@ -85,7 +85,11 @@ void ColumnPriority::measure (Task& task, int& minimum, int& maximum)
|
|||
{
|
||||
std::string priority = task.get (_name);
|
||||
|
||||
minimum = maximum = 1;
|
||||
if (priority == "")
|
||||
minimum = maximum = 0;
|
||||
else
|
||||
minimum = maximum = 1;
|
||||
|
||||
if (_style == "long")
|
||||
{
|
||||
if (priority == "H") minimum = maximum = 4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue