mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Feature #1492
- #1492 task show to display default values when appropriate (thanks to Renato Alves).
This commit is contained in:
parent
149c3c8d9e
commit
b354ed7bd2
8 changed files with 16 additions and 0 deletions
|
@ -295,6 +295,14 @@ int CmdShow::execute (std::string& output)
|
|||
int row = view.addRow ();
|
||||
view.set (row, 0, i->first, color);
|
||||
view.set (row, 1, value, color);
|
||||
|
||||
if (default_config[i->first] != value &&
|
||||
default_config[i->first] != "")
|
||||
{
|
||||
row = view.addRow ();
|
||||
view.set (row, 0, std::string (" ") + STRING_CMD_SHOW_CONF_DEFAULT, color);
|
||||
view.set (row, 1, default_config[i->first], color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue