- Now uses "defaultwidth" configuration variable for when ncurses support is not available
- Added the new movie to the task.html page
This commit is contained in:
@@ -13,6 +13,8 @@ represents a feature release, and the z represents a patch.
|
|||||||
1.4.0 (?)
|
1.4.0 (?)
|
||||||
+ Bug: "showage" configuration variable should apply to all reprts, not
|
+ Bug: "showage" configuration variable should apply to all reprts, not
|
||||||
just the ones based on "list"
|
just the ones based on "list"
|
||||||
|
+ New configuration variable, "defaultwidth" that determines the width
|
||||||
|
of tables when ncurses support is not available
|
||||||
|
|
||||||
------ reality -----------------------------------
|
------ reality -----------------------------------
|
||||||
|
|
||||||
|
|||||||
3
TUTORIAL
3
TUTORIAL
@@ -713,6 +713,9 @@ Configuring Task
|
|||||||
newest Determines how many tasks are shown on the "newest"
|
newest Determines how many tasks are shown on the "newest"
|
||||||
report. Defaults to 10.
|
report. Defaults to 10.
|
||||||
|
|
||||||
|
defaultwidth The width of tables used when ncurses support is not
|
||||||
|
available. Defaults to 80.
|
||||||
|
|
||||||
color May be "on" or "off". Determines whether task uses
|
color May be "on" or "off". Determines whether task uses
|
||||||
color.
|
color.
|
||||||
|
|
||||||
|
|||||||
28
src/task.cpp
28
src/task.cpp
@@ -48,7 +48,7 @@
|
|||||||
void shortUsage (Config& conf)
|
void shortUsage (Config& conf)
|
||||||
{
|
{
|
||||||
Table table;
|
Table table;
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -470,7 +470,7 @@ void handleTags (const TDB& tdb, T& task, Config& conf)
|
|||||||
void handleList (const TDB& tdb, T& task, Config& conf)
|
void handleList (const TDB& tdb, T& task, Config& conf)
|
||||||
{
|
{
|
||||||
// Determine window size, and set table accordingly.
|
// Determine window size, and set table accordingly.
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -606,7 +606,7 @@ void handleList (const TDB& tdb, T& task, Config& conf)
|
|||||||
void handleSmallList (const TDB& tdb, T& task, Config& conf)
|
void handleSmallList (const TDB& tdb, T& task, Config& conf)
|
||||||
{
|
{
|
||||||
// Determine window size, and set table accordingly.
|
// Determine window size, and set table accordingly.
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -725,7 +725,7 @@ void handleSmallList (const TDB& tdb, T& task, Config& conf)
|
|||||||
void handleCompleted (const TDB& tdb, T& task, Config& conf)
|
void handleCompleted (const TDB& tdb, T& task, Config& conf)
|
||||||
{
|
{
|
||||||
// Determine window size, and set table accordingly.
|
// Determine window size, and set table accordingly.
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -808,7 +808,7 @@ void handleCompleted (const TDB& tdb, T& task, Config& conf)
|
|||||||
void handleInfo (const TDB& tdb, T& task, Config& conf)
|
void handleInfo (const TDB& tdb, T& task, Config& conf)
|
||||||
{
|
{
|
||||||
// Determine window size, and set table accordingly.
|
// Determine window size, and set table accordingly.
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -974,7 +974,7 @@ void handleInfo (const TDB& tdb, T& task, Config& conf)
|
|||||||
void handleLongList (const TDB& tdb, T& task, Config& conf)
|
void handleLongList (const TDB& tdb, T& task, Config& conf)
|
||||||
{
|
{
|
||||||
// Determine window size, and set table accordingly.
|
// Determine window size, and set table accordingly.
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -1306,7 +1306,7 @@ void handleReportNext (const TDB& tdb, T& task, Config& conf)
|
|||||||
gatherNextTasks (tdb, task, conf, pending, matching);
|
gatherNextTasks (tdb, task, conf, pending, matching);
|
||||||
|
|
||||||
// Determine window size, and set table accordingly.
|
// Determine window size, and set table accordingly.
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -1888,7 +1888,7 @@ void handleReportCalendar (const TDB& tdb, T& task, Config& conf)
|
|||||||
void handleReportActive (const TDB& tdb, T& task, Config& conf)
|
void handleReportActive (const TDB& tdb, T& task, Config& conf)
|
||||||
{
|
{
|
||||||
// Determine window size, and set table accordingly.
|
// Determine window size, and set table accordingly.
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -1996,7 +1996,7 @@ void handleReportActive (const TDB& tdb, T& task, Config& conf)
|
|||||||
void handleReportOverdue (const TDB& tdb, T& task, Config& conf)
|
void handleReportOverdue (const TDB& tdb, T& task, Config& conf)
|
||||||
{
|
{
|
||||||
// Determine window size, and set table accordingly.
|
// Determine window size, and set table accordingly.
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -2100,7 +2100,7 @@ void handleReportOverdue (const TDB& tdb, T& task, Config& conf)
|
|||||||
void handleReportOldest (const TDB& tdb, T& task, Config& conf)
|
void handleReportOldest (const TDB& tdb, T& task, Config& conf)
|
||||||
{
|
{
|
||||||
// Determine window size, and set table accordingly.
|
// Determine window size, and set table accordingly.
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -2236,7 +2236,7 @@ void handleReportOldest (const TDB& tdb, T& task, Config& conf)
|
|||||||
void handleReportNewest (const TDB& tdb, T& task, Config& conf)
|
void handleReportNewest (const TDB& tdb, T& task, Config& conf)
|
||||||
{
|
{
|
||||||
// Determine window size, and set table accordingly.
|
// Determine window size, and set table accordingly.
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -2453,7 +2453,7 @@ void handleReportStats (const TDB& tdb, T& task, Config& conf)
|
|||||||
void handleVersion (Config& conf)
|
void handleVersion (Config& conf)
|
||||||
{
|
{
|
||||||
// Determine window size, and set table accordingly.
|
// Determine window size, and set table accordingly.
|
||||||
int width = 80;
|
int width = conf.get ("defaultwidth", 80);
|
||||||
#ifdef HAVE_LIBNCURSES
|
#ifdef HAVE_LIBNCURSES
|
||||||
if (conf.get ("curses", true))
|
if (conf.get ("curses", true))
|
||||||
{
|
{
|
||||||
@@ -2463,10 +2463,6 @@ void handleVersion (Config& conf)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Handle case for zero width on mobile device.
|
|
||||||
if (width == 0)
|
|
||||||
width = 80;
|
|
||||||
|
|
||||||
// Create a table for output.
|
// Create a table for output.
|
||||||
Table table;
|
Table table;
|
||||||
table.setTableWidth (width);
|
table.setTableWidth (width);
|
||||||
|
|||||||
18
task.html
18
task.html
@@ -178,6 +178,8 @@ a img { border: none; padding: 0; margin: 0; }
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Fixed bug where "showage" configuration variable was not being
|
<li>Fixed bug where "showage" configuration variable was not being
|
||||||
oberved by the "task long" report
|
oberved by the "task long" report
|
||||||
|
<li>New configuration variable "defaultwidth" determines the width
|
||||||
|
of windows in the absense of ncurses support
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@@ -206,7 +208,7 @@ a img { border: none; padding: 0; margin: 0; }
|
|||||||
Source: <a href="http://www.beckingham.net/task-1.2.0.tar.gz">task-1.2.0.tar.gz</a>
|
Source: <a href="http://www.beckingham.net/task-1.2.0.tar.gz">task-1.2.0.tar.gz</a>
|
||||||
<br />
|
<br />
|
||||||
Debian package: <a href="http://www.beckingham.net/task_1.2.0-1_i386.deb">task_1.2.0-1_i386.deb</a>
|
Debian package: <a href="http://www.beckingham.net/task_1.2.0-1_i386.deb">task_1.2.0-1_i386.deb</a>
|
||||||
(Thanks to Richard Querin)
|
(Thanks to <a href="http://blog.rfquerin.org">Richard Querin</a>)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@@ -226,7 +228,7 @@ a img { border: none; padding: 0; margin: 0; }
|
|||||||
Source: <a href="http://www.beckingham.net/task-1.1.0.tar.gz">task-1.1.0.tar.gz</a>
|
Source: <a href="http://www.beckingham.net/task-1.1.0.tar.gz">task-1.1.0.tar.gz</a>
|
||||||
<br />
|
<br />
|
||||||
Debian package: <a href="http://www.beckingham.net/task_1.1.0-1_i386.deb">task_1.1.0-1_i386.deb</a>
|
Debian package: <a href="http://www.beckingham.net/task_1.1.0-1_i386.deb">task_1.1.0-1_i386.deb</a>
|
||||||
(Thanks to Richard Querin)
|
(Thanks to <a href="http://blog.rfquerin.org">Richard Querin</a>)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@@ -268,6 +270,12 @@ a img { border: none; padding: 0; margin: 0; }
|
|||||||
This guide shows how to quickly set up the task program, and become
|
This guide shows how to quickly set up the task program, and become
|
||||||
proficient with it.
|
proficient with it.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Alternatively, watch the
|
||||||
|
<a href="http://www.youtube.com/watch?v=D2Kn4DMOVSw">task movie</a>
|
||||||
|
which illustrates many of task's features.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
@@ -1118,6 +1126,12 @@ on_white on_bright_white</code></pre>
|
|||||||
Defaults to 10.
|
Defaults to 10.
|
||||||
</dd>
|
</dd>
|
||||||
|
|
||||||
|
<dt>defaultwidth</dt>
|
||||||
|
<dd>
|
||||||
|
The width of tables used when ncurses support is not available.
|
||||||
|
Defaults to 80.
|
||||||
|
</dd>
|
||||||
|
|
||||||
<dt>color</dt>
|
<dt>color</dt>
|
||||||
<dd>
|
<dd>
|
||||||
May be "on" or "off". Determines whether task uses color.
|
May be "on" or "off". Determines whether task uses color.
|
||||||
|
|||||||
Reference in New Issue
Block a user