mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
UDAs
- Orphaned UDA name/value pairs show up in the 'info' report, but with the name listed as '[name value]'. The brackets indicate that the data is not modifiable.
This commit is contained in:
parent
da575c4043
commit
66eb09ab25
2 changed files with 11 additions and 1 deletions
|
@ -352,6 +352,16 @@ int CmdInfo::execute (std::string& output)
|
|||
}
|
||||
}
|
||||
|
||||
// Show any orphaned UDAs, which are identified by not being represented in
|
||||
// the context.columns map.
|
||||
for (att = all.begin (); att != all.end (); ++att)
|
||||
if (context.columns.find (*att) == context.columns.end ())
|
||||
{
|
||||
row = view.addRow ();
|
||||
view.set (row, 0, "[" + *att);
|
||||
view.set (row, 1, task->get (*att) + "]");
|
||||
}
|
||||
|
||||
// Create a second table, containing undo log change details.
|
||||
ViewText journal;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue