mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Feature
- The 'summary' report now uses 'project.indented' format.
This commit is contained in:
parent
adb6785931
commit
a73c711188
3 changed files with 7 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
||||||
Features
|
Features
|
||||||
+ Added the new 'indented' format for the 'project' attribute.
|
+ Added the new 'indented' format for the 'project' attribute.
|
||||||
+ The 'projects' report now uses 'project.indented' format.
|
+ The 'projects' report now uses 'project.indented' format.
|
||||||
|
+ The 'summary' report now uses 'project.indented' format.
|
||||||
|
|
||||||
Bugs
|
Bugs
|
||||||
+ Fixed grammar in feedback string (thanks to Uli Martens).
|
+ Fixed grammar in feedback string (thanks to Uli Martens).
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
#include <ViewText.h>
|
#include <ViewText.h>
|
||||||
#include <Duration.h>
|
#include <Duration.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
|
#include <util.h>
|
||||||
#include <i18n.h>
|
#include <i18n.h>
|
||||||
#include <main.h>
|
#include <main.h>
|
||||||
#include <CmdSummary.h>
|
#include <CmdSummary.h>
|
||||||
|
@ -135,7 +136,10 @@ int CmdSummary::execute (std::string& output)
|
||||||
if (countPending[i->first] > 0)
|
if (countPending[i->first] > 0)
|
||||||
{
|
{
|
||||||
int row = view.addRow ();
|
int row = view.addRow ();
|
||||||
view.set (row, 0, (i->first == "" ? "(none)" : i->first));
|
view.set (row, 0, (i->first == ""
|
||||||
|
? STRING_CMD_SUMMARY_NONE
|
||||||
|
: indentProject (i->first, " ", '.')));
|
||||||
|
|
||||||
view.set (row, 1, countPending[i->first]);
|
view.set (row, 1, countPending[i->first]);
|
||||||
if (counter[i->first])
|
if (counter[i->first])
|
||||||
view.set (row, 2, Duration ((int) (sumEntry[i->first] / (double)counter[i->first])).format ());
|
view.set (row, 2, Duration ((int) (sumEntry[i->first] / (double)counter[i->first])).format ());
|
||||||
|
|
|
@ -300,6 +300,7 @@
|
||||||
#define STRING_CMD_SUMMARY_REMAINING "Remaining"
|
#define STRING_CMD_SUMMARY_REMAINING "Remaining"
|
||||||
#define STRING_CMD_SUMMARY_AVG_AGE "Avg age"
|
#define STRING_CMD_SUMMARY_AVG_AGE "Avg age"
|
||||||
#define STRING_CMD_SUMMARY_COMPLETE "Complete"
|
#define STRING_CMD_SUMMARY_COMPLETE "Complete"
|
||||||
|
#define STRING_CMD_SUMMARY_NONE "(none)"
|
||||||
#define STRING_CMD_COUNT_USAGE "Counts matching tasks"
|
#define STRING_CMD_COUNT_USAGE "Counts matching tasks"
|
||||||
|
|
||||||
#define STRING_CMD_DELETE_USAGE "Deletes the specified task"
|
#define STRING_CMD_DELETE_USAGE "Deletes the specified task"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue