From dbfab0a5356076af09058cb7f8983522b1ce245a 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 74ed09eb5..d31fd44da 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 1ecfa637e..6a011fafd 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,8 @@ New Features in Taskwarrior 2.5.2 New Commands in Taskwarrior 2.5.2 - 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.5.2 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 (