mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +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.
|
||||
- Fixed unquoted glob in bash completion script
|
||||
(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 ---------------------------
|
||||
|
||||
|
|
3
NEWS
3
NEWS
|
@ -17,6 +17,9 @@ Newly Deprecated Features in Taskwarrior 2.6.0
|
|||
not needed.
|
||||
- The 'new-uuid' verbosity option is to be removed due to being redundant, its
|
||||
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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
Note that Taskwarrior is flexible about the values used to represent Boolean
|
||||
items. You can use "on", "yes", "y", "1" and "true".
|
||||
Anything else means "off".
|
||||
items. You can use "1" to enable, anything else is interpreted as disabled.
|
||||
The values "on", "yes", "y" and "true" are currently supported by deprecated.
|
||||
|
||||
.RS
|
||||
include <file>
|
||||
|
@ -181,33 +181,33 @@ shell meta character, which will be properly expanded.
|
|||
Note that the TASKDATA environment variable overrides this setting.
|
||||
|
||||
.TP
|
||||
.B locking=on
|
||||
.B locking=1
|
||||
Determines whether to use file locking when accessing the pending.data and
|
||||
completed.data files. Defaults to "on". Solaris users who store the data
|
||||
files on an NFS mount may need to set locking to "off". Note that there is
|
||||
danger in setting this value to "off" - another program (or another instance of
|
||||
completed.data files. Defaults to "1". Solaris users who store the data
|
||||
files on an NFS mount may need to set locking to "0". Note that there is
|
||||
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.
|
||||
|
||||
.TP
|
||||
.B gc=on
|
||||
.B gc=1
|
||||
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
|
||||
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.
|
||||
|
||||
.TP
|
||||
.B hooks=on
|
||||
.B hooks=1
|
||||
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
|
||||
.B exit.on.missing.db=no
|
||||
When set to 'yes' causes the program to exit if the database (~/.task or
|
||||
rc.data.location or TASKDATA override) is missing. Default value is 'no'.
|
||||
.B exit.on.missing.db=0
|
||||
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 '0'.
|
||||
|
||||
.SS TERMINAL
|
||||
.TP
|
||||
.B detection=on
|
||||
.B detection=1
|
||||
Determines whether to use ioctl to establish the size of the window you are
|
||||
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.
|
||||
|
||||
.TP
|
||||
.B avoidlastcolumn=no
|
||||
.B avoidlastcolumn=0
|
||||
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
|
||||
Cygwin users. Default value is 'no'.
|
||||
Cygwin users. Default value is '0'.
|
||||
|
||||
.TP
|
||||
.B hyphenate=on
|
||||
Hyphenates lines when wrapping breaks occur mid-word. Default value is 'on'.
|
||||
.B hyphenate=1
|
||||
Hyphenates lines when wrapping breaks occur mid-word. Default value is '1'.
|
||||
|
||||
.TP
|
||||
.B editor=vi
|
||||
|
@ -250,9 +250,9 @@ prompt. This is only referenced when 'limit:page' is used.
|
|||
.SS MISCELLANEOUS
|
||||
|
||||
.TP
|
||||
.B verbose=on|off|nothing|list...
|
||||
When set to "on" (the default), helpful explanatory comments are added to all
|
||||
output from Taskwarrior. Setting this to "off" means that you would see regular
|
||||
.B verbose=1|0|nothing|list...
|
||||
When set to "1" (the default), helpful explanatory comments are added to all
|
||||
output from Taskwarrior. Setting this to "0" means that you would see regular
|
||||
output.
|
||||
|
||||
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".
|
||||
|
||||
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.
|
||||
|
||||
Here are the shortcut equivalents:
|
||||
|
||||
verbose=on
|
||||
verbose=1
|
||||
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=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.
|
||||
|
||||
.TP
|
||||
.B confirmation=yes
|
||||
May be "yes" or "no", and determines whether Taskwarrior will ask for
|
||||
.B confirmation=1
|
||||
May be "1" or "0", and determines whether Taskwarrior will ask for
|
||||
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
|
||||
.B allow.empty.filter=yes
|
||||
.B allow.empty.filter=1
|
||||
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.
|
||||
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.
|
||||
|
||||
.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.
|
||||
|
||||
.TP
|
||||
.B list.all.projects=no
|
||||
May be yes or no, and determines whether the 'projects' command lists all the project
|
||||
.B list.all.projects=0
|
||||
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
|
||||
"no".
|
||||
"0".
|
||||
|
||||
.TP
|
||||
.B summary.all.projects=no
|
||||
If set to yes, shows all projects in the summary report, even if there are no
|
||||
pending tasks. The default value is "no".
|
||||
.B summary.all.projects=0
|
||||
If set to "1", shows all projects in the summary report, even if there are no
|
||||
pending tasks. The default value is "0".
|
||||
|
||||
.TP
|
||||
.B complete.all.tags=yes
|
||||
May be yes or no, and determines whether the tab completion scripts consider all
|
||||
.B complete.all.tags=1
|
||||
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
|
||||
value is "no".
|
||||
value is "0".
|
||||
|
||||
.TP
|
||||
.B list.all.tags=yes
|
||||
May be yes or no, and determines whether the 'tags' command lists all the tag
|
||||
.B list.all.tags=1
|
||||
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
|
||||
"no".
|
||||
"0".
|
||||
|
||||
.TP
|
||||
.B print.empty.columns=no
|
||||
May be yes or no, and determines whether columns with no data for any task are
|
||||
printed. Defaults to no.
|
||||
.B print.empty.columns=1
|
||||
May be "1" or "0", and determines whether columns with no data for any task are
|
||||
printed. Defaults to "0".
|
||||
|
||||
.TP
|
||||
.B search.case.sensitive=yes
|
||||
May be yes or no, and determines whether keyword lookup and substitutions on the
|
||||
description and annotations are done in a case sensitive way. Defaults to yes on
|
||||
most platforms. Defaults to no on Cygwin due to older regex library problems with
|
||||
.B search.case.sensitive=1
|
||||
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 "1" on
|
||||
most platforms. Defaults to "0" on Cygwin due to older regex library problems with
|
||||
case-insensitivity.
|
||||
|
||||
.TP
|
||||
.B regex=on
|
||||
Controls whether regular expression support is enabled. The default value is on.
|
||||
.B regex=1
|
||||
Controls whether regular expression support is enabled. The default value is "1".
|
||||
|
||||
.TP
|
||||
.B xterm.title=no
|
||||
Sets the xterm window title when reports are run. Defaults to off.
|
||||
.B xterm.title=1
|
||||
Sets the xterm window title when reports are run. Defaults to "0".
|
||||
|
||||
.TP
|
||||
.B expressions=infix|postfix
|
||||
|
@ -392,21 +392,21 @@ Sets a preference for infix expressions (1 + 2) or postfix expressions (1 2 +).
|
|||
Defaults to infix.
|
||||
|
||||
.TP
|
||||
.B json.array=on
|
||||
.B json.array=1
|
||||
Determines whether the export command encloses the JSON output in '[...]' and
|
||||
adds ',' after each exported task object to create a properly-formed JSON
|
||||
array.
|
||||
With json.array=off, export writes raw JSON objects to STDOUT, one per line.
|
||||
Defaults to on.
|
||||
With json.array=0, export writes raw JSON objects to STDOUT, one per line.
|
||||
Defaults to "1".
|
||||
|
||||
.TP
|
||||
.B json.depends.array=on
|
||||
.B json.depends.array=1
|
||||
Determines whether the export command encodes dependencies as an array of string
|
||||
UUIDs, or one comma-separated string.
|
||||
Defaults to on.
|
||||
Defaults to "1".
|
||||
|
||||
.TP
|
||||
.B _forcecolor=no
|
||||
.B _forcecolor=1
|
||||
Taskwarrior shuts off color automatically when the output is not sent directly
|
||||
to a TTY. For example, this command:
|
||||
|
||||
|
@ -422,6 +422,8 @@ $ task rc._forcecolor=yes list > file
|
|||
.RE
|
||||
.RE
|
||||
|
||||
Defaults to "0".
|
||||
|
||||
.TP
|
||||
.B active.indicator=*
|
||||
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.
|
||||
|
||||
.TP
|
||||
.B recurrence=yes
|
||||
.B recurrence=1
|
||||
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
|
||||
.B recurrence.confirmation=prompt
|
||||
|
@ -475,7 +477,7 @@ Minimum length of any abbreviated command/value. This means that "ve", "ver",
|
|||
Default is 2.
|
||||
|
||||
.TP
|
||||
.B debug=off
|
||||
.B debug=0
|
||||
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,
|
||||
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.
|
||||
|
||||
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
|
||||
.B debug.hooks=0
|
||||
|
@ -647,8 +649,8 @@ field that is set. Otherwise, they are set to the corresponding values of
|
|||
.RE
|
||||
|
||||
.TP
|
||||
.B date.iso=yes
|
||||
Enables ISO-8601 date support. The default value is "yes".
|
||||
.B date.iso=1
|
||||
Enables ISO-8601 date support. The default value is "1".
|
||||
|
||||
.TP
|
||||
.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".
|
||||
|
||||
.TP
|
||||
.B displayweeknumber=yes
|
||||
.B displayweeknumber=1
|
||||
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
|
||||
"yes".
|
||||
"1".
|
||||
|
||||
.TP
|
||||
.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".
|
||||
|
||||
.TP
|
||||
.B calendar.offset=off
|
||||
If "on" the first month in the calendar report is effectively changed by the
|
||||
offset value specified in calendar.offset.value. It defaults to "off".
|
||||
.B calendar.offset=0
|
||||
If "1" the first month in the calendar report is effectively changed by the
|
||||
offset value specified in calendar.offset.value. It defaults to "0".
|
||||
|
||||
.TP
|
||||
.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".
|
||||
|
||||
.TP
|
||||
.B calendar.legend=yes
|
||||
Determines whether the calendar legend is displayed. The default value is "yes".
|
||||
.B calendar.legend=1
|
||||
Determines whether the calendar legend is displayed. The default value is "1".
|
||||
|
||||
.SS JOURNAL ENTRIES
|
||||
|
||||
.TP
|
||||
.B journal.time=no
|
||||
May be yes or no, and determines whether the 'start' and 'stop' commands should
|
||||
record an annotation when being executed. The default value is "no". The text of
|
||||
.B journal.time=0
|
||||
May be "1" or "0", and determines whether the 'start' and 'stop' commands should
|
||||
record an annotation when being executed. The default value is "0". The text of
|
||||
the corresponding annotations is controlled by:
|
||||
|
||||
.TP
|
||||
|
@ -721,9 +723,9 @@ The text of the annotation that is recorded when executing the stop command and
|
|||
having set journal.time.
|
||||
|
||||
.TP
|
||||
.B journal.info=on
|
||||
.B journal.info=1
|
||||
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
|
||||
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
|
||||
|
||||
.TP
|
||||
.B dependency.reminder=on
|
||||
.B dependency.reminder=1
|
||||
Determines whether dependency chain violations generate reminders.
|
||||
|
||||
.TP
|
||||
.B dependency.confirmation=yes
|
||||
.B dependency.confirmation=1
|
||||
Determines whether dependency chain repair requires confirmation.
|
||||
|
||||
.SS COLOR CONTROLS
|
||||
|
||||
.TP
|
||||
.B color=on
|
||||
May be "on" or "off". Determines whether Taskwarrior uses color. When "off",
|
||||
.B color=1
|
||||
May be "1" or "0". Determines whether Taskwarrior uses color. When "0",
|
||||
will use dashes (-----) to underline column headings.
|
||||
|
||||
.TP
|
||||
.B fontunderline=on
|
||||
.B fontunderline=1
|
||||
Determines if font underlines or ASCII dashes should be used to underline
|
||||
headers, even when color is enabled.
|
||||
.RE
|
||||
|
@ -880,12 +882,11 @@ desired. In such cases, use the following option to disable this behaviour:
|
|||
.RE
|
||||
|
||||
.TP
|
||||
.B rule.color.merge=yes
|
||||
Can be "yes" or "no". When "no", disables merging of colors produced by
|
||||
.B rule.color.merge=1
|
||||
Can be "1" or "0". When "0", disables merging of colors produced by
|
||||
different color rules. Use if your color scheme produces unpleasing
|
||||
foreground and background combinations.
|
||||
|
||||
|
||||
See the task-color(5) man pages for color details.
|
||||
.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
|
||||
preferences, but it is important that you carefully consider any modifications.
|
||||
|
||||
.B urgency.inherit=off
|
||||
.B urgency.inherit=0
|
||||
.RS
|
||||
Not actually a coefficient. When enabled, blocking tasks inherit
|
||||
the highest urgency value found in the tasks they block. This is
|
||||
|
|
|
@ -61,45 +61,45 @@ std::string Config::_defaults =
|
|||
"\n"
|
||||
"# Files\n"
|
||||
"data.location=~/.task\n"
|
||||
"locking=on # Use file-level locking\n"
|
||||
"gc=on # 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"
|
||||
"hooks=on # Master control switch for hooks\n"
|
||||
"locking=1 # Use file-level locking\n"
|
||||
"gc=1 # Garbage-collect data files - DO NOT CHANGE unless you are sure\n"
|
||||
"exit.on.missing.db=0 # Whether to exit if ~/.task is not found\n"
|
||||
"hooks=1 # Master control switch for hooks\n"
|
||||
"\n"
|
||||
"# Terminal\n"
|
||||
"detection=on # Detects terminal width\n"
|
||||
"detection=1 # Detects terminal width\n"
|
||||
"defaultwidth=80 # Without detection, assumed width\n"
|
||||
"defaultheight=24 # Without detection, assumed height\n"
|
||||
"avoidlastcolumn=no # Fixes Cygwin width problem\n"
|
||||
"hyphenate=on # Hyphenates lines wrapped on non-word-breaks\n"
|
||||
"avoidlastcolumn=0 # Fixes Cygwin width problem\n"
|
||||
"hyphenate=1 # Hyphenates lines wrapped on non-word-breaks\n"
|
||||
"#editor=vi # Preferred text editor\n"
|
||||
"reserved.lines=1 # Assume a 1-line prompt\n"
|
||||
"\n"
|
||||
"# Miscellaneous\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"
|
||||
"confirmation=yes # Confirmation on delete, big changes\n"
|
||||
"recurrence=yes # Enable recurrence\n"
|
||||
"confirmation=1 # Confirmation on delete, big changes\n"
|
||||
"recurrence=1 # Enable recurrence\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.report=0 # Indent spaces for whole 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"
|
||||
"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
|
||||
"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"
|
||||
"tag.indicator=+ # What to show as a tag 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.limit=1 # Number of future recurring pending tasks\n"
|
||||
"undo.style=side # Undo style - can be 'side', or 'diff'\n"
|
||||
"regex=yes # Assume all search/filter strings are regexes\n"
|
||||
"xterm.title=no # Sets xterm title for some commands\n"
|
||||
"regex=1 # Assume all search/filter strings are regexes\n"
|
||||
"xterm.title=0 # Sets xterm title for some commands\n"
|
||||
"expressions=infix # Prefer infix over postfix expressions\n"
|
||||
"json.array=on # Enclose JSON output in [ ]\n"
|
||||
"json.depends.array=off # Encode dependencies as a JSON array\n"
|
||||
"json.array=1 # Enclose JSON output in [ ]\n"
|
||||
"json.depends.array=0 # Encode dependencies as a JSON array\n"
|
||||
"abbreviation.minimum=2 # Shortest allowed abbreviation\n"
|
||||
"\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.report= # Preferred display date format for reports\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="
|
||||
STRING_DATE_SUNDAY
|
||||
" # 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"
|
||||
"\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.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.holidays=none # Show public holidays on calendar:full, sparse or none\n"
|
||||
"#monthsperline=3 # Number of calendar months on a line\n"
|
||||
"\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.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"
|
||||
"# Dependency controls\n"
|
||||
"dependency.reminder=on # Nags on dependency chain violations\n"
|
||||
"dependency.confirmation=on # Should dependency chain repair be confirmed?\n"
|
||||
"dependency.reminder=1 # Nags on dependency chain violations\n"
|
||||
"dependency.confirmation=1 # Should dependency chain repair be confirmed?\n"
|
||||
"\n"
|
||||
"# Urgency Coefficients\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.blocked.coefficient=-5.0 # Urgency coefficient for blocked tasks\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"
|
||||
"\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"
|
||||
"\n"
|
||||
"# Color controls.\n"
|
||||
"color=on # Enable color\n"
|
||||
"color=1 # Enable color\n"
|
||||
"\n"
|
||||
"rule.precedence.color=deleted,completed,active,keyword.,tag.,project.,overdue,scheduled,due.today,due,blocked,blocking,recurring,tagged,uda.\n"
|
||||
"\n"
|
||||
"# General decoration\n"
|
||||
"rule.color.merge=yes\n"
|
||||
"rule.color.merge=1\n"
|
||||
"color.label=\n"
|
||||
"color.label.sort=\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.command=next # When no arguments are specified\n"
|
||||
"\n"
|
||||
"_forcecolor=no # Forces color to be on, even for non TTY output\n"
|
||||
"complete.all.tags=no # Include old tag names in '_ags' command\n"
|
||||
"list.all.projects=no # Include old project names in 'projects' command\n"
|
||||
"summary.all.projects=no # Include old project names in 'summary' command\n"
|
||||
"list.all.tags=no # Include old tag names in 'tags' command\n"
|
||||
"print.empty.columns=no # Print columns which have no data for any task\n"
|
||||
"debug=no # Display diagnostics\n"
|
||||
"sugar=yes # Syntactic sugar\n"
|
||||
"obfuscate=no # Obfuscate data for error reporting\n"
|
||||
"fontunderline=yes # Uses underlines rather than -------\n"
|
||||
"_forcecolor=0 # Forces color to be on, even for non TTY output\n"
|
||||
"complete.all.tags=0 # Include old tag names in '_ags' command\n"
|
||||
"list.all.projects=0 # Include old project names in 'projects' command\n"
|
||||
"summary.all.projects=0 # Include old project names in 'summary' command\n"
|
||||
"list.all.tags=0 # Include old tag names in 'tags' command\n"
|
||||
"print.empty.columns=0 # Print columns which have no data for any task\n"
|
||||
"debug=0 # Display diagnostics\n"
|
||||
"sugar=1 # Syntactic sugar\n"
|
||||
"obfuscate=0 # Obfuscate data for error reporting\n"
|
||||
"fontunderline=1 # Uses underlines rather than -------\n"
|
||||
"\n"
|
||||
"# WARNING: Please read the documentation (man task-sync) before setting up\n"
|
||||
"# Taskwarrior for Taskserver synchronization.\n"
|
||||
"#taskd.ca <certificate file>\n"
|
||||
"#taskd.certificate <certificate file>\n"
|
||||
"#taskd.credentials <organization>/<name>/<password>\n"
|
||||
"#taskd.server <server>:<port>\n"
|
||||
"#taskd.ca=<certificate file>\n"
|
||||
"#taskd.certificate=<certificate file>\n"
|
||||
"#taskd.credentials=<organization>/<name>/<password>\n"
|
||||
"#taskd.server=<server>:<port>\n"
|
||||
"taskd.trust=strict\n"
|
||||
"#taskd.trust=ignore hostname\n"
|
||||
"#taskd.trust=allow all\n"
|
||||
|
@ -594,12 +594,12 @@ bool Config::getBoolean (const std::string& key)
|
|||
{
|
||||
std::string value = Lexer::lowerCase ((*this)[key]);
|
||||
if (value == "t" || // TODO Deprecate
|
||||
value == "true" ||
|
||||
value == "true" || // TODO Deprecate
|
||||
value == "1" ||
|
||||
value == "+" || // TODO Deprecate
|
||||
value == "y" ||
|
||||
value == "yes" ||
|
||||
value == "on" ||
|
||||
value == "y" || // TODO Deprecate
|
||||
value == "yes" || // TODO Deprecate
|
||||
value == "on" || // TODO Deprecate
|
||||
value == "enable" || // TODO Deprecate
|
||||
value == "enabled") // TODO Deprecate
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue