mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
TW-193
- TW-193 Support listing breaks.
This commit is contained in:
parent
bd7e66a939
commit
ab3935ac85
4 changed files with 24 additions and 0 deletions
|
@ -132,6 +132,19 @@ int CmdCustom::execute (std::string& output)
|
|||
view.colorOdd (alternate);
|
||||
view.intraColorOdd (alternate);
|
||||
|
||||
// Add the break columns, if any.
|
||||
std::vector <std::string>::iterator so;
|
||||
for (so = sortOrder.begin (); so != sortOrder.end (); ++so)
|
||||
{
|
||||
std::string name;
|
||||
bool ascending;
|
||||
bool breakIndicator;
|
||||
context.decomposeSortField (*so, name, ascending, breakIndicator);
|
||||
|
||||
if (breakIndicator)
|
||||
view.addBreak (name);
|
||||
}
|
||||
|
||||
// Add the columns and labels.
|
||||
for (unsigned int i = 0; i < columns.size (); ++i)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue