- Removed support for the "showage" configuration variable.

This commit is contained in:
Paul Beckingham 2008-11-08 22:43:40 -05:00
parent ee961daef6
commit 5f85550664
5 changed files with 38 additions and 78 deletions

View file

@ -5,6 +5,7 @@
+ Removed deprecated TUTORIAL file. + Removed deprecated TUTORIAL file.
+ Removed "usage" command, and support for "command.logging" configuration + Removed "usage" command, and support for "command.logging" configuration
variable. variable.
+ Removed "showage" configuration variable.
+ "task stop" can now remove the start time from a started task. + "task stop" can now remove the start time from a started task.
+ "task ghistory" now displays a differently aligned graph, allowing + "task ghistory" now displays a differently aligned graph, allowing
easier comparison by month of tasks added versus completed and deleted. easier comparison by month of tasks added versus completed and deleted.

View file

@ -171,12 +171,6 @@
</p> </p>
</dd> </dd>
<dt>showage<dt>
<dd>
May be "yes" or "no". Determines whether the "Age"
column appears on the "list" and "next" reports.
<dd>
<dt>monthsperline</dt> <dt>monthsperline</dt>
<dd> <dd>
Determines how many months the "task calendar" command Determines how many months the "task calendar" command

View file

@ -60,32 +60,6 @@
</p> </p>
</div> </div>
<br />
<h2 class="title">How to get rid of the "Age" column</h2>
<div class="content">
<p>
The "Age" column that shows up on several reports is proving
to be unpopular. In task 1.2.0 and later, here is how to
remove it from the reports - make sure you have the line:
</p>
<code><pre>showage=no</pre></code>
<p>
in your ~/.taskrc file.
Note that the "task long" report does not obey this setting
in versions prior to 1.3.1.
</p>
<p class="small">
The "showage" setting is supported in task 1.2.0 or later.
<br />
The "task long" report supports this setting in versions 1.3.1
or later.
</p>
<div>
<br /> <br />
<h2 class="title">How do I build task under Cygwin?</h2> <h2 class="title">How do I build task under Cygwin?</h2>
<div class="content"> <div class="content">

View file

@ -115,7 +115,6 @@ void Config::createDefault (const std::string& home)
fprintf (out, "confirmation=yes\n"); fprintf (out, "confirmation=yes\n");
fprintf (out, "next=2\n"); fprintf (out, "next=2\n");
fprintf (out, "dateformat=m/d/Y\n"); fprintf (out, "dateformat=m/d/Y\n");
fprintf (out, "showage=yes\n");
fprintf (out, "monthsperline=1\n"); fprintf (out, "monthsperline=1\n");
fprintf (out, "curses=on\n"); fprintf (out, "curses=on\n");
fprintf (out, "color=on\n"); fprintf (out, "color=on\n");

View file

@ -134,8 +134,6 @@ std::string handleList (TDB& tdb, T& task, Config& conf)
initializeColorRules (conf); initializeColorRules (conf);
bool showAge = conf.get ("showage", true);
// Create a table for output. // Create a table for output.
Table table; Table table;
table.setTableWidth (width); table.setTableWidth (width);
@ -144,7 +142,7 @@ std::string handleList (TDB& tdb, T& task, Config& conf)
table.addColumn ("Pri"); table.addColumn ("Pri");
table.addColumn ("Due"); table.addColumn ("Due");
table.addColumn ("Active"); table.addColumn ("Active");
if (showAge) table.addColumn ("Age"); table.addColumn ("Age");
table.addColumn ("Description"); table.addColumn ("Description");
if (conf.get (std::string ("color"), true)) if (conf.get (std::string ("color"), true))
@ -155,7 +153,7 @@ std::string handleList (TDB& tdb, T& task, Config& conf)
table.setColumnUnderline (3); table.setColumnUnderline (3);
table.setColumnUnderline (4); table.setColumnUnderline (4);
table.setColumnUnderline (5); table.setColumnUnderline (5);
if (showAge) table.setColumnUnderline (6); table.setColumnUnderline (6);
} }
else else
table.setTableDashedUnderline (); table.setTableDashedUnderline ();
@ -165,12 +163,12 @@ std::string handleList (TDB& tdb, T& task, Config& conf)
table.setColumnWidth (2, Table::minimum); table.setColumnWidth (2, Table::minimum);
table.setColumnWidth (3, Table::minimum); table.setColumnWidth (3, Table::minimum);
table.setColumnWidth (4, Table::minimum); table.setColumnWidth (4, Table::minimum);
if (showAge) table.setColumnWidth (5, Table::minimum); table.setColumnWidth (5, Table::minimum);
table.setColumnWidth ((showAge ? 6 : 5), Table::flexible); table.setColumnWidth (6, Table::flexible);
table.setColumnJustification (0, Table::right); table.setColumnJustification (0, Table::right);
table.setColumnJustification (3, Table::right); table.setColumnJustification (3, Table::right);
if (showAge) table.setColumnJustification (5, Table::right); table.setColumnJustification (5, Table::right);
table.sortOn (3, Table::ascendingDate); table.sortOn (3, Table::ascendingDate);
table.sortOn (2, Table::descendingPriority); table.sortOn (2, Table::descendingPriority);
@ -222,8 +220,8 @@ std::string handleList (TDB& tdb, T& task, Config& conf)
table.addCell (row, 2, refTask.getAttribute ("priority")); table.addCell (row, 2, refTask.getAttribute ("priority"));
table.addCell (row, 3, due); table.addCell (row, 3, due);
table.addCell (row, 4, active); table.addCell (row, 4, active);
if (showAge) table.addCell (row, 5, age); table.addCell (row, 5, age);
table.addCell (row, (showAge ? 6 : 5), refTask.getDescription ()); table.addCell (row, 6, refTask.getDescription ());
if (conf.get ("color", true)) if (conf.get ("color", true))
{ {
@ -704,8 +702,6 @@ std::string handleLongList (TDB& tdb, T& task, Config& conf)
initializeColorRules (conf); initializeColorRules (conf);
bool showAge = conf.get ("showage", true);
// Create a table for output. // Create a table for output.
Table table; Table table;
table.setTableWidth (width); table.setTableWidth (width);
@ -716,7 +712,7 @@ std::string handleLongList (TDB& tdb, T& task, Config& conf)
table.addColumn ("Entry"); table.addColumn ("Entry");
table.addColumn ("Start"); table.addColumn ("Start");
table.addColumn ("Due"); table.addColumn ("Due");
if (showAge) table.addColumn ("Age"); table.addColumn ("Age");
table.addColumn ("Tags"); table.addColumn ("Tags");
table.addColumn ("Description"); table.addColumn ("Description");
@ -730,7 +726,7 @@ std::string handleLongList (TDB& tdb, T& task, Config& conf)
table.setColumnUnderline (5); table.setColumnUnderline (5);
table.setColumnUnderline (6); table.setColumnUnderline (6);
table.setColumnUnderline (7); table.setColumnUnderline (7);
if (showAge) table.setColumnUnderline (8); table.setColumnUnderline (8);
} }
else else
table.setTableDashedUnderline (); table.setTableDashedUnderline ();
@ -741,15 +737,15 @@ std::string handleLongList (TDB& tdb, T& task, Config& conf)
table.setColumnWidth (3, Table::minimum); table.setColumnWidth (3, Table::minimum);
table.setColumnWidth (4, Table::minimum); table.setColumnWidth (4, Table::minimum);
table.setColumnWidth (5, Table::minimum); table.setColumnWidth (5, Table::minimum);
if (showAge) table.setColumnWidth (6, Table::minimum); table.setColumnWidth (6, Table::minimum);
table.setColumnWidth ((showAge ? 7 : 6), Table::minimum); table.setColumnWidth (7, Table::minimum);
table.setColumnWidth ((showAge ? 8 : 7), Table::flexible); table.setColumnWidth (8, Table::flexible);
table.setColumnJustification (0, Table::right); table.setColumnJustification (0, Table::right);
table.setColumnJustification (3, Table::right); table.setColumnJustification (3, Table::right);
table.setColumnJustification (4, Table::right); table.setColumnJustification (4, Table::right);
table.setColumnJustification (5, Table::right); table.setColumnJustification (5, Table::right);
if (showAge) table.setColumnJustification (6, Table::right); table.setColumnJustification (6, Table::right);
table.sortOn (5, Table::ascendingDate); table.sortOn (5, Table::ascendingDate);
table.sortOn (2, Table::descendingPriority); table.sortOn (2, Table::descendingPriority);
@ -816,9 +812,9 @@ std::string handleLongList (TDB& tdb, T& task, Config& conf)
table.addCell (row, 3, entered); table.addCell (row, 3, entered);
table.addCell (row, 4, started); table.addCell (row, 4, started);
table.addCell (row, 5, due); table.addCell (row, 5, due);
if (showAge) table.addCell (row, 6, age); table.addCell (row, 6, age);
table.addCell (row, (showAge ? 7 : 6), tags); table.addCell (row, 7, tags);
table.addCell (row, (showAge ? 8 : 7), refTask.getDescription ()); table.addCell (row, 8, refTask.getDescription ());
if (conf.get ("color", true)) if (conf.get ("color", true))
{ {
@ -1062,8 +1058,6 @@ std::string handleReportNext (TDB& tdb, T& task, Config& conf)
initializeColorRules (conf); initializeColorRules (conf);
bool showAge = conf.get ("showage", true);
// Create a table for output. // Create a table for output.
Table table; Table table;
table.setTableWidth (width); table.setTableWidth (width);
@ -1073,7 +1067,7 @@ std::string handleReportNext (TDB& tdb, T& task, Config& conf)
table.addColumn ("Pri"); table.addColumn ("Pri");
table.addColumn ("Due"); table.addColumn ("Due");
table.addColumn ("Active"); table.addColumn ("Active");
if (showAge) table.addColumn ("Age"); table.addColumn ("Age");
table.addColumn ("Description"); table.addColumn ("Description");
if (conf.get ("color", true)) if (conf.get ("color", true))
@ -1084,7 +1078,7 @@ std::string handleReportNext (TDB& tdb, T& task, Config& conf)
table.setColumnUnderline (3); table.setColumnUnderline (3);
table.setColumnUnderline (4); table.setColumnUnderline (4);
table.setColumnUnderline (5); table.setColumnUnderline (5);
if (showAge) table.setColumnUnderline (6); table.setColumnUnderline (6);
} }
else else
table.setTableDashedUnderline (); table.setTableDashedUnderline ();
@ -1094,12 +1088,12 @@ std::string handleReportNext (TDB& tdb, T& task, Config& conf)
table.setColumnWidth (2, Table::minimum); table.setColumnWidth (2, Table::minimum);
table.setColumnWidth (3, Table::minimum); table.setColumnWidth (3, Table::minimum);
table.setColumnWidth (4, Table::minimum); table.setColumnWidth (4, Table::minimum);
if (showAge) table.setColumnWidth (5, Table::minimum); table.setColumnWidth (5, Table::minimum);
table.setColumnWidth ((showAge ? 6 : 5), Table::flexible); table.setColumnWidth (6, Table::flexible);
table.setColumnJustification (0, Table::right); table.setColumnJustification (0, Table::right);
table.setColumnJustification (3, Table::right); table.setColumnJustification (3, Table::right);
if (showAge) table.setColumnJustification (5, Table::right); table.setColumnJustification (5, Table::right);
table.sortOn (3, Table::ascendingDate); table.sortOn (3, Table::ascendingDate);
table.sortOn (2, Table::descendingPriority); table.sortOn (2, Table::descendingPriority);
@ -1148,8 +1142,8 @@ std::string handleReportNext (TDB& tdb, T& task, Config& conf)
table.addCell (row, 2, refTask.getAttribute ("priority")); table.addCell (row, 2, refTask.getAttribute ("priority"));
table.addCell (row, 3, due); table.addCell (row, 3, due);
table.addCell (row, 4, active); table.addCell (row, 4, active);
if (showAge) table.addCell (row, 5, age); table.addCell (row, 5, age);
table.addCell (row, (showAge ? 6 : 5), refTask.getDescription ()); table.addCell (row, 6, refTask.getDescription ());
if (conf.get ("color", true)) if (conf.get ("color", true))
{ {
@ -2102,7 +2096,6 @@ std::string handleReportOldest (TDB& tdb, T& task, Config& conf)
initializeColorRules (conf); initializeColorRules (conf);
bool showAge = conf.get ("showage", true);
unsigned int quantity = conf.get ("oldest", 10); unsigned int quantity = conf.get ("oldest", 10);
// Create a table for output. // Create a table for output.
@ -2113,7 +2106,7 @@ std::string handleReportOldest (TDB& tdb, T& task, Config& conf)
table.addColumn ("Pri"); table.addColumn ("Pri");
table.addColumn ("Due"); table.addColumn ("Due");
table.addColumn ("Active"); table.addColumn ("Active");
if (showAge) table.addColumn ("Age"); table.addColumn ("Age");
table.addColumn ("Description"); table.addColumn ("Description");
if (conf.get ("color", true)) if (conf.get ("color", true))
@ -2124,7 +2117,7 @@ std::string handleReportOldest (TDB& tdb, T& task, Config& conf)
table.setColumnUnderline (3); table.setColumnUnderline (3);
table.setColumnUnderline (4); table.setColumnUnderline (4);
table.setColumnUnderline (5); table.setColumnUnderline (5);
if (showAge) table.setColumnUnderline (6); table.setColumnUnderline (6);
} }
else else
table.setTableDashedUnderline (); table.setTableDashedUnderline ();
@ -2134,12 +2127,12 @@ std::string handleReportOldest (TDB& tdb, T& task, Config& conf)
table.setColumnWidth (2, Table::minimum); table.setColumnWidth (2, Table::minimum);
table.setColumnWidth (3, Table::minimum); table.setColumnWidth (3, Table::minimum);
table.setColumnWidth (4, Table::minimum); table.setColumnWidth (4, Table::minimum);
if (showAge) table.setColumnWidth (5, Table::minimum); table.setColumnWidth (5, Table::minimum);
table.setColumnWidth ((showAge ? 6 : 5), Table::flexible); table.setColumnWidth (6, Table::flexible);
table.setColumnJustification (0, Table::right); table.setColumnJustification (0, Table::right);
table.setColumnJustification (3, Table::right); table.setColumnJustification (3, Table::right);
if (showAge) table.setColumnJustification (5, Table::right); table.setColumnJustification (5, Table::right);
table.sortOn (3, Table::ascendingDate); table.sortOn (3, Table::ascendingDate);
table.sortOn (2, Table::descendingPriority); table.sortOn (2, Table::descendingPriority);
@ -2189,8 +2182,8 @@ std::string handleReportOldest (TDB& tdb, T& task, Config& conf)
table.addCell (row, 2, refTask.getAttribute ("priority")); table.addCell (row, 2, refTask.getAttribute ("priority"));
table.addCell (row, 3, due); table.addCell (row, 3, due);
table.addCell (row, 4, active); table.addCell (row, 4, active);
if (showAge) table.addCell (row, 5, age); table.addCell (row, 5, age);
table.addCell (row, (showAge ? 6 : 5), refTask.getDescription ()); table.addCell (row, 6, refTask.getDescription ());
if (conf.get ("color", true)) if (conf.get ("color", true))
{ {
@ -2250,7 +2243,6 @@ std::string handleReportNewest (TDB& tdb, T& task, Config& conf)
initializeColorRules (conf); initializeColorRules (conf);
bool showAge = conf.get ("showage", true);
int quantity = conf.get ("newest", 10); int quantity = conf.get ("newest", 10);
// Create a table for output. // Create a table for output.
@ -2261,7 +2253,7 @@ std::string handleReportNewest (TDB& tdb, T& task, Config& conf)
table.addColumn ("Pri"); table.addColumn ("Pri");
table.addColumn ("Due"); table.addColumn ("Due");
table.addColumn ("Active"); table.addColumn ("Active");
if (showAge) table.addColumn ("Age"); table.addColumn ("Age");
table.addColumn ("Description"); table.addColumn ("Description");
if (conf.get ("color", true)) if (conf.get ("color", true))
@ -2272,7 +2264,7 @@ std::string handleReportNewest (TDB& tdb, T& task, Config& conf)
table.setColumnUnderline (3); table.setColumnUnderline (3);
table.setColumnUnderline (4); table.setColumnUnderline (4);
table.setColumnUnderline (5); table.setColumnUnderline (5);
if (showAge) table.setColumnUnderline (6); table.setColumnUnderline (6);
} }
else else
table.setTableDashedUnderline (); table.setTableDashedUnderline ();
@ -2282,12 +2274,12 @@ std::string handleReportNewest (TDB& tdb, T& task, Config& conf)
table.setColumnWidth (2, Table::minimum); table.setColumnWidth (2, Table::minimum);
table.setColumnWidth (3, Table::minimum); table.setColumnWidth (3, Table::minimum);
table.setColumnWidth (4, Table::minimum); table.setColumnWidth (4, Table::minimum);
if (showAge) table.setColumnWidth (5, Table::minimum); table.setColumnWidth (5, Table::minimum);
table.setColumnWidth ((showAge ? 6 : 5), Table::flexible); table.setColumnWidth (6, Table::flexible);
table.setColumnJustification (0, Table::right); table.setColumnJustification (0, Table::right);
table.setColumnJustification (3, Table::right); table.setColumnJustification (3, Table::right);
if (showAge) table.setColumnJustification (5, Table::right); table.setColumnJustification (5, Table::right);
table.sortOn (3, Table::ascendingDate); table.sortOn (3, Table::ascendingDate);
table.sortOn (2, Table::descendingPriority); table.sortOn (2, Table::descendingPriority);
@ -2338,8 +2330,8 @@ std::string handleReportNewest (TDB& tdb, T& task, Config& conf)
table.addCell (row, 2, refTask.getAttribute ("priority")); table.addCell (row, 2, refTask.getAttribute ("priority"));
table.addCell (row, 3, due); table.addCell (row, 3, due);
table.addCell (row, 4, active); table.addCell (row, 4, active);
if (showAge) table.addCell (row, 5, age); table.addCell (row, 5, age);
table.addCell (row, (showAge ? 6 : 5), refTask.getDescription ()); table.addCell (row, 6, refTask.getDescription ());
if (conf.get ("color", true)) if (conf.get ("color", true))
{ {