mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Documentation Update
- Updated the taskrc.5 man page to match 1.9.0 functionality. - Removed obsolete colorizeMessage code.
This commit is contained in:
parent
30e8b03038
commit
ea8b4beede
4 changed files with 215 additions and 124 deletions
327
doc/man/taskrc.5
327
doc/man/taskrc.5
|
@ -36,11 +36,13 @@ $ task rc.<name>:<value> ...
|
||||||
|
|
||||||
If
|
If
|
||||||
.B task
|
.B task
|
||||||
is run without an existing configuration file it will ask if it should create a default, sample
|
is run without an existing configuration file it will ask if it should create a
|
||||||
|
default, sample
|
||||||
.I .taskrc
|
.I .taskrc
|
||||||
file in the user's home directory.
|
file in the user's home directory.
|
||||||
|
|
||||||
The task configuration file consists of a series of "assignments" in each line. The "assignments" have the syntax:
|
The task configuration file consists of a series of "assignments" in each line.
|
||||||
|
The "assignments" have the syntax:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
<name-of-configuration-variable>=<value-to-be-set>
|
<name-of-configuration-variable>=<value-to-be-set>
|
||||||
|
@ -57,11 +59,46 @@ is one of the variables described below
|
||||||
is the value the variable is to be set to.
|
is the value the variable is to be set to.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
and set a configuration variable to a certain value. The equal sign ("=") is used to separate the variable
|
and set a configuration variable to a certain value. The equal sign ("=") is
|
||||||
name from the value to be set.
|
used to separate the variable name from the value to be set.
|
||||||
|
|
||||||
The hash mark, or pound sign ("#") is used as a "comment" character. It can be used to annotate the
|
The hash mark, or pound sign ("#") is used as a "comment" character. It can be
|
||||||
configuration file. All text after the character to the end of the line is ignored.
|
used to annotate the configuration file. All text after the character to the end
|
||||||
|
of the line is ignored.
|
||||||
|
|
||||||
|
Note that task is flexible about the values used to represent Boolean items.
|
||||||
|
You can use "on", "yes", "y", "1", "true", "t", "+", "enabled". Anything else
|
||||||
|
means "off".
|
||||||
|
|
||||||
|
.SH EDITING
|
||||||
|
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:
|
||||||
|
|
||||||
|
.RS
|
||||||
|
$ task config nag "You have higher priority tasks!"
|
||||||
|
.RE
|
||||||
|
|
||||||
|
To delete an entry, use this command:
|
||||||
|
|
||||||
|
.RS
|
||||||
|
$ task config nag
|
||||||
|
.RE
|
||||||
|
|
||||||
|
Task will then use the default value. To explicitly set a value to blank, and
|
||||||
|
therefore avoid using the default value, use this command:
|
||||||
|
|
||||||
|
.RS
|
||||||
|
$ task config nag ""
|
||||||
|
.RE
|
||||||
|
|
||||||
|
Task will also display all your settings with this command:
|
||||||
|
|
||||||
|
.RS
|
||||||
|
$ task config
|
||||||
|
.RE
|
||||||
|
|
||||||
|
and in addition, will also perform a check of all the values in the file,
|
||||||
|
warning you of anything it finds amiss.
|
||||||
|
|
||||||
.SH CONFIGURATION VARIABLES
|
.SH CONFIGURATION VARIABLES
|
||||||
Valid variable names and their default values are:
|
Valid variable names and their default values are:
|
||||||
|
@ -70,15 +107,20 @@ Valid variable names and their default values are:
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B data.location=$HOME/.task
|
.B data.location=$HOME/.task
|
||||||
This is a path to the directory containing all the task files. By default, it is set up to be ~/.task,
|
This is a path to the directory containing all the task files. By default, it is
|
||||||
for example: /home/paul/.task
|
set up to be ~/.task, for example: /home/paul/.task
|
||||||
|
|
||||||
|
Note that you can use the
|
||||||
|
.B ~
|
||||||
|
shell meta character, which will be properly expanded.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B locking=on
|
.B locking=on
|
||||||
Determines whether task uses file locking when accessing the pending.data and completed.data files.
|
Determines whether task uses file locking when accessing the pending.data and
|
||||||
Default to "on". Solaris users who store the task data files on an NFS mount may need to set locking
|
completed.data files. Defaults to "on". Solaris users who store the task data
|
||||||
to "off". Note that setting this value to "off" is dangerous. It means that another program may write
|
files on an NFS mount may need to set locking to "off". Note that there is
|
||||||
to the task.pending file when task is attempting to do the same.
|
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.
|
||||||
|
|
||||||
.SS TERMINAL
|
.SS TERMINAL
|
||||||
.TP
|
.TP
|
||||||
|
@ -94,9 +136,9 @@ The width of tables used when ncurses support is not available. Defaults to 80.
|
||||||
.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. Task will first look for this configuration variable. If found, it is used.
|
command is used. Task will first look for this configuration variable. If found,
|
||||||
Otherwise task will look for the $VISUAL or $EDITOR environment variables, before it defaults
|
it is used. Otherwise task will look for the $VISUAL or $EDITOR environment
|
||||||
to using "vi".
|
variables, before it defaults to using "vi".
|
||||||
|
|
||||||
.SS MISCELLANEOUS
|
.SS MISCELLANEOUS
|
||||||
|
|
||||||
|
@ -109,52 +151,107 @@ locale for which there is no strings file.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B confirmation=yes
|
.B confirmation=yes
|
||||||
May be "yes" or "no", and determines whether task will ask for confirmation before deleting a task or doing bulk changes.
|
May be "yes" or "no", and determines whether task will ask for confirmation
|
||||||
|
before deleting a task or doing bulk changes. The default value is "yes".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B echo.command=yes
|
.B echo.command=yes
|
||||||
May be "yes" or "no", and causes task to display the ID and description of any task when you run the start, stop, do, undo or delete commands. The default value is "yes".
|
May be "yes" or "no", and causes task to display the ID and description of any
|
||||||
|
task when you run the start, stop, do, undo or delete commands. The default
|
||||||
|
value is "yes".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B annotations=full
|
.B annotations=full
|
||||||
.TP
|
.TP
|
||||||
.B report.X.annotations=full
|
.B report.X.annotations=full
|
||||||
Controls the output of annotations in reports. Defaults to full - all annotations are displayed. Set to "sparse" only the last (youngest) annotation is displayed and if there are more than one present for a task a "+" sign is added to the description. Set to "none" the output of annotations is disabled and a "+" sign will be added if there are any annotations present.
|
Controls the display of annotations in reports. Defaults to full - all
|
||||||
|
annotations are displayed. Set to "sparse" only the last (newest) annotation
|
||||||
|
is displayed and if there are more than one present for a task a "+" sign is
|
||||||
|
added to the description. Set to "none" the output of annotations is disabled
|
||||||
|
and a "+" sign will be added if there are any annotations present. The default
|
||||||
|
value is "full".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B next=2
|
.B next=2
|
||||||
Is a number, defaulting to 2, which is the number of tasks for each project that are shown in the
|
Is a number, defaulting to 2, which is the number of tasks for each project that
|
||||||
|
are shown in the
|
||||||
.B task next
|
.B task next
|
||||||
command.
|
command.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B bulk=2
|
.B bulk=2
|
||||||
Is a number, defaulting to 2. When more than this number of tasks are modified in a single command, confirmation will be required, unless the
|
Is a number, defaulting to 2. When more than this number of tasks are modified
|
||||||
|
in a single command, confirmation will be required, unless the
|
||||||
.B confirmation
|
.B confirmation
|
||||||
variable is "no".
|
variable is "no".
|
||||||
|
|
||||||
|
This is useful for preventing large-scale unintended changes.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B nag=You have higher priority tasks.
|
.B nag=You have higher priority tasks.
|
||||||
This may be a string of text, or blank. It is used as a prompt when a task is completed
|
This may be a string of text, or blank. It is used as a prompt when a task is
|
||||||
that is not considered high priority. The "task next" command lists important tasks, and
|
started or completed that is not considered high priority. The "task next"
|
||||||
completing one of those does not generate this nagging. Default value is: You have higher
|
command lists important tasks, and completing one of those does not generate
|
||||||
priority tasks.
|
this nagging. Default value is: You have higher priority tasks. It is a gentle
|
||||||
|
reminder that you are contradicting your own priority settings.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B complete.all.projects=yes
|
.B complete.all.projects=yes
|
||||||
May be yes or no, and determines whether the tab completion scripts consider all the
|
May be yes or no, and determines whether the tab completion scripts consider all
|
||||||
project names you have used, or just the ones used in active tasks.
|
the project names you have used, or just the ones used in active tasks. The
|
||||||
|
default value is "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 the
|
May be yes or no, and determines whether the tab completion scripts consider all
|
||||||
tag names you have used, or just the ones used in active tasks.
|
the tag names you have used, or just the ones used in active tasks. The default
|
||||||
|
value is "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.
|
description and annotations are done in a case sensitive way. Defaults to yes.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.B _forcecolor=no
|
||||||
|
Task shuts off color automatically when the output is not sent directly to a
|
||||||
|
a TTY. For example, this command:
|
||||||
|
|
||||||
|
.RS
|
||||||
|
.RS
|
||||||
|
$ task list > file
|
||||||
|
.RE
|
||||||
|
|
||||||
|
will not use any color. To override this, use:
|
||||||
|
|
||||||
|
.RS
|
||||||
|
$ task rc._forcecolor=yes list > file
|
||||||
|
.RE
|
||||||
|
.RE
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.B blanklines=yes
|
||||||
|
Turning this value off causes task to generate a more vertically compact output.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.B shell.prompt=task>
|
||||||
|
The task shell command uses this value as a prompt. You can change it to any
|
||||||
|
string you like.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.B debug=off
|
||||||
|
Task 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 being parsed,
|
||||||
|
but the information is displayed in a developer-friendly, not a user-friendly
|
||||||
|
way.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.B alias.rm=delete
|
||||||
|
Task supports command aliases. This alias provides an alternate name (rm) for
|
||||||
|
the delete command. You can use aliases to provide alternate names for any of
|
||||||
|
task's commands.
|
||||||
|
|
||||||
.SS DATES
|
.SS DATES
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
@ -165,14 +262,15 @@ description and annotations are done in a case sensitive way. Defaults to yes.
|
||||||
.B dateformat.holiday=YMD
|
.B dateformat.holiday=YMD
|
||||||
.TP
|
.TP
|
||||||
.B report.X.dateformat=m/d/Y
|
.B report.X.dateformat=m/d/Y
|
||||||
This is a string of characters that define how task formats dates. The precedence order
|
This is a string of characters that define how task formats date values. The
|
||||||
for the configuration variable is report.X.dateformat then reportdateformat then dateformat.
|
precedence order for the configuration variable is report.X.dateformat then
|
||||||
While report.X.dateformat only formats the due date in reports, does reportdateformat format
|
reportdateformat then dateformat. While report.X.dateformat only formats the
|
||||||
the due date both in reports and "task info". If both of these are not set then dateformat
|
due date in reports, reportdateformat formats the due date both in reports
|
||||||
will be applied to the due date. Input dates as well as all other dates in reports are formatted
|
and "task info". If both of these are not set then dateformat will be applied
|
||||||
according to dateformat.
|
to the due date. Entered dates as well as all other displayed dates in reports
|
||||||
|
are formatted according to dateformat.
|
||||||
|
|
||||||
The default value is: m/d/Y. The string should contain the characters
|
The default value is: m/d/Y. The string should contain the characters:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
.RS
|
.RS
|
||||||
|
@ -201,8 +299,8 @@ V weeknumber, for example 03 or 37
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
The string may also contain other characters to act as spacers, or formatting. Examples for other
|
The string may also contain other characters to act as spacers, or formatting.
|
||||||
values of dateformat:
|
Examples for other values of dateformat:
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
|
@ -233,42 +331,47 @@ vV a Y-M-D would do an output as "v30 Fri 2009-07.24"
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B weekstart=Sunday
|
.B weekstart=Sunday
|
||||||
Determines the day a week starts. Valid values are Sunday or Monday only.
|
Determines the day a week starts. Valid values are Sunday or Monday only. The
|
||||||
|
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 week number is dependent on the day a week starts. The default value is
|
||||||
|
"yes".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B due=7
|
.B due=7
|
||||||
This is the number of days into the future that define when a task is considered due,
|
This is the number of days into the future that define when a task is
|
||||||
and is colored accordingly. Defaults to 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 due dates
|
If set to full running "task calendar" will display the details of tasks with
|
||||||
that fall into the calendar period. The corresponding days will be color-coded in the
|
due dates that fall into the calendar period. The corresponding days will be
|
||||||
calendar. If set to sparse only the corresponding days will be color coded and no details
|
color-coded in the calendar. If set to sparse only the corresponding days will
|
||||||
will be displayed. The displaying of due dates with details is turned off by setting the
|
be color coded and no details will be displayed. The displaying of due dates
|
||||||
variable to none.
|
with details is turned off by setting the variable to none. The default value
|
||||||
|
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 date when running the
|
The report to run when displaying the details of tasks with due date when
|
||||||
"task calendar" command.
|
running the "task calendar" command. The default value is "list".
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B calendar.holidays=full
|
.B calendar.holidays=full
|
||||||
If set to full running "task calendar" will display holidays in the calendar by color-coding
|
If set to full running "task calendar" will display holidays in the calendar by
|
||||||
the corresponding days. A detailed list with the dates and names of the holidays is also shown.
|
color-coding the corresponding days. A detailed list with the dates and names
|
||||||
If set to sparse only the days are color-coded and no details on the holidays will be
|
of the holidays is also shown. If set to sparse only the days are color-coded
|
||||||
displayed. The displaying of holidays is turned off by setting the variable to none.
|
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
|
.TP
|
||||||
.B Holidays
|
.B Holidays
|
||||||
Holidays are entered either directly in the .taskrc file or via an include file that is specified
|
Holidays are entered either directly in the .taskrc file or via an include file
|
||||||
in .taskrc. For each holiday the name and the date is required to be given:
|
that is specified in .taskrc. For each holiday the name and the date is
|
||||||
|
required to be given:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
.RS
|
.RS
|
||||||
|
@ -284,14 +387,15 @@ holiday.sysadmin.date=20100730
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
Dates are to be entered according to the setting in the dateformat.holiday variable.
|
Dates are to be entered according to the setting in the dateformat.holiday
|
||||||
|
variable.
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B monthsperline=2
|
.B monthsperline=3
|
||||||
Determines how many months the "task calendar" command renders across the screen.
|
Determines how many months the "task calendar" command renders across the
|
||||||
Defaults to however many will fit. If more months that will fit are specified,
|
screen. Defaults to however many will fit. If more months than will fit are
|
||||||
task will only show as many that will fit.
|
specified, task will only show as many that will fit.
|
||||||
|
|
||||||
.SS COLOR CONTROLS
|
.SS COLOR CONTROLS
|
||||||
|
|
||||||
|
@ -303,12 +407,12 @@ use dashes (-----) to underline column headings.
|
||||||
.TP
|
.TP
|
||||||
.B fontunderline=on
|
.B fontunderline=on
|
||||||
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.
|
headers, even when color is enabled.
|
||||||
|
|
||||||
Task has a number of coloration rules. They correspond to a particular attribute
|
Task has a number of coloration rules. They correspond to a particular
|
||||||
of a task, such as it being due, or being active, and specifies the automatic
|
attribute of a task, such as it being due, or being active, and specifies the
|
||||||
coloring of that task. A list of valid color, depending on your terminal, can be
|
automatic coloring of that task. A list of valid colors, depending on your
|
||||||
obtained by running the command
|
terminal, can be obtained by running the command:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
.B task color
|
.B task color
|
||||||
|
@ -320,48 +424,42 @@ The coloration rules and their defaults are:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
.RS
|
.RS
|
||||||
.B color.overdue=bold_red
|
.B color.overdue=bold red
|
||||||
The color for overdue tasks.
|
The color for overdue tasks.
|
||||||
.br
|
.br
|
||||||
.B color.due=bold_yellow
|
.B color.due=bold yellow
|
||||||
The color of due tasks.
|
The color of due tasks.
|
||||||
.br
|
.br
|
||||||
.B color.pri.H=bold
|
.B color.pri.H=bold
|
||||||
The color of priority:H tasks.
|
The color of priority:H tasks.
|
||||||
.br
|
.br
|
||||||
.B color.pri.M=on_yellow
|
.B color.pri.M=on yellow
|
||||||
The color of priority:M tasks.
|
The color of priority:M tasks. No default value.
|
||||||
.br
|
.br
|
||||||
.B color.pri.L=on_green
|
.B color.pri.L=on green
|
||||||
The color of priority:L tasks.
|
The color of priority:L tasks. No default value.
|
||||||
.br
|
.br
|
||||||
.B color.pri.none=white on_blue
|
.B color.pri.none=white on blue
|
||||||
The color of priority: tasks.
|
The color of priority: tasks. No default value.
|
||||||
.br
|
.br
|
||||||
.B color.active=bold_cyan
|
.B color.active=bold cyan
|
||||||
The color of active tasks.
|
The color of active tasks.
|
||||||
.br
|
.br
|
||||||
.B color.tagged=yellow
|
.B color.tagged=yellow
|
||||||
The color of tagged tasks.
|
The color of tagged tasks.
|
||||||
.br
|
.br
|
||||||
.B color.recurring=on_red
|
.B color.recurring=on red
|
||||||
The color for recurring tasks.
|
The color for recurring tasks.
|
||||||
.RE
|
.RE
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
The value for the coloration rules may be one optional foreground color and one optional
|
See the task-color(5) man pages for color details.
|
||||||
color. For example, the value may be
|
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
.RS
|
Certain attributes like tags, projects and keywords can have their own
|
||||||
bold_red on_bright_yellow
|
coloration rules.
|
||||||
.RE
|
|
||||||
.RE
|
|
||||||
|
|
||||||
.RS
|
|
||||||
Certain attributes like tags, projects and keywords can also have their own coloration rules.
|
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
|
@ -370,21 +468,17 @@ Certain attributes like tags, projects and keywords can also have their own colo
|
||||||
Colors any task that has the tag X.
|
Colors any task that has the tag X.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B color.project.X=on_green
|
.B color.project.X=on green
|
||||||
Colors any task assigned to project X.
|
Colors any task assigned to project X.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B color.keyword.X=on_blue
|
.B color.keyword.X=on blue
|
||||||
Colors any task where the description contains X.
|
Colors any task where the description or any annotation contains X.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B color.header=green
|
.B color.header=green
|
||||||
Colors any of the messages printed prior to the report output.
|
Colors any of the messages printed prior to the report output.
|
||||||
|
|
||||||
.TP
|
|
||||||
.B color.message=green
|
|
||||||
Colors any of the messages printed after the report output.
|
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B color.footnote=green
|
.B color.footnote=green
|
||||||
Colors any of the messages printed last.
|
Colors any of the messages printed last.
|
||||||
|
@ -419,11 +513,12 @@ Color of weeknumbers in calendar.
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
shadow.file=$HOME/.task/shadow.txt
|
shadow.file=$HOME/.task/shadow.txt
|
||||||
If specified, designates a file path that will be automatically written to by task,
|
If specified, designates a file path that will be automatically written to by
|
||||||
whenever the task database changes. In other words, it is automatically kept up to date.
|
task, whenever the task database changes. In other words, it is automatically
|
||||||
The shadow.command configuration variable is used to determine which report is written
|
kept up to date. The shadow.command configuration variable is used to determine
|
||||||
to the shadow file. There is no color used in the shadow file. This feature can be useful
|
which report is written to the shadow file. There is no color used in the
|
||||||
in maintaining a current file for use by programs like GeekTool, Conky or Samurize.
|
shadow file. This feature can be useful in maintaining a current file for use by
|
||||||
|
programs like GeekTool, Conky or Samurize.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
|
@ -447,20 +542,20 @@ file is updated by some task command.
|
||||||
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.
|
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.
|
command, if you don't specify one. The default is blank.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
default.command=list
|
default.command=list
|
||||||
Provides a default command that is run every time task is invoked with no arguments.
|
Provides a default command that is run every time task is invoked with no
|
||||||
For example, if set to:
|
arguments. For example, if set to:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
.RS
|
.RS
|
||||||
|
@ -469,8 +564,8 @@ default.command=list project:foo
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
then task will run the "list project:foo" command if no command is specified. This means that
|
then task will run the "list project:foo" command if no command is specified.
|
||||||
by merely typing
|
This means that by merely typing
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
|
@ -510,31 +605,32 @@ The IDs are separated by commas.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B report.X.labels
|
.B report.X.labels
|
||||||
The labels for each column that will be used when generating report X. The labels
|
The labels for each column that will be used when generating report X. The
|
||||||
are a comma separated list.
|
labels are a comma separated list.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B report.X.sort
|
.B report.X.sort
|
||||||
The sort order of the tasks in the generated report X. The sort order is specified
|
The sort order of the tasks in the generated report X. The sort order is
|
||||||
by using the column ids post-fixed by a "+" for ascending sort order or a "-" for
|
specified by using the column ids post-fixed by a "+" for ascending sort order
|
||||||
descending sort order. The sort IDs are separated by commas
|
or a "-" for descending sort order. The sort IDs are separated by commas
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B report.X.filter
|
.B report.X.filter
|
||||||
This adds a filter to the report X so that only tasks matching the filter criteria
|
This adds a filter to the report X so that only tasks matching the filter
|
||||||
are displayed in the generated report.
|
criteria are displayed in the generated report.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B report.X.dateformat
|
.B report.X.dateformat
|
||||||
This adds a dateformat to the report X that will be used by the "due date" column. If
|
This adds a dateformat to the report X that will be used by the "due date"
|
||||||
it is not set then reportdateformat and dateformat will be used in this order. See the
|
column. If it is not set then reportdateformat and dateformat will be used in
|
||||||
|
this order. See the
|
||||||
.B DATES
|
.B DATES
|
||||||
section for details on the sequence placeholders.
|
section for details on the sequence placeholders.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B report.X.annotations
|
.B report.X.annotations
|
||||||
GThis adds the possibility to control the output of annotations for a task in a report. See
|
This adds the possibility to control the output of annotations for a task in a
|
||||||
the
|
report. See the
|
||||||
.B annotations
|
.B annotations
|
||||||
variable for details on the possible values.
|
variable for details on the possible values.
|
||||||
|
|
||||||
|
@ -544,7 +640,8 @@ An optional value to a report limiting the number of displayed tasks in the
|
||||||
generated report.
|
generated report.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
Task comes with a number of predefined reports in its default configuration file. These reports are:
|
Task comes with a number of predefined reports in its default configuration
|
||||||
|
file. These reports are:
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B long
|
.B long
|
||||||
|
@ -556,6 +653,10 @@ Lists all tasks matching the specified criteria.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B ls
|
.B ls
|
||||||
|
Short listing of all tasks matching the specified criteria.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.B minimal
|
||||||
Minimal listing of all tasks matching the specified criteria.
|
Minimal listing of all tasks matching the specified criteria.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
|
|
@ -78,7 +78,7 @@ std::string Config::defaults =
|
||||||
"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.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" // TODO
|
"#monthsperline=3 # Number of calendar months on a line\n"
|
||||||
"\n"
|
"\n"
|
||||||
"# Color controls.\n"
|
"# Color controls.\n"
|
||||||
"color=on # Enable color\n"
|
"color=on # Enable color\n"
|
||||||
|
|
|
@ -118,7 +118,6 @@ void validSortColumns (const std::vector <std::string>&, const std::vector <std:
|
||||||
void initializeColorRules ();
|
void initializeColorRules ();
|
||||||
void autoColorize (Task&, Color&);
|
void autoColorize (Task&, Color&);
|
||||||
std::string colorizeHeader (const std::string&);
|
std::string colorizeHeader (const std::string&);
|
||||||
std::string colorizeMessage (const std::string&);
|
|
||||||
std::string colorizeFootnote (const std::string&);
|
std::string colorizeFootnote (const std::string&);
|
||||||
std::string colorizeDebug (const std::string&);
|
std::string colorizeDebug (const std::string&);
|
||||||
|
|
||||||
|
|
|
@ -165,15 +165,6 @@ std::string colorizeHeader (const std::string& input)
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
std::string colorizeMessage (const std::string& input)
|
|
||||||
{
|
|
||||||
if (gsColor["color.message"].nontrivial ())
|
|
||||||
return gsColor["color.message"].colorize (input);
|
|
||||||
|
|
||||||
return input;
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
std::string colorizeFootnote (const std::string& input)
|
std::string colorizeFootnote (const std::string& input)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue