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
|
@ -31,6 +31,7 @@
|
||||||
- TW-168 modification of due date relative to current due date (thanks to Dirk
|
- TW-168 modification of due date relative to current due date (thanks to Dirk
|
||||||
Sarpe).
|
Sarpe).
|
||||||
- TW-186 Increase for numerical UDAs (thanks to Steffen Uhlig).
|
- TW-186 Increase for numerical UDAs (thanks to Steffen Uhlig).
|
||||||
|
- TW-193 Support listing breaks.
|
||||||
- TW-197 New virtual tag READY.
|
- TW-197 New virtual tag READY.
|
||||||
- TW-218 Reveal terms of urgency calculation for a given task (thanks to Max
|
- TW-218 Reveal terms of urgency calculation for a given task (thanks to Max
|
||||||
Muller).
|
Muller).
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -17,6 +17,7 @@ New Features in taskwarrior 2.4.0
|
||||||
- New 'color.until' color rule.
|
- New 'color.until' color rule.
|
||||||
- Using a non-zero 'urgency.inherit.coefficient' value means a task inherits
|
- Using a non-zero 'urgency.inherit.coefficient' value means a task inherits
|
||||||
the urgency values of the dependency chain.
|
the urgency values of the dependency chain.
|
||||||
|
- Listing breaks now supported. See 'man taskrc'.
|
||||||
|
|
||||||
New commands in taskwarrior 2.4.0
|
New commands in taskwarrior 2.4.0
|
||||||
|
|
||||||
|
|
|
@ -1183,6 +1183,15 @@ For example:
|
||||||
|
|
||||||
report.list.sort=due+,priority-,start.active-,project+
|
report.list.sort=due+,priority-,start.active-,project+
|
||||||
|
|
||||||
|
Additionally, after the "+" or "-", there can be a solidus "/" which indicates
|
||||||
|
that there are breaks after the column values change. For example:
|
||||||
|
|
||||||
|
report.minimal.sort=project+/,description+
|
||||||
|
|
||||||
|
This sort order now specifies that there is a listing break between each
|
||||||
|
project. A listing break is simply a blank line, which provides a visual
|
||||||
|
grouping.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B report.X.filter
|
.B report.X.filter
|
||||||
This adds a filter to the report X so that only tasks matching the filter
|
This adds a filter to the report X so that only tasks matching the filter
|
||||||
|
|
|
@ -132,6 +132,19 @@ int CmdCustom::execute (std::string& output)
|
||||||
view.colorOdd (alternate);
|
view.colorOdd (alternate);
|
||||||
view.intraColorOdd (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.
|
// Add the columns and labels.
|
||||||
for (unsigned int i = 0; i < columns.size (); ++i)
|
for (unsigned int i = 0; i < columns.size (); ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue