mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 06:37:20 +02:00
TW-1, TW-1438
- TW-1 Recurring task message on the same task (thanks to Profpatsch).
This commit is contained in:
parent
8795b0a692
commit
1488c1c6fa
9 changed files with 128 additions and 120 deletions
|
@ -22,6 +22,7 @@
|
||||||
- #1508 Show command highlight configuration (thanks to Nicolas Appriou).
|
- #1508 Show command highlight configuration (thanks to Nicolas Appriou).
|
||||||
- #1511 sync init crashes if client certification file is empty or invalid
|
- #1511 sync init crashes if client certification file is empty or invalid
|
||||||
(thanks to Marton Suranyi).
|
(thanks to Marton Suranyi).
|
||||||
|
- TW-1 Recurring task message on the same task (thanks to Profpatsch).
|
||||||
- TW-5 color.due.today does not work (thanks to Max Muller).
|
- TW-5 color.due.today does not work (thanks to Max Muller).
|
||||||
- TW-15 'task recurring' shows only children of recurring tasks (thanks to
|
- TW-15 'task recurring' shows only children of recurring tasks (thanks to
|
||||||
Louis-Claude Canon).
|
Louis-Claude Canon).
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -46,7 +46,7 @@ New configuration options in taskwarrior 2.4.0
|
||||||
- New 'urgency.uda.<name>.<value>' allows specific UDA values to affect
|
- New 'urgency.uda.<name>.<value>' allows specific UDA values to affect
|
||||||
urgency.
|
urgency.
|
||||||
- New 'recurrence.confirmation' which allows bypassing confirmation for
|
- New 'recurrence.confirmation' which allows bypassing confirmation for
|
||||||
changes to recurring tasks, by accepting them.
|
changes to recurring tasks, by accepting, rejecting or prompting.
|
||||||
|
|
||||||
Newly deprecated features in taskwarrior 2.4.0
|
Newly deprecated features in taskwarrior 2.4.0
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ default, sample
|
||||||
file in the user's home directory.
|
file in the user's home directory.
|
||||||
|
|
||||||
The taskwarrior configuration file consists of a series of assignments in each
|
The taskwarrior configuration file consists of a series of assignments in each
|
||||||
line. The assignments have the syntax:
|
line. The assignments have the syntax:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
<name-of-configuration-variable>=<value-to-be-set>
|
<name-of-configuration-variable>=<value-to-be-set>
|
||||||
|
@ -83,12 +83,12 @@ of the line is ignored.
|
||||||
The configuration file supports UTF8 as well as JSON encoding, such as \\uNNNN.
|
The configuration file supports 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 "on", "yes", "y", "1" and "true".
|
||||||
Anything else means "off".
|
Anything else means "off".
|
||||||
|
|
||||||
.SH EDITING
|
.SH EDITING
|
||||||
You can edit your .taskrc file by hand if you wish, or you can use the 'config'
|
You can edit your .taskrc file by hand if you wish, or you can use the 'config'
|
||||||
command. To permanently set a value in your .taskrc file, use this command:
|
command. To permanently set a value in your .taskrc file, use this command:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
$ task config nag "You have more urgent tasks."
|
$ task config nag "You have more urgent tasks."
|
||||||
|
@ -100,7 +100,7 @@ To delete an entry, use this command:
|
||||||
$ task config nag
|
$ task config nag
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
Taskwarrior will then use the default value. To explicitly set a value to
|
Taskwarrior will then use the default value. To explicitly set a value to
|
||||||
blank, and therefore avoid using the default value, use this command:
|
blank, and therefore avoid using the default value, use this command:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
|
@ -170,7 +170,7 @@ Note that the TASKDATA environment variable overrides this setting.
|
||||||
.TP
|
.TP
|
||||||
.B locking=on
|
.B locking=on
|
||||||
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 "on". 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 "off". Note that there is
|
||||||
danger in setting this value to "off" - another program (or another instance of
|
danger in setting this value to "off" - 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.
|
||||||
|
@ -178,7 +178,7 @@ task) may write to the task.pending file at the same time.
|
||||||
.TP
|
.TP
|
||||||
.B gc=on
|
.B gc=on
|
||||||
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=off ...), 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.
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ is 'on', but certain extensions and environments may need to disable hooks.
|
||||||
.TP
|
.TP
|
||||||
.B exit.on.missing.db=no
|
.B exit.on.missing.db=no
|
||||||
When set to 'yes' causes the program to exit if the database (~/.task or
|
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'.
|
rc.data.location or TASKDATA override) is missing. Default value is 'no'.
|
||||||
|
|
||||||
.SS TERMINAL
|
.SS TERMINAL
|
||||||
.TP
|
.TP
|
||||||
|
@ -201,53 +201,53 @@ using, for text wrapping.
|
||||||
.TP
|
.TP
|
||||||
.B defaultwidth=80
|
.B defaultwidth=80
|
||||||
The width of output used when auto-detection support is not available. Defaults
|
The width of output used when auto-detection support is not available. Defaults
|
||||||
to 80. If set to 0, it is interpreted as infinite width, therefore with no
|
to 80. If set to 0, it is interpreted as infinite width, therefore with no
|
||||||
word-wrapping; this is useful when redirecting report output to a file for subsequent
|
word-wrapping; this is useful when redirecting report output to a file for subsequent
|
||||||
handling.
|
handling.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B defaultheight=24
|
.B defaultheight=24
|
||||||
The height of output used when auto-detection support is not available. Defaults
|
The height of output used when auto-detection support is not available. Defaults
|
||||||
to 24. If set to 0, it is interpreted as infinite height. This is useful when redirecting
|
to 24. If set to 0, it is interpreted as infinite height. This is useful when redirecting
|
||||||
charts to a file for subsequent handling.
|
charts to a file for subsequent handling.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B avoidlastcolumn=no
|
.B avoidlastcolumn=no
|
||||||
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 'no'.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B hyphenate=on
|
.B hyphenate=on
|
||||||
Hyphenates lines when wrapping breaks occur mid-word. Default value is 'on'.
|
Hyphenates lines when wrapping breaks occur mid-word. Default value is 'on'.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B editor=vi
|
.B editor=vi
|
||||||
Specifies which text editor you wish to use for when the
|
Specifies which text editor you wish to use for when the
|
||||||
.B task edit <ID>
|
.B task edit <ID>
|
||||||
command is used. Taskwarrior will first look for this configuration variable. If
|
command is used. Taskwarrior will first look for this configuration variable. If
|
||||||
found, it is used. Otherwise it will look for the $VISUAL or $EDITOR
|
found, it is used. Otherwise it will look for the $VISUAL or $EDITOR
|
||||||
environment variables, before it defaults to using "vi".
|
environment variables, before it defaults to using "vi".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B reserved.lines=1
|
.B reserved.lines=1
|
||||||
This is the number of lines reserved at the bottom of the screen for the shell
|
This is the number of lines reserved at the bottom of the screen for the shell
|
||||||
prompt. This is only referenced when 'limit:page' is used.
|
prompt. This is only referenced when 'limit:page' is used.
|
||||||
|
|
||||||
.SS MISCELLANEOUS
|
.SS MISCELLANEOUS
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B verbose=on|off|nothing|list...
|
.B verbose=on|off|nothing|list...
|
||||||
When set to "on" (the default), helpful explanatory comments are added to all
|
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
|
output from Taskwarrior. Setting this to "off" 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
|
||||||
results in only the formatted data being shown, with nothing else. This output
|
results in only the formatted data being shown, with nothing else. This output
|
||||||
is most readily parsed and used by shell scripts.
|
is most readily parsed and used by shell scripts.
|
||||||
|
|
||||||
Alternatively, you can specify a comma-separated list of verbosity tokens that
|
Alternatively, you can specify a comma-separated list of verbosity tokens that
|
||||||
control specific occasions when output is generated. This list may contain:
|
control specific occasions when output is generated. This list may contain:
|
||||||
|
|
||||||
blank Inserts extra blank lines in output, for clarity
|
blank Inserts extra blank lines in output, for clarity
|
||||||
header Messages that appear before report output
|
header Messages that appear before report output
|
||||||
|
@ -277,13 +277,13 @@ Here are the shortcut equivalents:
|
||||||
verbose=
|
verbose=
|
||||||
|
|
||||||
Those additional comments are sent to the standard error for header, footnote
|
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=yes
|
||||||
May be "yes" or "no", and determines whether taskwarrior will ask for
|
May be "yes" or "no", and determines whether taskwarrior will ask for
|
||||||
confirmation before deleting a task, performing bulk changes, or the undo
|
confirmation before deleting a task, performing bulk changes, or the undo
|
||||||
command. The default value is "yes". Consider leaving this setting as "yes",
|
command. The default value is "yes". Consider leaving this setting as "yes",
|
||||||
for safety.
|
for safety.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
@ -296,23 +296,23 @@ filter.
|
||||||
.TP
|
.TP
|
||||||
.B indent.annotation=2
|
.B indent.annotation=2
|
||||||
Controls the number of spaces to indent annotations when shown beneath the
|
Controls the number of spaces to indent annotations when shown beneath the
|
||||||
description field. The default value is "2".
|
description field. The default value is "2".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B indent.report=0
|
.B indent.report=0
|
||||||
Controls the indentation of the entire report output. Default is "0".
|
Controls the indentation of the entire report output. Default is "0".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B row.padding=0
|
.B row.padding=0
|
||||||
Controls left and right padding around each row of the report output. Default is "0".
|
Controls left and right padding around each row of the report output. Default is "0".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B column.padding=0
|
.B column.padding=0
|
||||||
Controls padding between columns of the report output. Default is "1".
|
Controls padding between columns of the report output. Default is "1".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B bulk=3
|
.B bulk=3
|
||||||
Is a number, defaulting to 3. When this number or greater of tasks are modified
|
Is a number, defaulting to 3. When this number or greater of tasks are modified
|
||||||
in a single command, confirmation will be required, unless the
|
in a single command, confirmation will be required, unless the
|
||||||
.B confirmation
|
.B confirmation
|
||||||
variable is "no".
|
variable is "no".
|
||||||
|
@ -322,47 +322,47 @@ This is useful for preventing large-scale unintended changes.
|
||||||
.TP
|
.TP
|
||||||
.B nag=You have more urgent tasks.
|
.B nag=You have more urgent tasks.
|
||||||
This may be a string of text, or blank. It is used as a prompt when a task is
|
This may be a string of text, or blank. It is used as a prompt when a task is
|
||||||
started or completed that is not considered high priority. Default value is:
|
started or completed that is not considered high priority. Default value is:
|
||||||
You have more urgent tasks. It is a gentle reminder that you are contradicting
|
You have more urgent tasks. It is a gentle reminder that you are contradicting
|
||||||
your own priority settings.
|
your own priority settings.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B list.all.projects=yes
|
.B list.all.projects=yes
|
||||||
May be yes or no, and determines whether the 'projects' command lists all the project
|
May be yes or no, 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".
|
"no".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B complete.all.tags=yes
|
.B complete.all.tags=yes
|
||||||
May be yes or no, and determines whether the tab completion scripts consider all
|
May be yes or no, 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 "no".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B list.all.tags=yes
|
.B list.all.tags=yes
|
||||||
May be yes or no, and determines whether the 'tags' command lists all the tag
|
May be yes or no, 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".
|
"no".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B print.empty.columns=no
|
.B print.empty.columns=no
|
||||||
May be yes or no, and determines whether columns with no data for any task are
|
May be yes or no, and determines whether columns with no data for any task are
|
||||||
printed. Defaults to no.
|
printed. Defaults to no.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B search.case.sensitive=yes
|
.B search.case.sensitive=yes
|
||||||
May be yes or no, and determines whether keyword lookup and substitutions on the
|
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
|
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
|
most platforms. Defaults to no on Cygwin due to older regex library problems with
|
||||||
case-insensitivity.
|
case-insensitivity.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B regex=on
|
.B regex=on
|
||||||
Controls whether regular expression support is enabled. The default value is on.
|
Controls whether regular expression support is enabled. The default value is on.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B xterm.title=no
|
.B xterm.title=no
|
||||||
Sets the xterm window title when reports are run. Defaults to off.
|
Sets the xterm window title when reports are run. Defaults to off.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B expressions=infix|postfix
|
.B expressions=infix|postfix
|
||||||
|
@ -372,24 +372,24 @@ Defaults to infix.
|
||||||
.TP
|
.TP
|
||||||
.B dom=on
|
.B dom=on
|
||||||
Enables or disables access to taskwarrior internals and task metadata on the
|
Enables or disables access to taskwarrior internals and task metadata on the
|
||||||
command line. Defaults to on.
|
command line. Defaults to on.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B json.array=off
|
.B json.array=off
|
||||||
Determines whether the query command encloses the JSON output in '[...]' to
|
Determines whether the query command encloses the JSON output in '[...]' to
|
||||||
create a properly-formed JSON array. Defaults to off.
|
create a properly-formed JSON array. Defaults to off.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B _forcecolor=no
|
.B _forcecolor=no
|
||||||
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:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
.RS
|
.RS
|
||||||
$ task list > file
|
$ task list > file
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
will not use any color. To override this, use:
|
will not use any color. To override this, use:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
$ task rc._forcecolor=yes list > file
|
$ task rc._forcecolor=yes list > file
|
||||||
|
@ -398,28 +398,30 @@ $ task rc._forcecolor=yes list > file
|
||||||
|
|
||||||
.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 *.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B tag.indicator=+
|
.B tag.indicator=+
|
||||||
The character or string to show in the tag.indicator column. Defaults to +.
|
The character or string to show in the tag.indicator column. Defaults to +.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B dependency.indicator=D
|
.B dependency.indicator=D
|
||||||
The character or string to show in the depends.indicator column. Defaults to +.
|
The character or string to show in the depends.indicator column. Defaults to +.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B recurrence.confirmation=yes
|
.B recurrence.confirmation=prompt
|
||||||
Controls whether changes to recurring tasks propagates to other child tasks with
|
Controls whether changes to recurring tasks propagates to other child tasks with
|
||||||
or without confirmation. Defaults to yes.
|
or without confirmation. A value of 'yes' means propagate changes without
|
||||||
|
confirmation. A value of 'no' means do not propagate changes and don't ask for
|
||||||
|
confirmation. A value of 'prompt' prompts you every time. Defaults to 'prompt'.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B recurrence.indicator=R
|
.B recurrence.indicator=R
|
||||||
The character or string to show in the recurrence_indicator column. Defaults to R.
|
The character or string to show in the recurrence_indicator column. Defaults to R.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B recurrence.limit=1
|
.B recurrence.limit=1
|
||||||
The number of future recurring tasks to show. Defaults to 1. For example, if a
|
The number of future recurring tasks to show. Defaults to 1. For example, if a
|
||||||
weekly recurring task is added with a due date of tomorrow, and recurrence.limit
|
weekly recurring task is added with a due date of tomorrow, and recurrence.limit
|
||||||
is set to 2, then a report will list 2 pending recurring tasks, one for tomorrow,
|
is set to 2, then a report will list 2 pending recurring tasks, one for tomorrow,
|
||||||
and one for a week from tomorrow.
|
and one for a week from tomorrow.
|
||||||
|
@ -427,23 +429,23 @@ and one for a week from tomorrow.
|
||||||
.TP
|
.TP
|
||||||
.B undo.style=side
|
.B undo.style=side
|
||||||
When the 'undo' command is run, taskwarrior presents a before and after
|
When the 'undo' command is run, taskwarrior presents a before and after
|
||||||
comparison of the data. This can be in either the 'side' style, which compares
|
comparison of the data. This can be in either the 'side' style, which compares
|
||||||
values side-by-side in a table, or 'diff' style, which uses a format similar to
|
values side-by-side in a table, or 'diff' style, which uses a format similar to
|
||||||
the 'diff' command.
|
the 'diff' command.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B burndown.bias=0.666
|
.B burndown.bias=0.666
|
||||||
The burndown bias is a number that lies within the range 0 <= bias <= 1. The bias
|
The burndown bias is a number that lies within the range 0 <= bias <= 1. The bias
|
||||||
is the fraction of the find/fix rates derived from the short-term data (last
|
is the fraction of the find/fix rates derived from the short-term data (last
|
||||||
25% of the report) versus the longer term data (last 50% of the report). A
|
25% of the report) versus the longer term data (last 50% of the report). A
|
||||||
value of 0.666 (the default) means that the short-term rate has twice the weight
|
value of 0.666 (the default) means that the short-term rate has twice the weight
|
||||||
of the longer-term rate. The calculation is as follows:
|
of the longer-term rate. The calculation is as follows:
|
||||||
|
|
||||||
rate = (long-term-rate * (1 - bias)) + (short-term-rate * bias)
|
rate = (long-term-rate * (1 - bias)) + (short-term-rate * bias)
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B abbreviation.minimum=2
|
.B abbreviation.minimum=2
|
||||||
Minimum length of any abbreviated command/value. This means that "ve", "ver",
|
Minimum length of any abbreviated command/value. This means that "ve", "ver",
|
||||||
"vers", "versi", "versio" will all equate to "version", but "v" will not.
|
"vers", "versi", "versio" will all equate to "version", but "v" will not.
|
||||||
Default is 2.
|
Default is 2.
|
||||||
|
|
||||||
|
@ -451,7 +453,7 @@ Default is 2.
|
||||||
.B debug=off
|
.B debug=off
|
||||||
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
|
||||||
being parsed, but the information is displayed in a developer-friendly, not a
|
being parsed, but the information is displayed in a developer-friendly, not a
|
||||||
user-friendly way.
|
user-friendly way.
|
||||||
|
|
||||||
|
@ -461,24 +463,24 @@ if they do not already have assigned values.
|
||||||
.TP
|
.TP
|
||||||
.B debug.hooks=0
|
.B debug.hooks=0
|
||||||
Controls the hook system diagnostic level. Level 0 means no diagnostics.
|
Controls the hook system diagnostic level. Level 0 means no diagnostics.
|
||||||
Level 1 shows hook calls. Level 2 also shows exit status and I/O.
|
Level 1 shows hook calls. Level 2 also shows exit status and I/O.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B debug.parser=0
|
.B debug.parser=0
|
||||||
Controls the parser diagnostic level. Level 0 means no diagnostics. Level 1
|
Controls the parser diagnostic level. Level 0 means no diagnostics. Level 1
|
||||||
shows the parse tree. Level 2 shows expression evaluation details. Level 3
|
shows the parse tree. Level 2 shows expression evaluation details. Level 3
|
||||||
shows parse trees from every phase of the parse.
|
shows parse trees from every phase of the parse.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B debug.tls=0
|
.B debug.tls=0
|
||||||
Controls the GnuTLS diagnostic level. For 'sync' debugging. Level 0 means no
|
Controls the GnuTLS diagnostic level. For 'sync' debugging. Level 0 means no
|
||||||
diagnostics. Level 9 is the highest. Level 2 is a good setting for debugging.
|
diagnostics. Level 9 is the highest. Level 2 is a good setting for debugging.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B alias.rm=delete
|
.B alias.rm=delete
|
||||||
Taskwarrior supports command aliases. This alias provides an alternate name
|
Taskwarrior supports command aliases. This alias provides an alternate name
|
||||||
(rm) for the delete command. You can use aliases to provide alternate names for
|
(rm) for the delete command. You can use aliases to provide alternate names for
|
||||||
any of the commands. Several commands you may use are actually aliases -
|
any of the commands. Several commands you may use are actually aliases -
|
||||||
the 'history' report, for example, or 'export'.
|
the 'history' report, for example, or 'export'.
|
||||||
|
|
||||||
.SS DATES
|
.SS DATES
|
||||||
|
@ -502,10 +504,10 @@ The precedence order for the configuration variable is report.X.dateformat then
|
||||||
dateformat.report then dateformat for formating the due dates in reports.
|
dateformat.report then dateformat for formating the due dates in reports.
|
||||||
If both report.X.dateformat and dateformat.report are not set then dateformat
|
If both report.X.dateformat and dateformat.report are not set then dateformat
|
||||||
will be applied
|
will be applied
|
||||||
to the date. Entered dates as well as all other displayed dates in reports
|
to the date. Entered dates as well as all other displayed dates in reports
|
||||||
are formatted according to dateformat.
|
are formatted according to dateformat.
|
||||||
|
|
||||||
The default value is the ISO-8601 standard: Y-M-D. The string can contain the
|
The default value is the ISO-8601 standard: Y-M-D. The string can contain the
|
||||||
characters:
|
characters:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
|
@ -597,8 +599,8 @@ a D b Y H:N:S would do an output as "Mon 24 Jan 2011 11:19:42"
|
||||||
.RS
|
.RS
|
||||||
Undefined fields are put to their minimal valid values (1 for month and day and
|
Undefined fields are put to their minimal valid values (1 for month and day and
|
||||||
0 for hour, minutes and seconds) when there is at least one more global date
|
0 for hour, minutes and seconds) when there is at least one more global date
|
||||||
field that is set. Otherwise, they are set to the corresponding values of
|
field that is set. Otherwise, they are set to the corresponding values of
|
||||||
"now". For example:
|
"now". For example:
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
|
@ -618,27 +620,27 @@ default value is "Sunday".
|
||||||
.TP
|
.TP
|
||||||
.B displayweeknumber=yes
|
.B displayweeknumber=yes
|
||||||
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".
|
"yes".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B due=7
|
.B due=7
|
||||||
This is the number of days into the future that define when a task is
|
This is the number of days into the future that define when a task is
|
||||||
considered due, and is colored accordingly. The default value is 7.
|
considered due, and is colored accordingly. The default value is 7.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B calendar.details=sparse
|
.B calendar.details=sparse
|
||||||
If set to full running "task calendar" will display the details of tasks with
|
If set to full running "task calendar" will display the details of tasks with
|
||||||
due dates that fall into the calendar period. The corresponding days will be
|
due dates that fall into the calendar period. The corresponding days will be
|
||||||
color-coded in the calendar. If set to sparse only the corresponding days will
|
color-coded in the calendar. If set to sparse only the corresponding days will
|
||||||
be color coded and no details will be displayed. The displaying of due dates
|
be color coded and no details will be displayed. The displaying of due dates
|
||||||
with details is turned off by setting the variable to none. The default value
|
with details is turned off by setting the variable to none. The default value
|
||||||
is "sparse".
|
is "sparse".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B calendar.details.report=list
|
.B calendar.details.report=list
|
||||||
The report to run when displaying the details of tasks with due dates when
|
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=off
|
||||||
|
@ -653,14 +655,14 @@ value is "-1".
|
||||||
.TP
|
.TP
|
||||||
.B calendar.holidays=full
|
.B calendar.holidays=full
|
||||||
If set to full running "task calendar" will display holidays in the calendar by
|
If set to full running "task calendar" will display holidays in the calendar by
|
||||||
color-coding the corresponding days. A detailed list with the dates and names
|
color-coding the corresponding days. A detailed list with the dates and names
|
||||||
of the holidays is also shown. If set to sparse only the days are color-coded
|
of the holidays is also shown. If set to sparse only the days are color-coded
|
||||||
and no details on the holidays will be displayed. The displaying of holidays is
|
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=yes
|
||||||
Determines whether the calendar legend is displayed. The default value is "yes".
|
Determines whether the calendar legend is displayed. The default value is "yes".
|
||||||
|
|
||||||
.SS JOURNAL ENTRIES
|
.SS JOURNAL ENTRIES
|
||||||
|
|
||||||
|
@ -683,11 +685,11 @@ having set journal.time.
|
||||||
.TP
|
.TP
|
||||||
.B journal.info=on
|
.B journal.info=on
|
||||||
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 "on".
|
||||||
|
|
||||||
.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
|
||||||
that is specified in .taskrc. For each holiday the name and the date is
|
that is specified in .taskrc. For each holiday the name and the date is
|
||||||
required to be given:
|
required to be given:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
|
@ -736,7 +738,7 @@ include ${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}/holidays.en-US.rc
|
||||||
.TP
|
.TP
|
||||||
.B monthsperline=3
|
.B monthsperline=3
|
||||||
Determines how many months the "task calendar" command renders across the
|
Determines how many months the "task calendar" command renders across the
|
||||||
screen. Defaults to however many will fit. If more months than will fit are
|
screen. Defaults to however many will fit. If more months than will fit are
|
||||||
specified, taskwarrior will only show as many that will fit.
|
specified, taskwarrior will only show as many that will fit.
|
||||||
|
|
||||||
.SS DEPENDENCIES
|
.SS DEPENDENCIES
|
||||||
|
@ -762,9 +764,9 @@ 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
|
||||||
|
|
||||||
Taskwarrior has a number of coloration rules. They correspond to a particular
|
Taskwarrior has a number of coloration rules. They correspond to a particular
|
||||||
attribute of a task, such as it being due, or being active, and specifies the
|
attribute of a task, such as it being due, or being active, and specifies the
|
||||||
automatic coloring of that task. A list of valid colors, depending on your
|
automatic coloring of that task. A list of valid colors, depending on your
|
||||||
terminal, can be obtained by running the command:
|
terminal, can be obtained by running the command:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
|
@ -891,12 +893,12 @@ Colors any of the messages printed last.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B color.summary.bar=on green
|
.B color.summary.bar=on green
|
||||||
Colors the summary progress bar. Should consist of a background color.
|
Colors the summary progress bar. Should consist of a background color.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B color.summary.background=on black
|
.B color.summary.background=on black
|
||||||
Colors the summary progress bar. Should consist of a background color.
|
Colors the summary progress bar. Should consist of a background color.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
@ -936,19 +938,19 @@ Color of weeknumbers in calendar.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B color.label=
|
.B color.label=
|
||||||
Colors the report labels. Defaults to not use color.
|
Colors the report labels. Defaults to not use color.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B color.label.sort=
|
.B color.label.sort=
|
||||||
Colors the report labels for sort columns. Defaults to color.label.
|
Colors the report labels for sort columns. Defaults to color.label.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B color.alternate=on rgb253
|
.B color.alternate=on rgb253
|
||||||
Color of alternate tasks.
|
Color of alternate tasks.
|
||||||
This is to apply a specific color to every other task in a report,
|
This is to apply a specific color to every other task in a report,
|
||||||
which can make it easier to visually separate tasks. This is especially
|
which can make it easier to visually separate tasks. This is especially
|
||||||
useful when tasks are displayed over multiple lines due to long descriptions
|
useful when tasks are displayed over multiple lines due to long descriptions
|
||||||
or annotations.
|
or annotations.
|
||||||
.RE
|
.RE
|
||||||
|
@ -962,7 +964,7 @@ or annotations.
|
||||||
.br
|
.br
|
||||||
.B color.history.delete=on yellow
|
.B color.history.delete=on yellow
|
||||||
.RS
|
.RS
|
||||||
Colors the bars on the ghistory report graphs. Defaults to red, green and
|
Colors the bars on the ghistory report graphs. Defaults to red, green and
|
||||||
yellow bars.
|
yellow bars.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
@ -975,7 +977,7 @@ yellow bars.
|
||||||
.br
|
.br
|
||||||
.B color.burndown.done=on green
|
.B color.burndown.done=on green
|
||||||
.RS
|
.RS
|
||||||
Colors the bars on the burndown reports graphs. Defaults to red, green and
|
Colors the bars on the burndown reports graphs. Defaults to red, green and
|
||||||
yellow bars.
|
yellow bars.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
@ -1007,7 +1009,7 @@ Colors the output of the sync command.
|
||||||
.B pri.,tagged,completed,deleted
|
.B pri.,tagged,completed,deleted
|
||||||
.RS
|
.RS
|
||||||
This setting specifies the precedence of the color rules, from highest to
|
This setting specifies the precedence of the color rules, from highest to
|
||||||
lowest. Note that the prefix 'color.' is omitted (for brevity), and that any
|
lowest. Note that the prefix 'color.' is omitted (for brevity), and that any
|
||||||
wildcard value (color.tag.XXX) is shortened to 'tag.', which places all
|
wildcard value (color.tag.XXX) is shortened to 'tag.', which places all
|
||||||
specific tag rules at the same precedence, again for brevity.
|
specific tag rules at the same precedence, again for brevity.
|
||||||
.RE
|
.RE
|
||||||
|
@ -1021,7 +1023,7 @@ Colors all debug output, if enabled.
|
||||||
.SS URGENCY
|
.SS URGENCY
|
||||||
|
|
||||||
The urgency calculation uses a polynomial with several terms, each of which
|
The urgency calculation uses a polynomial with several terms, each of which
|
||||||
has a configurable coefficient. Those coefficients are:
|
has a configurable coefficient. Those coefficients are:
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B urgency.next.coefficient=15.0
|
.B urgency.next.coefficient=15.0
|
||||||
|
@ -1098,7 +1100,7 @@ Specific value of UDA data.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
The coefficients reflect the relative importance of the various terms in the
|
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.
|
||||||
|
|
||||||
.SS DEFAULTS
|
.SS DEFAULTS
|
||||||
|
@ -1108,34 +1110,34 @@ preferences, but it is important that you carefully consider any modifications.
|
||||||
default.project=foo
|
default.project=foo
|
||||||
Provides a default project name for the
|
Provides a default project name for the
|
||||||
.I task add
|
.I task add
|
||||||
command, if you don't specify one. The default is blank.
|
command, if you don't specify one. The default is blank.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
default.priority=M
|
default.priority=M
|
||||||
Provides a default priority for the
|
Provides a default priority for the
|
||||||
.I task add
|
.I task add
|
||||||
command, if you don't specify one. The default is blank.
|
command, if you don't specify one. The default is blank.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
default.due=...
|
default.due=...
|
||||||
Provides a default due date for the
|
Provides a default due date for the
|
||||||
.I task add
|
.I task add
|
||||||
command, if you don't specify one. The default is blank.
|
command, if you don't specify one. The default is blank.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
uda.<name>.default=...
|
uda.<name>.default=...
|
||||||
Provides default values for UDA fields when using the
|
Provides default values for UDA fields when using the
|
||||||
.I task add
|
.I task add
|
||||||
command, if you don't specify values. The default is blank.
|
command, if you don't specify values. The default is blank.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
default.command=next
|
default.command=next
|
||||||
Provides a default command that is run every time taskwarrior is invoked with no
|
Provides a default command that is run every time taskwarrior is invoked with no
|
||||||
arguments. For example, if set to:
|
arguments. For example, if set to:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
.RS
|
.RS
|
||||||
|
@ -1145,7 +1147,7 @@ default.command=project:foo list
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
then taskwarrior will run the "project:foo list" command if no command is
|
then taskwarrior will run the "project:foo list" command if no command is
|
||||||
specified. This means that by merely typing
|
specified. This means that by merely typing
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
|
@ -1178,7 +1180,7 @@ The description for report X when running the "task help" command.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B report.X.columns
|
.B report.X.columns
|
||||||
This is a comma-separated list of columns and formatting specifiers. See the
|
This is a comma-separated list of columns and formatting specifiers. See the
|
||||||
command 'task columns' for a full list of options and examples.
|
command 'task columns' for a full list of options and examples.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
@ -1222,7 +1224,7 @@ section for details on the sequence placeholders.
|
||||||
This adds the possibility to control the output of annotations for a task in a
|
This adds the possibility to control the output of annotations for a task in a
|
||||||
report. See the
|
report. See the
|
||||||
.B annotations
|
.B annotations
|
||||||
variable for details on the possible values. Deprecated.
|
variable for details on the possible values. Deprecated.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
Taskwarrior comes with a number of predefined reports, which are:
|
Taskwarrior comes with a number of predefined reports, which are:
|
||||||
|
@ -1286,9 +1288,9 @@ Lists all tasks that have dependencies.
|
||||||
.SS USER DEFINED ATTRIBUTES
|
.SS USER DEFINED ATTRIBUTES
|
||||||
|
|
||||||
User defined attributes (UDAs) are an extension mechanism that allows you to
|
User defined attributes (UDAs) are an extension mechanism that allows you to
|
||||||
define new attributes for Taskwarrior to store and display. One such example is
|
define new attributes for Taskwarrior to store and display. One such example is
|
||||||
an 'estimate' attribute that could be used to store time estimates associated
|
an 'estimate' attribute that could be used to store time estimates associated
|
||||||
with a task. This 'estimate' attribute is not built in to Taskwarrior, but with
|
with a task. This 'estimate' attribute is not built in to Taskwarrior, but with
|
||||||
a few simple configuration settings you can instruct Taskwarrior to store this
|
a few simple configuration settings you can instruct Taskwarrior to store this
|
||||||
item, and provide access to it for custom reports and filters.
|
item, and provide access to it for custom reports and filters.
|
||||||
|
|
||||||
|
@ -1298,8 +1300,8 @@ task-related.
|
||||||
|
|
||||||
One important restriction is that because this is an open system that allows
|
One important restriction is that because this is an open system that allows
|
||||||
the definition of any new attribute, Taskwarrior cannot understand the meaning
|
the definition of any new attribute, Taskwarrior cannot understand the meaning
|
||||||
of that attribute. So while Taskwarrior will faithfully store, modify, report,
|
of that attribute. So while Taskwarrior will faithfully store, modify, report,
|
||||||
sort and filter your UDA, it does not understand anything about it. For example
|
sort and filter your UDA, it does not understand anything about it. For example
|
||||||
if you define a UDA named 'estimate', Taskwarrior will not know that this value
|
if you define a UDA named 'estimate', Taskwarrior will not know that this value
|
||||||
is weeks, hours, minutes, money, or some other resource count.
|
is weeks, hours, minutes, money, or some other resource count.
|
||||||
|
|
||||||
|
@ -1319,7 +1321,7 @@ Provides a default report label for the UDA called '<name>'.
|
||||||
.B uda.<name>.values=A,B,C
|
.B uda.<name>.values=A,B,C
|
||||||
.RS
|
.RS
|
||||||
For type 'string' UDAs only, this provides a comma-separated list of acceptable
|
For type 'string' UDAs only, this provides a comma-separated list of acceptable
|
||||||
values. In this example, the '<name>' UDA may only contain values 'A', 'B',
|
values. In this example, the '<name>' UDA may only contain values 'A', 'B',
|
||||||
or 'C', but may also contain no value.
|
or 'C', but may also contain no value.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
@ -1344,8 +1346,8 @@ server.
|
||||||
.TP
|
.TP
|
||||||
.B taskd.server=<host>:<port>
|
.B taskd.server=<host>:<port>
|
||||||
.RS
|
.RS
|
||||||
Specifies the hostname and port of the Taskserver. Hostname may be an IPv4 or
|
Specifies the hostname and port of the Taskserver. Hostname may be an IPv4 or
|
||||||
IPv6 address, or domain. Port is an integer.
|
IPv6 address, or domain. Port is an integer.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
@ -1372,7 +1374,7 @@ Taskserver.
|
||||||
.B taskd.ca=<path>
|
.B taskd.ca=<path>
|
||||||
.RS
|
.RS
|
||||||
Specifies the path to the CA certificate in the event that your Taskserver is
|
Specifies the path to the CA certificate in the event that your Taskserver is
|
||||||
using a self-signed certificate. Optional.
|
using a self-signed certificate. Optional.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
@ -1387,10 +1389,10 @@ Default is "strict", which requires full validation.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B taskd.ciphers=NORMAL
|
.B taskd.ciphers=NORMAL
|
||||||
Override of the cipher selection. The set of ciphers used by TLS may be
|
Override of the cipher selection. The set of ciphers used by TLS may be
|
||||||
controlled by both server and client. There must be some overlap between
|
controlled by both server and client. There must be some overlap between
|
||||||
client and server supported ciphers, or communication cannot occur.
|
client and server supported ciphers, or communication cannot occur.
|
||||||
Default is "NORMAL". See GnuTLS documentation for full details.
|
Default is "NORMAL". See GnuTLS documentation for full details.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.SH "CREDITS & COPYRIGHTS"
|
.SH "CREDITS & COPYRIGHTS"
|
||||||
|
|
|
@ -82,7 +82,7 @@ std::string Config::_defaults =
|
||||||
"# # 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,filter\n"
|
"#verbose=blank,header,footnote,label,new-id,new-uuid,affected,edit,special,project,sync,filter\n"
|
||||||
"confirmation=yes # Confirmation on delete, big changes\n"
|
"confirmation=yes # Confirmation on delete, big changes\n"
|
||||||
"recurrence.confirmation=yes # Confirmation for propagating changes among recurring tasks\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=yes # 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"
|
||||||
|
|
|
@ -90,8 +90,9 @@ int CmdAnnotate::execute (std::string& output)
|
||||||
// Annotate siblings.
|
// Annotate siblings.
|
||||||
if (task->has ("parent"))
|
if (task->has ("parent"))
|
||||||
{
|
{
|
||||||
if (! context.config.getBoolean ("recurrence.confirmation") ||
|
if ((context.config.get ("recurrence.confirmation") == "prompt"
|
||||||
confirm (STRING_CMD_ANNO_CONFIRM_R))
|
&& confirm (STRING_CMD_ANNO_CONFIRM_R)) ||
|
||||||
|
context.config.getBoolean ("recurrence.confirmation"))
|
||||||
{
|
{
|
||||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||||
std::vector <Task>::iterator sibling;
|
std::vector <Task>::iterator sibling;
|
||||||
|
|
|
@ -90,8 +90,9 @@ int CmdAppend::execute (std::string& output)
|
||||||
// Append to siblings.
|
// Append to siblings.
|
||||||
if (task->has ("parent"))
|
if (task->has ("parent"))
|
||||||
{
|
{
|
||||||
if (! context.config.getBoolean ("recurrence.confirmation") ||
|
if ((context.config.get ("recurrence.confirmation") == "prompt"
|
||||||
confirm (STRING_CMD_APPEND_CONFIRM_R))
|
&& confirm (STRING_CMD_APPEND_CONFIRM_R)) ||
|
||||||
|
context.config.getBoolean ("recurrence.confirmation"))
|
||||||
{
|
{
|
||||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||||
std::vector <Task>::iterator sibling;
|
std::vector <Task>::iterator sibling;
|
||||||
|
|
|
@ -103,8 +103,9 @@ int CmdDelete::execute (std::string& output)
|
||||||
// Delete siblings.
|
// Delete siblings.
|
||||||
if (task->has ("parent"))
|
if (task->has ("parent"))
|
||||||
{
|
{
|
||||||
if (! context.config.getBoolean ("recurrence.confirmation") ||
|
if ((context.config.get ("recurrence.confirmation") == "prompt"
|
||||||
confirm (STRING_CMD_DELETE_CONFIRM_R))
|
&& confirm (STRING_CMD_DELETE_CONFIRM_R)) ||
|
||||||
|
context.config.getBoolean ("recurrence.confirmation"))
|
||||||
{
|
{
|
||||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||||
std::vector <Task>::iterator sibling;
|
std::vector <Task>::iterator sibling;
|
||||||
|
|
|
@ -117,8 +117,9 @@ int CmdModify::execute (std::string& output)
|
||||||
// Task potentially has siblings - modify them.
|
// Task potentially has siblings - modify them.
|
||||||
if (task->has ("parent"))
|
if (task->has ("parent"))
|
||||||
{
|
{
|
||||||
if (! context.config.getBoolean ("recurrence.confirmation") ||
|
if ((context.config.get ("recurrence.confirmation") == "prompt"
|
||||||
confirm (STRING_CMD_MODIFY_RECUR))
|
&& confirm (STRING_CMD_MODIFY_RECUR)) ||
|
||||||
|
context.config.getBoolean ("recurrence.confirmation"))
|
||||||
{
|
{
|
||||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||||
std::vector <Task>::iterator sibling;
|
std::vector <Task>::iterator sibling;
|
||||||
|
|
|
@ -90,8 +90,9 @@ int CmdPrepend::execute (std::string& output)
|
||||||
// Prepend to siblings.
|
// Prepend to siblings.
|
||||||
if (task->has ("parent"))
|
if (task->has ("parent"))
|
||||||
{
|
{
|
||||||
if (! context.config.getBoolean ("recurrence.confirmation") ||
|
if ((context.config.get ("recurrence.confirmation") == "prompt"
|
||||||
confirm (STRING_CMD_PREPEND_CONFIRM_R))
|
&& confirm (STRING_CMD_PREPEND_CONFIRM_R)) ||
|
||||||
|
context.config.getBoolean ("recurrence.confirmation"))
|
||||||
{
|
{
|
||||||
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
std::vector <Task> siblings = context.tdb2.siblings (*task);
|
||||||
std::vector <Task>::iterator sibling;
|
std::vector <Task>::iterator sibling;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue