mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Enhancement
- Minimized the default .taskrc file that is generated. It now relies heavily on default values, but supplies data.location, and includes the default theme. - Updated taskrc.5 man page to include new depends column.
This commit is contained in:
parent
93e862b367
commit
7a23b67020
3 changed files with 14 additions and 3 deletions
|
@ -3,7 +3,10 @@
|
|||
|
||||
1.9.3 ()
|
||||
+ Added feature #423, now custom report filters allow rc overrides.
|
||||
+ New 'depends' column for custom reports.
|
||||
+ Improved man pages (thanks to Andy Lester).
|
||||
+ Default .taskrc files are now largely empty, and rely almost completed
|
||||
on default values.
|
||||
|
||||
------ old releases ------------------------------
|
||||
|
||||
|
|
|
@ -758,8 +758,8 @@ The description for report X when running the "task help" command.
|
|||
The columns that will be used when generating the report X. Valid columns are:
|
||||
id, uuid, project, priority, priority_long, entry, entry_time, start, start_time,
|
||||
end, end_time, due, countdown, countdown_compact, age, age_compact, active, tags,
|
||||
description_only, description, recur, recurrence_indicator, tag_indicator and wait.
|
||||
The IDs are separated by commas.
|
||||
depends, description_only, description, recur, recurrence_indicator, tag_indicator
|
||||
and wait. The IDs are separated by commas.
|
||||
|
||||
.TP
|
||||
.B report.X.labels
|
||||
|
|
|
@ -55,6 +55,8 @@ std::string Config::defaults =
|
|||
"# variable= -- By specifying no value, this means no default\n"
|
||||
"# #variable=foo -- By commenting out the line, this uses the default\n"
|
||||
"\n"
|
||||
"# Use the command 'task show' to see all defaults and overrides\n"
|
||||
"\n"
|
||||
"# Files\n"
|
||||
"data.location=~/.task\n"
|
||||
"locking=on # Use file-level locking\n"
|
||||
|
@ -472,7 +474,13 @@ void Config::createDefaultRC (const std::string& rc, const std::string& data)
|
|||
<< "]\n"
|
||||
<< defaults.substr (0, loc + 14)
|
||||
<< data
|
||||
<< defaults.substr (loc + 21);
|
||||
<< "\n\n# Color theme\n"
|
||||
#ifdef LINUX
|
||||
<< "include /usr/local/share/doc/task/rc/dark-256.theme"
|
||||
#else
|
||||
<< "include /usr/local/share/doc/task/rc/dark-16.theme"
|
||||
#endif
|
||||
<< "\n\n";
|
||||
|
||||
// Write out the new file.
|
||||
if (! File::write (rc, contents.str ()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue