TW-161
- TW-161 UDA indicator (thanks to Jim B).
This commit is contained in:
@@ -59,6 +59,7 @@
|
|||||||
- TW-139 Possibility to execute shadow file generation (thanks to Arnoud K).
|
- TW-139 Possibility to execute shadow file generation (thanks to Arnoud K).
|
||||||
- TW-145 default.due should accept a Duration (thanks to Ozgur Akgun).
|
- TW-145 default.due should accept a Duration (thanks to Ozgur Akgun).
|
||||||
- TW-159 show sort field(s) as bold in listing headers.
|
- TW-159 show sort field(s) as bold in listing headers.
|
||||||
|
- TW-161 UDA indicator (thanks to Jim B).
|
||||||
- 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).
|
||||||
|
|||||||
2
NEWS
2
NEWS
@@ -22,6 +22,7 @@ New Features in taskwarrior 2.4.0
|
|||||||
- The filter form 'name:value' now maps to the partial match operator '=',
|
- The filter form 'name:value' now maps to the partial match operator '=',
|
||||||
rather than the exact match operator, '=='. This means that dates now
|
rather than the exact match operator, '=='. This means that dates now
|
||||||
match on the day by default, not the time also.
|
match on the day by default, not the time also.
|
||||||
|
- UDA indicator format.
|
||||||
- Hooks.
|
- Hooks.
|
||||||
- New and updated holidays.rc files.
|
- New and updated holidays.rc files.
|
||||||
|
|
||||||
@@ -47,6 +48,7 @@ New configuration options in taskwarrior 2.4.0
|
|||||||
urgency.
|
urgency.
|
||||||
- New 'recurrence.confirmation' which allows bypassing confirmation for
|
- New 'recurrence.confirmation' which allows bypassing confirmation for
|
||||||
changes to recurring tasks, by accepting, rejecting or prompting.
|
changes to recurring tasks, by accepting, rejecting or prompting.
|
||||||
|
- New 'uda.<name>.indicator' to override the UDA indicator.
|
||||||
|
|
||||||
Newly deprecated features in taskwarrior 2.4.0
|
Newly deprecated features in taskwarrior 2.4.0
|
||||||
|
|
||||||
|
|||||||
@@ -408,6 +408,10 @@ The character or string to show in the tag.indicator column. Defaults to +.
|
|||||||
.B dependency.indicator=D
|
.B dependency.indicator=D
|
||||||
The character or string to show in the depends.indicator column. Defaults to +.
|
The character or string to show in the depends.indicator column. Defaults to +.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.B uda.<name>.indicator=U
|
||||||
|
The character or string to show in the <uda>.indicator column. Defaults to U.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B recurrence.confirmation=prompt
|
.B recurrence.confirmation=prompt
|
||||||
Controls whether changes to recurring tasks propagates to other child tasks with
|
Controls whether changes to recurring tasks propagates to other child tasks with
|
||||||
|
|||||||
@@ -48,8 +48,7 @@ ColumnUDA::ColumnUDA ()
|
|||||||
_hyphenate = (_type == "string") ? true : false;
|
_hyphenate = (_type == "string") ? true : false;
|
||||||
|
|
||||||
_styles.push_back (_style);
|
_styles.push_back (_style);
|
||||||
|
_styles.push_back ("indicator");
|
||||||
// TODO _examples.push_back ("?");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -117,6 +116,11 @@ void ColumnUDA::measure (Task& task, unsigned int& minimum, unsigned int& maximu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (_style == "indicator")
|
||||||
|
{
|
||||||
|
if (task.has (_name))
|
||||||
|
minimum = maximum = utf8_width (context.config.get ("uda." + _name + ".indicator"));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
throw format (STRING_COLUMN_BAD_FORMAT, _name, _style);
|
throw format (STRING_COLUMN_BAD_FORMAT, _name, _style);
|
||||||
}
|
}
|
||||||
@@ -174,6 +178,13 @@ void ColumnUDA::render (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (_style == "indicator")
|
||||||
|
{
|
||||||
|
if (task.has (_name))
|
||||||
|
lines.push_back (
|
||||||
|
color.colorize (
|
||||||
|
rightJustify (context.config.get ("uda." + _name + ".indicator"), width)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user