mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug
- Fixed underlining in projects report when color is off - the dashes were not being used. - Cleaned up formatting in main.h.
This commit is contained in:
parent
e9301257f8
commit
12146a6f01
2 changed files with 45 additions and 43 deletions
|
@ -262,8 +262,8 @@ int handleProjects (std::string &outs)
|
||||||
table.addColumn ("Pri:M");
|
table.addColumn ("Pri:M");
|
||||||
table.addColumn ("Pri:H");
|
table.addColumn ("Pri:H");
|
||||||
|
|
||||||
if (context.config.getBoolean ("color") ||
|
if ((context.config.getBoolean ("color") || context.config.getBoolean ("_forcecolor")) &&
|
||||||
context.config.getBoolean ("_forcecolor"))
|
context.config.getBoolean ("fontunderline"))
|
||||||
{
|
{
|
||||||
table.setColumnUnderline (0);
|
table.setColumnUnderline (0);
|
||||||
table.setColumnUnderline (1);
|
table.setColumnUnderline (1);
|
||||||
|
@ -272,6 +272,8 @@ int handleProjects (std::string &outs)
|
||||||
table.setColumnUnderline (4);
|
table.setColumnUnderline (4);
|
||||||
table.setColumnUnderline (5);
|
table.setColumnUnderline (5);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
table.setTableDashedUnderline ();
|
||||||
|
|
||||||
table.setColumnJustification (1, Table::right);
|
table.setColumnJustification (1, Table::right);
|
||||||
table.setColumnJustification (2, Table::right);
|
table.setColumnJustification (2, Table::right);
|
||||||
|
|
82
src/main.h
82
src/main.h
|
@ -53,31 +53,31 @@ int getDueState (const std::string&);
|
||||||
bool nag (Task&);
|
bool nag (Task&);
|
||||||
|
|
||||||
// command.cpp
|
// command.cpp
|
||||||
int handleAdd (std::string &);
|
int handleAdd (std::string&);
|
||||||
int handleLog (std::string &);
|
int handleLog (std::string&);
|
||||||
int handleAppend (std::string &);
|
int handleAppend (std::string&);
|
||||||
int handlePrepend (std::string &);
|
int handlePrepend (std::string&);
|
||||||
int handleDone (std::string &);
|
int handleDone (std::string&);
|
||||||
int handleModify (std::string &);
|
int handleModify (std::string&);
|
||||||
int handleProjects (std::string &);
|
int handleProjects (std::string&);
|
||||||
int handleCompletionProjects (std::string &);
|
int handleCompletionProjects (std::string&);
|
||||||
int handleTags (std::string &);
|
int handleTags (std::string&);
|
||||||
int handleCompletionTags (std::string &);
|
int handleCompletionTags (std::string&);
|
||||||
int handleCompletionCommands (std::string &);
|
int handleCompletionCommands (std::string&);
|
||||||
int handleCompletionIDs (std::string &);
|
int handleCompletionIDs (std::string&);
|
||||||
int handleCompletionConfig (std::string &);
|
int handleCompletionConfig (std::string&);
|
||||||
int handleCompletionVersion (std::string &);
|
int handleCompletionVersion (std::string&);
|
||||||
int handleUrgency (std::string &);
|
int handleUrgency (std::string&);
|
||||||
int handleVersion (std::string &);
|
int handleVersion (std::string&);
|
||||||
int handleConfig (std::string &);
|
int handleConfig (std::string&);
|
||||||
int handleShow (std::string &);
|
int handleShow (std::string&);
|
||||||
int handleDelete (std::string &);
|
int handleDelete (std::string&);
|
||||||
int handleStart (std::string &);
|
int handleStart (std::string&);
|
||||||
int handleStop (std::string &);
|
int handleStop (std::string&);
|
||||||
int handleColor (std::string &);
|
int handleColor (std::string&);
|
||||||
int handleAnnotate (std::string &);
|
int handleAnnotate (std::string&);
|
||||||
int handleDenotate (std::string &);
|
int handleDenotate (std::string&);
|
||||||
int handleDuplicate (std::string &);
|
int handleDuplicate (std::string&);
|
||||||
void handleUndo ();
|
void handleUndo ();
|
||||||
void handleMerge (std::string&);
|
void handleMerge (std::string&);
|
||||||
void handlePush (std::string&);
|
void handlePush (std::string&);
|
||||||
|
@ -93,20 +93,20 @@ int deltaAttributes (Task&);
|
||||||
int deltaSubstitutions (Task&);
|
int deltaSubstitutions (Task&);
|
||||||
|
|
||||||
// edit.cpp
|
// edit.cpp
|
||||||
int handleEdit (std::string &);
|
int handleEdit (std::string&);
|
||||||
|
|
||||||
// report.cpp
|
// report.cpp
|
||||||
int shortUsage (std::string &);
|
int shortUsage (std::string&);
|
||||||
int longUsage (std::string &);
|
int longUsage (std::string&);
|
||||||
int handleInfo (std::string &);
|
int handleInfo (std::string&);
|
||||||
int handleReportSummary (std::string &);
|
int handleReportSummary (std::string&);
|
||||||
int handleReportHistoryMonthly (std::string &);
|
int handleReportHistoryMonthly (std::string&);
|
||||||
int handleReportHistoryAnnual (std::string &);
|
int handleReportHistoryAnnual (std::string&);
|
||||||
int handleReportGHistoryMonthly (std::string &);
|
int handleReportGHistoryMonthly (std::string&);
|
||||||
int handleReportGHistoryAnnual (std::string &);
|
int handleReportGHistoryAnnual (std::string&);
|
||||||
int handleReportCalendar (std::string &);
|
int handleReportCalendar (std::string&);
|
||||||
int handleReportStats (std::string &);
|
int handleReportStats (std::string&);
|
||||||
int handleReportTimesheet (std::string &);
|
int handleReportTimesheet (std::string&);
|
||||||
void gatherNextTasks (std::vector <Task>&);
|
void gatherNextTasks (std::vector <Task>&);
|
||||||
std::string getFullDescription (Task&, const std::string&);
|
std::string getFullDescription (Task&, const std::string&);
|
||||||
std::string getDueDate (Task&, const std::string&);
|
std::string getDueDate (Task&, const std::string&);
|
||||||
|
@ -114,7 +114,7 @@ std::string onProjectChange (Task&, bool scope = true);
|
||||||
std::string onProjectChange (Task&, Task&);
|
std::string onProjectChange (Task&, Task&);
|
||||||
|
|
||||||
// custom.cpp
|
// custom.cpp
|
||||||
int handleCustomReport (const std::string&, std::string &);
|
int handleCustomReport (const std::string&, std::string&);
|
||||||
void validReportColumns (const std::vector <std::string>&);
|
void validReportColumns (const std::vector <std::string>&);
|
||||||
void validSortColumns (const std::vector <std::string>&, const std::vector <std::string>&);
|
void validSortColumns (const std::vector <std::string>&, const std::vector <std::string>&);
|
||||||
void getLimits (const std::string&, int&, int&);
|
void getLimits (const std::string&, int&, int&);
|
||||||
|
@ -130,9 +130,9 @@ std::string colorizeDebug (const std::string&);
|
||||||
int handleImport (std::string&);
|
int handleImport (std::string&);
|
||||||
|
|
||||||
// export.cpp
|
// export.cpp
|
||||||
int handleExportCSV (std::string &);
|
int handleExportCSV (std::string&);
|
||||||
int handleExportiCal (std::string &);
|
int handleExportiCal (std::string&);
|
||||||
int handleExportYAML (std::string &);
|
int handleExportYAML (std::string&);
|
||||||
|
|
||||||
// dependency.cpp
|
// dependency.cpp
|
||||||
bool dependencyIsBlocked (const Task&);
|
bool dependencyIsBlocked (const Task&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue