mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 14:36:44 +02:00
Config: Changed to 0/1 boolean values for the defaults.
- Deprecated use of alternate Boolean configuration settings. Use values "0" for off, and "1" for on. Avoid used of "on", "off", "true", "t", "false", "f", "yes", "y", "no", "n".
This commit is contained in:
parent
4a48b8112b
commit
0b729b5d97
4 changed files with 136 additions and 129 deletions
|
@ -40,6 +40,9 @@
|
||||||
- Added 'QUARTER' virtual tag.
|
- Added 'QUARTER' virtual tag.
|
||||||
- Fixed unquoted glob in bash completion script
|
- Fixed unquoted glob in bash completion script
|
||||||
(thanks to Ran Benita).
|
(thanks to Ran Benita).
|
||||||
|
- Deprecated use of alternate Boolean configuration settings. Use values "0" for
|
||||||
|
off, and "1" for on. Avoid used of "on", "off", "true", "t", "false", "f",
|
||||||
|
"yes", "y", "no", "n".
|
||||||
|
|
||||||
------ current release ---------------------------
|
------ current release ---------------------------
|
||||||
|
|
||||||
|
|
3
NEWS
3
NEWS
|
@ -17,6 +17,9 @@ Newly Deprecated Features in Taskwarrior 2.6.0
|
||||||
not needed.
|
not needed.
|
||||||
- The 'new-uuid' verbosity option is to be removed due to being redundant, its
|
- The 'new-uuid' verbosity option is to be removed due to being redundant, its
|
||||||
functionality will be merged with 'new-id' option.
|
functionality will be merged with 'new-id' option.
|
||||||
|
- The use of alternate Boolean configuration settings is deprecated. Use values
|
||||||
|
"0" for off, and "1" for on. Avoid used of "on", "off", "true", "t",
|
||||||
|
"false", "f", "yes", "y", "no", "n".
|
||||||
|
|
||||||
Removed Features in 2.6.0
|
Removed Features in 2.6.0
|
||||||
|
|
||||||
|
|
|
@ -68,8 +68,8 @@ The entry must be on a single line, no continuations.
|
||||||
Values support UTF8 as well as JSON encoding, such as \\uNNNN.
|
Values support UTF8 as well as JSON encoding, such as \\uNNNN.
|
||||||
|
|
||||||
Note that Taskwarrior is flexible about the values used to represent Boolean
|
Note that Taskwarrior is flexible about the values used to represent Boolean
|
||||||
items. You can use "on", "yes", "y", "1" and "true".
|
items. You can use "1" to enable, anything else is interpreted as disabled.
|
||||||
Anything else means "off".
|
The values "on", "yes", "y" and "true" are currently supported by deprecated.
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
include <file>
|
include <file>
|
||||||
|
@ -181,33 +181,33 @@ shell meta character, which will be properly expanded.
|
||||||
Note that the TASKDATA environment variable overrides this setting.
|
Note that the TASKDATA environment variable overrides this setting.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B locking=on
|
.B locking=1
|
||||||
Determines whether to use file locking when accessing the pending.data and
|
Determines whether to use file locking when accessing the pending.data and
|
||||||
completed.data files. Defaults to "on". Solaris users who store the data
|
completed.data files. Defaults to "1". Solaris users who store the data
|
||||||
files on an NFS mount may need to set locking to "off". Note that there is
|
files on an NFS mount may need to set locking to "0". Note that there is
|
||||||
danger in setting this value to "off" - another program (or another instance of
|
danger in setting this value to "0" - another program (or another instance of
|
||||||
task) may write to the task.pending file at the same time.
|
task) may write to the task.pending file at the same time.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B gc=on
|
.B gc=1
|
||||||
Can be used to temporarily suspend garbage collection (gc), so that task IDs
|
Can be used to temporarily suspend garbage collection (gc), so that task IDs
|
||||||
don't change. Note that this should be used in the form of a command line
|
don't change. Note that this should be used in the form of a command line
|
||||||
override (task rc.gc=off ...), and not permanently used in the .taskrc file,
|
override (task rc.gc=0 ...), and not permanently used in the .taskrc file,
|
||||||
as this significantly affects performance in the long term.
|
as this significantly affects performance in the long term.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B hooks=on
|
.B hooks=1
|
||||||
This master control switch enables hook script processing. The default value
|
This master control switch enables hook script processing. The default value
|
||||||
is 'on', but certain extensions and environments may need to disable hooks.
|
is '1', but certain extensions and environments may need to disable hooks.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B exit.on.missing.db=no
|
.B exit.on.missing.db=0
|
||||||
When set to 'yes' causes the program to exit if the database (~/.task or
|
When set to '1' causes the program to exit if the database (~/.task or
|
||||||
rc.data.location or TASKDATA override) is missing. Default value is 'no'.
|
rc.data.location or TASKDATA override) is missing. Default value is '0'.
|
||||||
|
|
||||||
.SS TERMINAL
|
.SS TERMINAL
|
||||||
.TP
|
.TP
|
||||||
.B detection=on
|
.B detection=1
|
||||||
Determines whether to use ioctl to establish the size of the window you are
|
Determines whether to use ioctl to establish the size of the window you are
|
||||||
using, for text wrapping.
|
using, for text wrapping.
|
||||||
|
|
||||||
|
@ -225,14 +225,14 @@ to 24. If set to 0, it is interpreted as infinite height. This is useful when re
|
||||||
charts to a file for subsequent handling.
|
charts to a file for subsequent handling.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B avoidlastcolumn=no
|
.B avoidlastcolumn=0
|
||||||
Causes the width of the terminal minus one to be used as the full width. This
|
Causes the width of the terminal minus one to be used as the full width. This
|
||||||
avoids placing color codes in the last column which can cause problems for
|
avoids placing color codes in the last column which can cause problems for
|
||||||
Cygwin users. Default value is 'no'.
|
Cygwin users. Default value is '0'.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B hyphenate=on
|
.B hyphenate=1
|
||||||
Hyphenates lines when wrapping breaks occur mid-word. Default value is 'on'.
|
Hyphenates lines when wrapping breaks occur mid-word. Default value is '1'.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B editor=vi
|
.B editor=vi
|
||||||
|
@ -250,9 +250,9 @@ prompt. This is only referenced when 'limit:page' is used.
|
||||||
.SS MISCELLANEOUS
|
.SS MISCELLANEOUS
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B verbose=on|off|nothing|list...
|
.B verbose=1|0|nothing|list...
|
||||||
When set to "on" (the default), helpful explanatory comments are added to all
|
When set to "1" (the default), helpful explanatory comments are added to all
|
||||||
output from Taskwarrior. Setting this to "off" means that you would see regular
|
output from Taskwarrior. Setting this to "0" means that you would see regular
|
||||||
output.
|
output.
|
||||||
|
|
||||||
The special value "nothing" can be used to eliminate all optional output, which
|
The special value "nothing" can be used to eliminate all optional output, which
|
||||||
|
@ -280,15 +280,15 @@ control specific occasions when output is generated. This list may contain:
|
||||||
|
|
||||||
"affected", "new-id", "new-uuid" "project" and "unwait" imply "footnote".
|
"affected", "new-id", "new-uuid" "project" and "unwait" imply "footnote".
|
||||||
|
|
||||||
Note that the "on" setting is equivalent to all the tokens being specified,
|
Note that the "1" setting is equivalent to all the tokens being specified,
|
||||||
and the "nothing" setting is equivalent to none of the tokens being specified.
|
and the "nothing" setting is equivalent to none of the tokens being specified.
|
||||||
|
|
||||||
Here are the shortcut equivalents:
|
Here are the shortcut equivalents:
|
||||||
|
|
||||||
verbose=on
|
verbose=1
|
||||||
verbose=blank,header,footnote,label,new-id,affected,edit,special,project,sync,filter,unwait
|
verbose=blank,header,footnote,label,new-id,affected,edit,special,project,sync,filter,unwait
|
||||||
|
|
||||||
verbose=off
|
verbose=0
|
||||||
verbose=blank,label,new-id,edit
|
verbose=blank,label,new-id,edit
|
||||||
|
|
||||||
verbose=nothing
|
verbose=nothing
|
||||||
|
@ -298,16 +298,16 @@ Those additional comments are sent to the standard error for header, footnote
|
||||||
and project. The others are sent to standard output.
|
and project. The others are sent to standard output.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B confirmation=yes
|
.B confirmation=1
|
||||||
May be "yes" or "no", and determines whether Taskwarrior will ask for
|
May be "1" or "0", and determines whether Taskwarrior will ask for
|
||||||
confirmation before deleting a task or performing the undo command. The default
|
confirmation before deleting a task or performing the undo command. The default
|
||||||
value is "yes". Consider leaving this setting as "yes", for safety.
|
value is "1". Consider leaving this enabled, for safety.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B allow.empty.filter=yes
|
.B allow.empty.filter=1
|
||||||
An empty filter combined with a write command is potentially a way to modify
|
An empty filter combined with a write command is potentially a way to modify
|
||||||
all tasks by mistake, and when this is detected, confirmation is required.
|
all tasks by mistake, and when this is detected, confirmation is required.
|
||||||
Setting this to 'no' means that it is an error to use a write command with no
|
Setting this to '0' means that it is an error to use a write command with no
|
||||||
filter.
|
filter.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
@ -344,47 +344,47 @@ Default value is: 'You have more urgent tasks'.
|
||||||
It is a gentle reminder that you are contradicting your own urgency settings.
|
It is a gentle reminder that you are contradicting your own urgency settings.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B list.all.projects=no
|
.B list.all.projects=0
|
||||||
May be yes or no, and determines whether the 'projects' command lists all the project
|
May be "1" or "0", and determines whether the 'projects' command lists all the project
|
||||||
names you have used, or just the ones used in active tasks. The default value is
|
names you have used, or just the ones used in active tasks. The default value is
|
||||||
"no".
|
"0".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B summary.all.projects=no
|
.B summary.all.projects=0
|
||||||
If set to yes, shows all projects in the summary report, even if there are no
|
If set to "1", shows all projects in the summary report, even if there are no
|
||||||
pending tasks. The default value is "no".
|
pending tasks. The default value is "0".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B complete.all.tags=yes
|
.B complete.all.tags=1
|
||||||
May be yes or no, and determines whether the tab completion scripts consider all
|
May be "1" or "0", and determines whether the tab completion scripts consider all
|
||||||
the tag names you have used, or just the ones used in active tasks. The default
|
the tag names you have used, or just the ones used in active tasks. The default
|
||||||
value is "no".
|
value is "0".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B list.all.tags=yes
|
.B list.all.tags=1
|
||||||
May be yes or no, and determines whether the 'tags' command lists all the tag
|
May be "1" or "0", and determines whether the 'tags' command lists all the tag
|
||||||
names you have used, or just the ones used in active tasks. The default value is
|
names you have used, or just the ones used in active tasks. The default value is
|
||||||
"no".
|
"0".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B print.empty.columns=no
|
.B print.empty.columns=1
|
||||||
May be yes or no, and determines whether columns with no data for any task are
|
May be "1" or "0", and determines whether columns with no data for any task are
|
||||||
printed. Defaults to no.
|
printed. Defaults to "0".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B search.case.sensitive=yes
|
.B search.case.sensitive=1
|
||||||
May be yes or no, and determines whether keyword lookup and substitutions on the
|
May be "1" or "0", and determines whether keyword lookup and substitutions on the
|
||||||
description and annotations are done in a case sensitive way. Defaults to yes on
|
description and annotations are done in a case sensitive way. Defaults to "1" on
|
||||||
most platforms. Defaults to no on Cygwin due to older regex library problems with
|
most platforms. Defaults to "0" on Cygwin due to older regex library problems with
|
||||||
case-insensitivity.
|
case-insensitivity.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B regex=on
|
.B regex=1
|
||||||
Controls whether regular expression support is enabled. The default value is on.
|
Controls whether regular expression support is enabled. The default value is "1".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B xterm.title=no
|
.B xterm.title=1
|
||||||
Sets the xterm window title when reports are run. Defaults to off.
|
Sets the xterm window title when reports are run. Defaults to "0".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B expressions=infix|postfix
|
.B expressions=infix|postfix
|
||||||
|
@ -392,21 +392,21 @@ Sets a preference for infix expressions (1 + 2) or postfix expressions (1 2 +).
|
||||||
Defaults to infix.
|
Defaults to infix.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B json.array=on
|
.B json.array=1
|
||||||
Determines whether the export command encloses the JSON output in '[...]' and
|
Determines whether the export command encloses the JSON output in '[...]' and
|
||||||
adds ',' after each exported task object to create a properly-formed JSON
|
adds ',' after each exported task object to create a properly-formed JSON
|
||||||
array.
|
array.
|
||||||
With json.array=off, export writes raw JSON objects to STDOUT, one per line.
|
With json.array=0, export writes raw JSON objects to STDOUT, one per line.
|
||||||
Defaults to on.
|
Defaults to "1".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B json.depends.array=on
|
.B json.depends.array=1
|
||||||
Determines whether the export command encodes dependencies as an array of string
|
Determines whether the export command encodes dependencies as an array of string
|
||||||
UUIDs, or one comma-separated string.
|
UUIDs, or one comma-separated string.
|
||||||
Defaults to on.
|
Defaults to "1".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B _forcecolor=no
|
.B _forcecolor=1
|
||||||
Taskwarrior shuts off color automatically when the output is not sent directly
|
Taskwarrior shuts off color automatically when the output is not sent directly
|
||||||
to a TTY. For example, this command:
|
to a TTY. For example, this command:
|
||||||
|
|
||||||
|
@ -422,6 +422,8 @@ $ task rc._forcecolor=yes list > file
|
||||||
.RE
|
.RE
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
Defaults to "0".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B active.indicator=*
|
.B active.indicator=*
|
||||||
The character or string to show in the start.active column. Defaults to *.
|
The character or string to show in the start.active column. Defaults to *.
|
||||||
|
@ -439,9 +441,9 @@ The character or string to show in the depends.indicator column. Defaults to +.
|
||||||
The character or string to show in the <uda>.indicator column. Defaults to U.
|
The character or string to show in the <uda>.indicator column. Defaults to U.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B recurrence=yes
|
.B recurrence=1
|
||||||
Controls whether recurrence is enabled, and whether recurring tasks continue to
|
Controls whether recurrence is enabled, and whether recurring tasks continue to
|
||||||
generate new task instances. Defaults to 'yes'.
|
generate new task instances. Defaults to "1".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B recurrence.confirmation=prompt
|
.B recurrence.confirmation=prompt
|
||||||
|
@ -475,7 +477,7 @@ Minimum length of any abbreviated command/value. This means that "ve", "ver",
|
||||||
Default is 2.
|
Default is 2.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B debug=off
|
.B debug=0
|
||||||
Taskwarrior has a debug mode that causes diagnostic output to be displayed.
|
Taskwarrior has a debug mode that causes diagnostic output to be displayed.
|
||||||
Typically this is not something anyone would want, but when reporting a bug,
|
Typically this is not something anyone would want, but when reporting a bug,
|
||||||
debug output can be useful. It can also help explain how the command line is
|
debug output can be useful. It can also help explain how the command line is
|
||||||
|
@ -483,7 +485,7 @@ being parsed, but the information is displayed in a developer-friendly, not a
|
||||||
user-friendly way.
|
user-friendly way.
|
||||||
|
|
||||||
Turning debug on automatically sets debug.hooks=1, debug.parser=1 and debug.tls=2
|
Turning debug on automatically sets debug.hooks=1, debug.parser=1 and debug.tls=2
|
||||||
if they do not already have assigned values.
|
if they do not already have assigned values. Defaults to "0".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B debug.hooks=0
|
.B debug.hooks=0
|
||||||
|
@ -647,8 +649,8 @@ field that is set. Otherwise, they are set to the corresponding values of
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B date.iso=yes
|
.B date.iso=1
|
||||||
Enables ISO-8601 date support. The default value is "yes".
|
Enables ISO-8601 date support. The default value is "1".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B weekstart=Sunday
|
.B weekstart=Sunday
|
||||||
|
@ -656,10 +658,10 @@ Determines the day a week starts. Valid values are Sunday or Monday only. The
|
||||||
default value is "Sunday".
|
default value is "Sunday".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B displayweeknumber=yes
|
.B displayweeknumber=1
|
||||||
Determines if week numbers are displayed when using the "task calendar" command.
|
Determines if week numbers are displayed when using the "task calendar" command.
|
||||||
The week number is dependent on the day a week starts. The default value is
|
The week number is dependent on the day a week starts. The default value is
|
||||||
"yes".
|
"1".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B due=7
|
.B due=7
|
||||||
|
@ -681,9 +683,9 @@ The report to run when displaying the details of tasks with due dates when
|
||||||
running the "task calendar" command. The default value is "list".
|
running the "task calendar" command. The default value is "list".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B calendar.offset=off
|
.B calendar.offset=0
|
||||||
If "on" the first month in the calendar report is effectively changed by the
|
If "1" the first month in the calendar report is effectively changed by the
|
||||||
offset value specified in calendar.offset.value. It defaults to "off".
|
offset value specified in calendar.offset.value. It defaults to "0".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B calendar.offset.value=-1
|
.B calendar.offset.value=-1
|
||||||
|
@ -699,15 +701,15 @@ and no details on the holidays will be displayed. The displaying of holidays is
|
||||||
turned off by setting the variable to none. The default value is "none".
|
turned off by setting the variable to none. The default value is "none".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B calendar.legend=yes
|
.B calendar.legend=1
|
||||||
Determines whether the calendar legend is displayed. The default value is "yes".
|
Determines whether the calendar legend is displayed. The default value is "1".
|
||||||
|
|
||||||
.SS JOURNAL ENTRIES
|
.SS JOURNAL ENTRIES
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B journal.time=no
|
.B journal.time=0
|
||||||
May be yes or no, and determines whether the 'start' and 'stop' commands should
|
May be "1" or "0", and determines whether the 'start' and 'stop' commands should
|
||||||
record an annotation when being executed. The default value is "no". The text of
|
record an annotation when being executed. The default value is "0". The text of
|
||||||
the corresponding annotations is controlled by:
|
the corresponding annotations is controlled by:
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
@ -721,9 +723,9 @@ The text of the annotation that is recorded when executing the stop command and
|
||||||
having set journal.time.
|
having set journal.time.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B journal.info=on
|
.B journal.info=1
|
||||||
When enabled, this setting causes a change log of each task to be displayed by
|
When enabled, this setting causes a change log of each task to be displayed by
|
||||||
the 'info' command. Default value is "on".
|
the 'info' command. Default value is "1".
|
||||||
|
|
||||||
.SS HOLIDAYS
|
.SS HOLIDAYS
|
||||||
Holidays are entered either directly in the .taskrc file or via an include file
|
Holidays are entered either directly in the .taskrc file or via an include file
|
||||||
|
@ -782,22 +784,22 @@ specified, Taskwarrior will only show as many that will fit.
|
||||||
.SS DEPENDENCIES
|
.SS DEPENDENCIES
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B dependency.reminder=on
|
.B dependency.reminder=1
|
||||||
Determines whether dependency chain violations generate reminders.
|
Determines whether dependency chain violations generate reminders.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B dependency.confirmation=yes
|
.B dependency.confirmation=1
|
||||||
Determines whether dependency chain repair requires confirmation.
|
Determines whether dependency chain repair requires confirmation.
|
||||||
|
|
||||||
.SS COLOR CONTROLS
|
.SS COLOR CONTROLS
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B color=on
|
.B color=1
|
||||||
May be "on" or "off". Determines whether Taskwarrior uses color. When "off",
|
May be "1" or "0". Determines whether Taskwarrior uses color. When "0",
|
||||||
will use dashes (-----) to underline column headings.
|
will use dashes (-----) to underline column headings.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B fontunderline=on
|
.B fontunderline=1
|
||||||
Determines if font underlines or ASCII dashes should be used to underline
|
Determines if font underlines or ASCII dashes should be used to underline
|
||||||
headers, even when color is enabled.
|
headers, even when color is enabled.
|
||||||
.RE
|
.RE
|
||||||
|
@ -880,12 +882,11 @@ desired. In such cases, use the following option to disable this behaviour:
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B rule.color.merge=yes
|
.B rule.color.merge=1
|
||||||
Can be "yes" or "no". When "no", disables merging of colors produced by
|
Can be "1" or "0". When "0", disables merging of colors produced by
|
||||||
different color rules. Use if your color scheme produces unpleasing
|
different color rules. Use if your color scheme produces unpleasing
|
||||||
foreground and background combinations.
|
foreground and background combinations.
|
||||||
|
|
||||||
|
|
||||||
See the task-color(5) man pages for color details.
|
See the task-color(5) man pages for color details.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
@ -1151,7 +1152,7 @@ The coefficients reflect the relative importance of the various terms in the
|
||||||
urgency calculation. These are default values, and may be modified to suit your
|
urgency calculation. These are default values, and may be modified to suit your
|
||||||
preferences, but it is important that you carefully consider any modifications.
|
preferences, but it is important that you carefully consider any modifications.
|
||||||
|
|
||||||
.B urgency.inherit=off
|
.B urgency.inherit=0
|
||||||
.RS
|
.RS
|
||||||
Not actually a coefficient. When enabled, blocking tasks inherit
|
Not actually a coefficient. When enabled, blocking tasks inherit
|
||||||
the highest urgency value found in the tasks they block. This is
|
the highest urgency value found in the tasks they block. This is
|
||||||
|
|
|
@ -61,45 +61,45 @@ std::string Config::_defaults =
|
||||||
"\n"
|
"\n"
|
||||||
"# Files\n"
|
"# Files\n"
|
||||||
"data.location=~/.task\n"
|
"data.location=~/.task\n"
|
||||||
"locking=on # Use file-level locking\n"
|
"locking=1 # Use file-level locking\n"
|
||||||
"gc=on # Garbage-collect data files - DO NOT CHANGE unless you are sure\n"
|
"gc=1 # Garbage-collect data files - DO NOT CHANGE unless you are sure\n"
|
||||||
"exit.on.missing.db=no # Whether to exit if ~/.task is not found\n"
|
"exit.on.missing.db=0 # Whether to exit if ~/.task is not found\n"
|
||||||
"hooks=on # Master control switch for hooks\n"
|
"hooks=1 # Master control switch for hooks\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# Terminal\n"
|
"# Terminal\n"
|
||||||
"detection=on # Detects terminal width\n"
|
"detection=1 # Detects terminal width\n"
|
||||||
"defaultwidth=80 # Without detection, assumed width\n"
|
"defaultwidth=80 # Without detection, assumed width\n"
|
||||||
"defaultheight=24 # Without detection, assumed height\n"
|
"defaultheight=24 # Without detection, assumed height\n"
|
||||||
"avoidlastcolumn=no # Fixes Cygwin width problem\n"
|
"avoidlastcolumn=0 # Fixes Cygwin width problem\n"
|
||||||
"hyphenate=on # Hyphenates lines wrapped on non-word-breaks\n"
|
"hyphenate=1 # Hyphenates lines wrapped on non-word-breaks\n"
|
||||||
"#editor=vi # Preferred text editor\n"
|
"#editor=vi # Preferred text editor\n"
|
||||||
"reserved.lines=1 # Assume a 1-line prompt\n"
|
"reserved.lines=1 # Assume a 1-line prompt\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# Miscellaneous\n"
|
"# Miscellaneous\n"
|
||||||
"# # Comma-separated list. May contain any subset of:\n"
|
"# # Comma-separated list. May contain any subset of:\n"
|
||||||
"verbose=blank,header,footnote,label,new-id,new-uuid,affected,edit,special,project,sync,unwait,recur\n"
|
"verbose=blank,header,footnote,label,new-id,new-uuid,affected,edit,special,project,sync,unwait,recur\n"
|
||||||
"confirmation=yes # Confirmation on delete, big changes\n"
|
"confirmation=1 # Confirmation on delete, big changes\n"
|
||||||
"recurrence=yes # Enable recurrence\n"
|
"recurrence=1 # Enable recurrence\n"
|
||||||
"recurrence.confirmation=prompt # Confirmation for propagating changes among recurring tasks (yes/no/prompt)\n"
|
"recurrence.confirmation=prompt # Confirmation for propagating changes among recurring tasks (yes/no/prompt)\n"
|
||||||
"allow.empty.filter=yes # An empty filter gets a warning and requires confirmation\n"
|
"allow.empty.filter=1 # An empty filter gets a warning and requires confirmation\n"
|
||||||
"indent.annotation=2 # Indent spaces for annotations\n"
|
"indent.annotation=2 # Indent spaces for annotations\n"
|
||||||
"indent.report=0 # Indent spaces for whole report\n"
|
"indent.report=0 # Indent spaces for whole report\n"
|
||||||
"row.padding=0 # Left and right padding for each row of report\n"
|
"row.padding=0 # Left and right padding for each row of report\n"
|
||||||
"column.padding=1 # Spaces between each column in a report\n"
|
"column.padding=1 # Spaces between each column in a report\n"
|
||||||
"bulk=3 # 3 or more tasks considered a bulk change and is confirmed\n"
|
"bulk=3 # 3 or more tasks considered a bulk change and is confirmed\n"
|
||||||
"nag=You have more urgent tasks. # Nag message to keep you honest\n" // TODO
|
"nag=You have more urgent tasks. # Nag message to keep you honest\n" // TODO
|
||||||
"search.case.sensitive=yes # Setting to no allows case insensitive searches\n"
|
"search.case.sensitive=1 # Setting to no allows case insensitive searches\n"
|
||||||
"active.indicator=* # What to show as an active task indicator\n"
|
"active.indicator=* # What to show as an active task indicator\n"
|
||||||
"tag.indicator=+ # What to show as a tag indicator\n"
|
"tag.indicator=+ # What to show as a tag indicator\n"
|
||||||
"dependency.indicator=D # What to show as a dependency indicator\n"
|
"dependency.indicator=D # What to show as a dependency indicator\n"
|
||||||
"recurrence.indicator=R # What to show as a task recurrence indicator\n"
|
"recurrence.indicator=R # What to show as a task recurrence indicator\n"
|
||||||
"recurrence.limit=1 # Number of future recurring pending tasks\n"
|
"recurrence.limit=1 # Number of future recurring pending tasks\n"
|
||||||
"undo.style=side # Undo style - can be 'side', or 'diff'\n"
|
"undo.style=side # Undo style - can be 'side', or 'diff'\n"
|
||||||
"regex=yes # Assume all search/filter strings are regexes\n"
|
"regex=1 # Assume all search/filter strings are regexes\n"
|
||||||
"xterm.title=no # Sets xterm title for some commands\n"
|
"xterm.title=0 # Sets xterm title for some commands\n"
|
||||||
"expressions=infix # Prefer infix over postfix expressions\n"
|
"expressions=infix # Prefer infix over postfix expressions\n"
|
||||||
"json.array=on # Enclose JSON output in [ ]\n"
|
"json.array=1 # Enclose JSON output in [ ]\n"
|
||||||
"json.depends.array=off # Encode dependencies as a JSON array\n"
|
"json.depends.array=0 # Encode dependencies as a JSON array\n"
|
||||||
"abbreviation.minimum=2 # Shortest allowed abbreviation\n"
|
"abbreviation.minimum=2 # Shortest allowed abbreviation\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# Dates\n"
|
"# Dates\n"
|
||||||
|
@ -109,31 +109,31 @@ std::string Config::_defaults =
|
||||||
"dateformat.info=Y-M-D H:N:S # Preferred display date format for information\n"
|
"dateformat.info=Y-M-D H:N:S # Preferred display date format for information\n"
|
||||||
"dateformat.report= # Preferred display date format for reports\n"
|
"dateformat.report= # Preferred display date format for reports\n"
|
||||||
"dateformat.annotation= # Preferred display date format for annotations\n"
|
"dateformat.annotation= # Preferred display date format for annotations\n"
|
||||||
"date.iso=yes # Enable ISO date support\n"
|
"date.iso=1 # Enable ISO date support\n"
|
||||||
"weekstart="
|
"weekstart="
|
||||||
STRING_DATE_SUNDAY
|
STRING_DATE_SUNDAY
|
||||||
" # Sunday or Monday only\n"
|
" # Sunday or Monday only\n"
|
||||||
"displayweeknumber=yes # Show week numbers on calendar\n"
|
"displayweeknumber=1 # Show week numbers on calendar\n"
|
||||||
"due=7 # Task is considered due in 7 days\n"
|
"due=7 # Task is considered due in 7 days\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# Calendar controls\n"
|
"# Calendar controls\n"
|
||||||
"calendar.legend=yes # Display the legend on calendar\n"
|
"calendar.legend=1 # Display the legend on calendar\n"
|
||||||
"calendar.details=sparse # Calendar shows information for tasks w/due dates: full, sparse or none\n"
|
"calendar.details=sparse # Calendar shows information for tasks w/due dates: full, sparse or none\n"
|
||||||
"calendar.details.report=list # Report to use when showing task information in cal\n"
|
"calendar.details.report=list # Report to use when showing task information in cal\n"
|
||||||
"calendar.offset=no # Apply an offset value to control the first month of the calendar\n"
|
"calendar.offset=0 # Apply an offset value to control the first month of the calendar\n"
|
||||||
"calendar.offset.value=-1 # The number of months the first month of the calendar is moved\n"
|
"calendar.offset.value=-1 # The number of months the first month of the calendar is moved\n"
|
||||||
"calendar.holidays=none # Show public holidays on calendar:full, sparse or none\n"
|
"calendar.holidays=none # Show public holidays on calendar:full, sparse or none\n"
|
||||||
"#monthsperline=3 # Number of calendar months on a line\n"
|
"#monthsperline=3 # Number of calendar months on a line\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# Journal controls\n"
|
"# Journal controls\n"
|
||||||
"journal.time=no # Record start/stop commands as annotation\n"
|
"journal.time=0 # Record start/stop commands as annotation\n"
|
||||||
"journal.time.start.annotation=Started task # Annotation description for the start journal entry\n"
|
"journal.time.start.annotation=Started task # Annotation description for the start journal entry\n"
|
||||||
"journal.time.stop.annotation=Stopped task # Annotation description for the stop journal entry\n"
|
"journal.time.stop.annotation=Stopped task # Annotation description for the stop journal entry\n"
|
||||||
"journal.info=on # Display task journal with info command\n"
|
"journal.info=1 # Display task journal with info command\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# Dependency controls\n"
|
"# Dependency controls\n"
|
||||||
"dependency.reminder=on # Nags on dependency chain violations\n"
|
"dependency.reminder=1 # Nags on dependency chain violations\n"
|
||||||
"dependency.confirmation=on # Should dependency chain repair be confirmed?\n"
|
"dependency.confirmation=1 # Should dependency chain repair be confirmed?\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# Urgency Coefficients\n"
|
"# Urgency Coefficients\n"
|
||||||
"urgency.user.tag.next.coefficient=15.0 # Urgency coefficient for 'next' special tag\n"
|
"urgency.user.tag.next.coefficient=15.0 # Urgency coefficient for 'next' special tag\n"
|
||||||
|
@ -147,7 +147,7 @@ std::string Config::_defaults =
|
||||||
"urgency.project.coefficient=1.0 # Urgency coefficient for projects\n"
|
"urgency.project.coefficient=1.0 # Urgency coefficient for projects\n"
|
||||||
"urgency.blocked.coefficient=-5.0 # Urgency coefficient for blocked tasks\n"
|
"urgency.blocked.coefficient=-5.0 # Urgency coefficient for blocked tasks\n"
|
||||||
"urgency.waiting.coefficient=-3.0 # Urgency coefficient for waiting status\n"
|
"urgency.waiting.coefficient=-3.0 # Urgency coefficient for waiting status\n"
|
||||||
"urgency.inherit=off # Recursively inherit highest urgency value from blocked tasks\n"
|
"urgency.inherit=0 # Recursively inherit highest urgency value from blocked tasks\n"
|
||||||
"urgency.age.max=365 # Maximum age in days\n"
|
"urgency.age.max=365 # Maximum age in days\n"
|
||||||
"\n"
|
"\n"
|
||||||
"#urgency.user.project.foo.coefficient=5.0 # Urgency coefficients for 'foo' project\n"
|
"#urgency.user.project.foo.coefficient=5.0 # Urgency coefficients for 'foo' project\n"
|
||||||
|
@ -155,12 +155,12 @@ std::string Config::_defaults =
|
||||||
"#urgency.uda.foo.coefficient=5.0 # Urgency coefficients for UDA 'foo'\n"
|
"#urgency.uda.foo.coefficient=5.0 # Urgency coefficients for UDA 'foo'\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# Color controls.\n"
|
"# Color controls.\n"
|
||||||
"color=on # Enable color\n"
|
"color=1 # Enable color\n"
|
||||||
"\n"
|
"\n"
|
||||||
"rule.precedence.color=deleted,completed,active,keyword.,tag.,project.,overdue,scheduled,due.today,due,blocked,blocking,recurring,tagged,uda.\n"
|
"rule.precedence.color=deleted,completed,active,keyword.,tag.,project.,overdue,scheduled,due.today,due,blocked,blocking,recurring,tagged,uda.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# General decoration\n"
|
"# General decoration\n"
|
||||||
"rule.color.merge=yes\n"
|
"rule.color.merge=1\n"
|
||||||
"color.label=\n"
|
"color.label=\n"
|
||||||
"color.label.sort=\n"
|
"color.label.sort=\n"
|
||||||
"color.alternate=on gray2\n"
|
"color.alternate=on gray2\n"
|
||||||
|
@ -249,23 +249,23 @@ std::string Config::_defaults =
|
||||||
"#default.due=eom # Default due date for 'add' command\n"
|
"#default.due=eom # Default due date for 'add' command\n"
|
||||||
"default.command=next # When no arguments are specified\n"
|
"default.command=next # When no arguments are specified\n"
|
||||||
"\n"
|
"\n"
|
||||||
"_forcecolor=no # Forces color to be on, even for non TTY output\n"
|
"_forcecolor=0 # Forces color to be on, even for non TTY output\n"
|
||||||
"complete.all.tags=no # Include old tag names in '_ags' command\n"
|
"complete.all.tags=0 # Include old tag names in '_ags' command\n"
|
||||||
"list.all.projects=no # Include old project names in 'projects' command\n"
|
"list.all.projects=0 # Include old project names in 'projects' command\n"
|
||||||
"summary.all.projects=no # Include old project names in 'summary' command\n"
|
"summary.all.projects=0 # Include old project names in 'summary' command\n"
|
||||||
"list.all.tags=no # Include old tag names in 'tags' command\n"
|
"list.all.tags=0 # Include old tag names in 'tags' command\n"
|
||||||
"print.empty.columns=no # Print columns which have no data for any task\n"
|
"print.empty.columns=0 # Print columns which have no data for any task\n"
|
||||||
"debug=no # Display diagnostics\n"
|
"debug=0 # Display diagnostics\n"
|
||||||
"sugar=yes # Syntactic sugar\n"
|
"sugar=1 # Syntactic sugar\n"
|
||||||
"obfuscate=no # Obfuscate data for error reporting\n"
|
"obfuscate=0 # Obfuscate data for error reporting\n"
|
||||||
"fontunderline=yes # Uses underlines rather than -------\n"
|
"fontunderline=1 # Uses underlines rather than -------\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# WARNING: Please read the documentation (man task-sync) before setting up\n"
|
"# WARNING: Please read the documentation (man task-sync) before setting up\n"
|
||||||
"# Taskwarrior for Taskserver synchronization.\n"
|
"# Taskwarrior for Taskserver synchronization.\n"
|
||||||
"#taskd.ca <certificate file>\n"
|
"#taskd.ca=<certificate file>\n"
|
||||||
"#taskd.certificate <certificate file>\n"
|
"#taskd.certificate=<certificate file>\n"
|
||||||
"#taskd.credentials <organization>/<name>/<password>\n"
|
"#taskd.credentials=<organization>/<name>/<password>\n"
|
||||||
"#taskd.server <server>:<port>\n"
|
"#taskd.server=<server>:<port>\n"
|
||||||
"taskd.trust=strict\n"
|
"taskd.trust=strict\n"
|
||||||
"#taskd.trust=ignore hostname\n"
|
"#taskd.trust=ignore hostname\n"
|
||||||
"#taskd.trust=allow all\n"
|
"#taskd.trust=allow all\n"
|
||||||
|
@ -594,12 +594,12 @@ bool Config::getBoolean (const std::string& key)
|
||||||
{
|
{
|
||||||
std::string value = Lexer::lowerCase ((*this)[key]);
|
std::string value = Lexer::lowerCase ((*this)[key]);
|
||||||
if (value == "t" || // TODO Deprecate
|
if (value == "t" || // TODO Deprecate
|
||||||
value == "true" ||
|
value == "true" || // TODO Deprecate
|
||||||
value == "1" ||
|
value == "1" ||
|
||||||
value == "+" || // TODO Deprecate
|
value == "+" || // TODO Deprecate
|
||||||
value == "y" ||
|
value == "y" || // TODO Deprecate
|
||||||
value == "yes" ||
|
value == "yes" || // TODO Deprecate
|
||||||
value == "on" ||
|
value == "on" || // TODO Deprecate
|
||||||
value == "enable" || // TODO Deprecate
|
value == "enable" || // TODO Deprecate
|
||||||
value == "enabled") // TODO Deprecate
|
value == "enabled") // TODO Deprecate
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue