mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-24 08:56:43 +02:00
Feature #247
- Added feature #247, providing infinite width reports when redirecting output to a file, by setting defaultwidth to 0.
This commit is contained in:
parent
38ffa390ea
commit
09ce815fc5
4 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
||||||
+ Added burndown charts - burndown.daily, burndown.weekly, burndown.monthly,
|
+ Added burndown charts - burndown.daily, burndown.weekly, burndown.monthly,
|
||||||
that use color.burndown.pending, color.burndown.started and
|
that use color.burndown.pending, color.burndown.started and
|
||||||
color.burndown.done colors.
|
color.burndown.done colors.
|
||||||
|
+ Added feature #247, providing infinite width reports when redirecting output
|
||||||
|
to a file, by setting defaultwidth to 0.
|
||||||
+ Added feature #546, which is a 'count' command that counts tasks, and is
|
+ Added feature #546, which is a 'count' command that counts tasks, and is
|
||||||
intended to help scripts that manipulate task output.
|
intended to help scripts that manipulate task output.
|
||||||
+ Fixed bug #515, which displayed an incorrect message after duplicating a
|
+ Fixed bug #515, which displayed an incorrect message after duplicating a
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -3,6 +3,7 @@ New Features in taskwarrior 1.9.4
|
||||||
|
|
||||||
- New burndown charts.
|
- New burndown charts.
|
||||||
- New 'count' helper command.
|
- New 'count' helper command.
|
||||||
|
- Inifinite width reports, when redirecting output, by using rc.defaultwidth=0.
|
||||||
|
|
||||||
Please refer to the ChangeLog file for full details. There are too many to
|
Please refer to the ChangeLog file for full details. There are too many to
|
||||||
list here.
|
list here.
|
||||||
|
|
|
@ -155,6 +155,8 @@ using, for text wrapping.
|
||||||
.TP
|
.TP
|
||||||
.B defaultwidth=80
|
.B defaultwidth=80
|
||||||
The width of tables used when ncurses support is not available. Defaults to 80.
|
The width of tables used when ncurses support is not available. Defaults to 80.
|
||||||
|
If set to 0, is interpreted as infinite width, therefore with no word-wrapping;
|
||||||
|
useful when redirecting report output to a file for subsequent manipulation.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B editor=vi
|
.B editor=vi
|
||||||
|
|
|
@ -163,6 +163,10 @@ int Context::getWidth ()
|
||||||
debug (out.str ());
|
debug (out.str ());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// A zero width value means 'infinity', which is approximated here by 2^16.
|
||||||
|
if (width == 0)
|
||||||
|
width = 65536;
|
||||||
|
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue