From e6601e1a289383475328522bbdae520ac5fbf95f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 9 Feb 2017 19:44:44 -0500 Subject: [PATCH] Docs: Updated docs with new history/ghistory commands. --- ChangeLog | 3 +++ NEWS | 2 ++ src/commands/CmdHistory.cpp | 36 ++++++++++++++++++------------------ 3 files changed, 23 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index e7f0638d0..e31c9b1dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -83,6 +83,9 @@ - Updated the 'timesheet' command with a more compact report that accepts a filter, and has a default filter showing the last four weeks of completed and started tasks. +- Added 'history.weekly', 'history.daily', 'ghistory.weekly', 'ghistory.daily' + report variations, with code refactoring. + (thanks to Lukas Barth). ------ current release --------------------------- diff --git a/NEWS b/NEWS index b805ab9ca..04f4cdfe1 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,8 @@ New Features in Taskwarrior 2.6.0 New Commands in Taskwarrior 2.6.0 - The 'purge' command was added, which completely removes old tasks. + - Added new 'history.weekly', 'history.daily', 'ghistory.weekly', + 'ghistory.daily' reports. New Configuration Options in Taskwarrior 2.6.0 diff --git a/src/commands/CmdHistory.cpp b/src/commands/CmdHistory.cpp index 0b74d36ae..cf4ec3e0f 100644 --- a/src/commands/CmdHistory.cpp +++ b/src/commands/CmdHistory.cpp @@ -301,8 +301,8 @@ public: static void setupTableDates (Table & view) { - view.add (STRING_CMD_HISTORY_YEAR); - view.add (STRING_CMD_HISTORY_MONTH); + view.add (STRING_CMD_HISTORY_YEAR, false); + view.add (STRING_CMD_HISTORY_MONTH, false); } static void insertRowDate ( @@ -404,8 +404,8 @@ public: static void setupTableDates (Table & view) { - view.add (STRING_CMD_HISTORY_YEAR); - view.add (STRING_CMD_HISTORY_MONTH); + view.add (STRING_CMD_HISTORY_YEAR, false); + view.add (STRING_CMD_HISTORY_MONTH, false); } static void insertRowDate ( @@ -448,7 +448,7 @@ public: static void setupTableDates (Table & view) { - view.add (STRING_CMD_HISTORY_YEAR); + view.add (STRING_CMD_HISTORY_YEAR, false); } static void insertRowDate ( @@ -489,7 +489,7 @@ public: static void setupTableDates (Table & view) { - view.add (STRING_CMD_HISTORY_YEAR); + view.add (STRING_CMD_HISTORY_YEAR, false); } static void insertRowDate ( @@ -531,9 +531,9 @@ public: static void setupTableDates (Table & view) { - view.add (STRING_CMD_HISTORY_YEAR); - view.add (STRING_CMD_HISTORY_MONTH); - view.add (STRING_CMD_HISTORY_DAY); + view.add (STRING_CMD_HISTORY_YEAR, false); + view.add (STRING_CMD_HISTORY_MONTH, false); + view.add (STRING_CMD_HISTORY_DAY, false); } static void insertRowDate ( @@ -581,9 +581,9 @@ public: static void setupTableDates (Table & view) { - view.add (STRING_CMD_HISTORY_YEAR); - view.add (STRING_CMD_HISTORY_MONTH); - view.add (STRING_CMD_HISTORY_DAY); + view.add (STRING_CMD_HISTORY_YEAR, false); + view.add (STRING_CMD_HISTORY_MONTH, false); + view.add (STRING_CMD_HISTORY_DAY, false); } static void insertRowDate ( @@ -631,9 +631,9 @@ public: static void setupTableDates (Table & view) { - view.add (STRING_CMD_HISTORY_YEAR); - view.add (STRING_CMD_HISTORY_MONTH); - view.add (STRING_CMD_HISTORY_DAY); + view.add (STRING_CMD_HISTORY_YEAR, false); + view.add (STRING_CMD_HISTORY_MONTH, false); + view.add (STRING_CMD_HISTORY_DAY, false); } static void insertRowDate ( @@ -681,9 +681,9 @@ public: static void setupTableDates (Table & view) { - view.add (STRING_CMD_HISTORY_YEAR); - view.add (STRING_CMD_HISTORY_MONTH); - view.add (STRING_CMD_HISTORY_DAY); + view.add (STRING_CMD_HISTORY_YEAR, false); + view.add (STRING_CMD_HISTORY_MONTH, false); + view.add (STRING_CMD_HISTORY_DAY, false); } static void insertRowDate (