taskrc(5)

πŸŽ€ NAME πŸŽ€

Okay bestie, welcome to taskrc(5), the user manual page for configuration details for the task(1) command. This is the whole .taskrc situation, and it’s lowkey iconic. ✨


🌈 SYNOPSIS 🌈

Here’s where the config file can live / how you point Taskwarrior at it, no cap:

$HOME/.taskrc
task rc:<directory-path>/.taskrc ...
TASKRC=<directory-path>/.taskrc task ...
XDG_CONFIG_HOME=<directory-path>/task/taskrc task ...

πŸ’… DESCRIPTION πŸ’…

Taskwarrior gets its configuration data from a file called .taskrc. Normally it lives in your home directory, like this:

$HOME/.taskrc

You can override that default location with the rc: attribute when you run task:

$ task rc:<directory-path>/.taskrc ...

Or you can use the TASKRC environment variable:

$ TASKRC=/tmp/.taskrc task ...

Also, if no ~/.taskrc exists, Taskwarrior checks whether the XDG_CONFIG_HOME environment variable is defined:

$ XDG_CONFIG_HOME=~/.config task ...

Individual options can be overridden too, using the rc.<name>: attribute when running task:

$ task rc.<name>:<value> ...

or:

$ task rc.<name>=<value> ...

If Taskwarrior runs and there’s no existing configuration file, it will ask if it should create a default, sample .taskrc file in your home directory. 🫢

The .taskrc file follows a very simple syntax for name/value pairs:

<name> = <value>

There may be whitespace around <name>, '=' and <value>, and it is ignored. Whitespace inside <value> is left intact. Whitespace is not permitted in comma-separated lists. The entry must be on a single line β€” no continuations. Values support UTF8 as well as JSON encoding, such as \uNNNN.

Taskwarrior is flexible about Boolean values, btw. You can use "1" to enable; anything else is interpreted as disabled. The values "on", "yes", "y" and "true" are also supported. πŸ’–

include <file>

There may be whitespace around 'include' and <file>. The file may be an absolute or relative path, and the special character '~' is expanded to mean $HOME. If a relative path is specified, it will be evaluated as relative with respect to these directories, listed in order of precedence:

  1. the current working directory
  2. the directory containing the taskrc file
  3. the directories set by the package manager (which usually contain pre-defined themes)

Note that environment variables are also expanded in paths β€” and in any other taskrc variables, too. πŸ‘‘

# <comment>

A comment consists of the character '#', and extends from the '#' to the end of the line. There is no way to comment a multi-line block. There may be blank lines.

Almost every value has a default setting, and an empty .taskrc file is one that makes use of every default. So the contents of your .taskrc represent overrides of the default values. To remove a default value completely, you need an entry like this:

<name> =

That entry overrides the default value with a blank value. Slay. πŸ’…


πŸ¦‹ EDITING πŸ¦‹

You can edit your .taskrc file by hand if you want, or you can use the config command. To permanently set a value in your .taskrc, use this command:

$ task config nag "You have more urgent tasks."

To delete an entry, use this command:

$ task config nag

Taskwarrior will then use the default value. To explicitly set a value to blank β€” and therefore avoid using the default value β€” use this command:

$ task config nag ""

Taskwarrior will also display all your settings with this command:

$ task show

and in addition, it will perform a check of all the values in the file, warning you of anything it finds amiss. 🫢


🧚 NESTING CONFIGURATION FILES 🧚

Your .taskrc can include other files containing configuration settings by using the include statement:

include <path/to/the/configuration/file/to/be/included>

By using include files, you can divide your main configuration file into several ones containing just the relevant configuration data β€” like colors, etc. It’s giving organized main character energy. ✨

There are three excellent uses of includes in your .taskrc, shown here:

include default.theme
include holidays.en-US.rc
include dark-16.theme

This includes two standard files that are distributed with Taskwarrior, which define a set of US holidays, and set up a 16-color theme to use, to color the reports and calendar. πŸŽ€


🌸 ENVIRONMENT VARIABLES 🌸

These environment variables override defaults, but not command-line arguments.

  • TASKDATA=~/.task β€” This overrides the default path for the Taskwarrior data.
  • TASKRC=~/.taskrc β€” This overrides the default RC file.

This environment variable will be checked if ~/.taskrc doesn’t exist:

  • XDG_CONFIG_HOME=~/.config β€” If set, Taskwarrior will look for a $XDG_CONFIG_HOME/task/taskrc file.

πŸ‘‘ CONFIGURATION VARIABLES πŸ‘‘

Valid variable names and their default values are:

πŸ“ FILES πŸ“

  • data.location=$HOME/.task β€” This is a path to the directory containing all the Taskwarrior data. By default, it is set up to be ~/.task, for example: /home/paul/.task.

Note that you can use the ~ shell meta character, which will be properly expanded. ✨

Note that the TASKDATA environment variable overrides this setting.

  • hooks.location=$HOME/.task/hooks β€” This is a path to the hook scripts directory. By default it is ~/.task/hooks.
  • gc=1 β€” Can be used to temporarily suspend rebuilding, so that task IDs don’t change. Rebuilding requires read/write access to the database, so disabling gc may result in better performance.
Note that this should be used in the form of a command line override (task rc.gc=0 ...), and not permanently used in the .taskrc file, as this significantly affects performance in the long term. πŸ’€
  • purge.on-sync=0 β€” If set, old tasks will be purged automatically after each synchronization. Tasks are identified as β€œold” when they have status β€œDeleted” and have not been modified for 180 days.
  • hooks=1 β€” This master control switch enables hook script processing. The default value is '1', but certain extensions and environments may need to disable hooks.
  • 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'.

⭐ TERMINAL ⭐

  • detection=1 β€” Determines whether to use ioctl to establish the size of the window you are using, for text wrapping.
  • limit:25 β€” Specifies the desired number of tasks a report should show, if a positive integer is given. The value 'page' may also be used, and will limit the report output to as many lines of text as will fit on screen. Default value is '25'. πŸ¦‹
  • defaultwidth=80 β€” 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 word-wrapping; this is useful when redirecting report output to a file for subsequent handling.
  • defaultheight=24 β€” 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 charts to a file for subsequent handling.
  • 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 '0'.
  • hyphenate=1 β€” Hyphenates lines when wrapping breaks occur mid-word. Default value is '1'.
  • editor=vi β€” Specifies which text editor you wish to use for when the task edit <ID> 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 environment variables, before it defaults to using "vi".
  • reserved.lines=1 β€” 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.

πŸ’œ MISCELLANEOUS πŸ’œ

  • 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 results in only the formatted data being shown, with nothing else. This output is most readily parsed and used by shell scripts. 😌

Alternatively, you can specify a comma-separated list of verbosity tokens that control specific occasions when output is generated. This list may contain:

  • blank β€” Inserts extra blank lines in output, for clarity
  • header β€” Messages that appear before report output (this includes .taskrc/.task overrides and the "[task next]" message)
  • footnote β€” Messages that appear after report output (mostly status messages and change descriptions)
  • label β€” Column labels on tabular reports
  • new-id β€” Provides feedback on any new task with IDs (and UUIDs for new tasks with ID 0, such as new completed tasks).
  • new-uuid β€” Provides feedback on any new task with UUIDs. Overrides new-id. Useful for automation.
  • news β€” Reminds to read new release highlights until the user runs "task news".
  • affected β€” Reports 'N tasks affected' and similar
  • edit β€” Used the verbose template for the 'edit' command
  • special β€” Feedback when applying special tags
  • project β€” Feedback about project status changes
  • sync β€” Feedback about sync
  • filter β€” Shows the filter used in the command
  • context β€” Show the current context. Displayed in footnote.
  • override β€” Notification when configuration options are overridden
  • recur β€” Notification when a new recurring task instance is created
  • default β€” Notifications about Taskwarrior choosing to perform a default action.

The tokens "affected", "new-id", "new-uuid", "project", "override" and "recur" imply "footnote".

The token "default" implies "header".

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=blank,header,footnote,label,new-id,news,affected,edit,special,project,sync,filter,override,recur

verbose=0
verbose=blank,label,new-id,edit

and the final two verbose values are:

verbose=nothing
verbose=

Those additional comments are sent to standard error for header, footnote and project. The others are sent to standard output.

  • confirmation=1 β€” may be "1" or "0", and decides whether Taskwarrior asks for confirmation before deleting a task or performing the undo command. The default value is "1". Consider leaving this enabled, for safety.
  • 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 '0' means that it is an error to use a write command with no filter.
  • annotation.info=1 β€” determines whether annotations are displayed below the description field by the
  • indent.annotation=2 β€” controls the number of spaces to indent annotations when shown beneath the description field. The default value is "2".
  • indent.report=0 β€” controls the indentation of the entire report output. Default is "0".
  • row.padding=0 β€” controls left and right padding around each row of the report output. Default is "0".
  • column.padding=0 β€” controls padding between columns of the report output. Default is "1".
  • bulk=3 β€” is a number, defaulting to 3. When this number or greater of tasks are modified in a single command, confirmation will be required, regardless of the value of the confirmation variable. The special value bulk=0 is treated as an infinity. This is useful for preventing large-scale unintended changes. slay for safety rails ✨
  • 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 started or completed, when there are other tasks with a higher urgency. Default value is: 'You have more urgent tasks'. It is a gentle reminder that you are contradicting your own urgency settings. the callout is real πŸ’…
  • 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 "0".
  • 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".
  • 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 "0". (yes, the name says 1 and the text says default 0 β€” that's the page, bestie)
  • 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 "0".
  • print.empty.columns=1 β€” may be "1" or "0", and determines whether columns with no data for any task are printed. Defaults to "0".
  • 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.
  • regex=1 β€” controls whether regular expression support is enabled. The default value is "1".
  • xterm.title=1 β€” sets the xterm window title when reports are run. Defaults to "0".
  • expressions=infix|postfix β€” sets a preference for infix expressions (1 + 2) or postfix expressions (1 2 +). Defaults to infix.
  • 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=0, export writes raw JSON objects to STDOUT, one per line. Defaults to "1".
  • _forcecolor=1 β€” Taskwarrior shuts off color automatically when the output is not sent directly to a TTY. For example, this command:
$ task list > file

will not use any color. To override this, use:

$ task rc._forcecolor=yes list > file

Defaults to "0".

  • active.indicator=* β€” the character or string to show in the start.active column. Defaults to *.
  • tag.indicator=+ β€” the character or string to show in the tag.indicator column. Defaults to +.
  • dependency.indicator=D β€” the character or string to show in the depends.indicator column. Defaults to D.
  • uda.<name>.indicator=U β€” the character or string to show in the <uda>.indicator column. Defaults to U.
  • recurrence=1 β€” controls whether recurrence is enabled, and whether recurring tasks continue to generate new task instances. Defaults to "1". If you are syncing multiple clients, then it is advised that you set 'recurrence=1' on your primary client, and 'recurrence=0' on ALL other clients. This is a workaround for a duplication bug. write that down, bestie 🫢
  • recurrence.confirmation=prompt β€” controls whether changes to recurring tasks propagates to other child tasks with 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'.
  • recurrence.indicator=R β€” the character or string to show in the recurrence_indicator column. Defaults to R.
  • recurrence.limit=1 β€” 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 is set to 2, then a report will list 2 pending recurring tasks, one for tomorrow, and one for a week from tomorrow.
  • abbreviation.minimum=2 β€” minimum length of any abbreviated command/value. This means that "ve", "ver", "vers", "versi", "versio" will all equate to "version", but "v" will not. Default is 2.
  • 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 being parsed, but the information is displayed in a developer-friendly, not a user-friendly way. Turning debug on automatically sets debug.hooks=1 and debug.parser=1 if they do not already have assigned values. Defaults to "0".
  • debug.hooks=0 β€” 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.
  • debug.parser=0 β€” controls the parser diagnostic level. Level 0 shows no diagnostics. Level 1 shows the final parse tree. Level 2 shows the parse tree from all phases of the parse. Level 3 shows expression evaluation details.
  • obfuscate=0 β€” when set to '1', will replace all report text with 'xxx'. This is useful for sharing report output in bug reports. Default value is '0'. privacy era πŸ™ˆ
  • alias.rm=delete β€” Taskwarrior 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 the commands. Several commands you may use are actually aliases β€” the history report, for example, or export.
  • burndown.cumulative=1 β€” may be "1" or "0", and controls the behaviour of the burndown command. When set to 1, it sums up all completed tasks, otherwise they only get plotted in the interval where the task was completed. Defaults to 1.

πŸ—“οΈ DATES πŸ—“οΈ

  • dateformat=Y-M-D β€” date format value Y-M-D.
  • dateformat.report= β€” report date format value, shown blank here.
  • dateformat.holiday=YMD β€” holiday date format value YMD.
  • dateformat.edit=Y-M-D H:N:S β€” edit date format value Y-M-D H:N:S.
  • dateformat.info=Y-M-D H:N:S β€” info date format value Y-M-D H:N:S.
  • dateformat.annotation= β€” annotation date format value, shown blank here.
  • report.X.dateformat=Y-M-D β€” this is a string of characters that defines how Taskwarrior formats date values. The precedence order for the configuration variable is report.X.dateformat then dateformat.report then dateformat for formatting the due dates in reports. If both report.X.dateformat and dateformat.report are not set then dateformat will be applied to the date. Entered dates as well as all other displayed dates in reports are formatted according to dateformat.

The default value is the ISO-8601 standard: Y-M-D. The string can contain the characters:

  • m β€” minimal-digit month, for example 1 or 12
  • d β€” minimal-digit day, for example 1 or 30
  • y β€” two-digit year, for example 09 or 12
  • D β€” two-digit day, for example 01 or 30
  • M β€” two-digit month, for example 01 or 12
  • Y β€” four-digit year, for example 2009 or 2015
  • a β€” short name of weekday, for example Mon or Wed
  • A β€” long name of weekday, for example Monday or Wednesday
  • b β€” short name of month, for example Jan or Aug
  • B β€” long name of month, for example January or August
  • v β€” minimal-digit week, for example 3 or 37
  • V β€” two-digit week, for example 03 or 37
  • h β€” minimal-digit hour, for example 3 or 21
  • n β€” minimal-digit minutes, for example 5 or 42
  • s β€” minimal-digit seconds, for example 7 or 47
  • H β€” two-digit hour, for example 03 or 21
  • N β€” two-digit minutes, for example 05 or 42
  • S β€” two-digit seconds, for example 07 or 47
  • J β€” three-digit Julian day, for example 023 or 365
  • j β€” Julian day, for example 23 or 365
  • w β€” Week day, for example 0 for Monday, 5 for Friday

The characters 'v', 'V', 'a' and 'A' can only be used for formatting printed dates (not to parse them).

The string may also contain other characters to act as spacers, or formatting. Examples for other values of dateformat:

d/m/Y  would use for input and output 24/7/2009
yMD    would use for input and output 090724
M-D-Y  would use for input and output 07-24-2009

Examples for other values of dateformat.report:

These are the exact outputs, no cap:

a D b Y (V)   would emit "Fri 24 Jul 2009 (30)"
A, B D, Y     would emit "Friday, July 24, 2009"
wV a Y-M-D    would emit "w30 Fri 2009-07-24"
yMD.HN        would emit "110124.2342"
m/d/Y H:N     would emit "1/24/2011 10:42"
a D b Y H:N:S would emit "Mon 24 Jan 2011 11:19:42"

Undefined fields get 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 field that is set. Otherwise, they get the corresponding values of now. For example:

8/1/2013  with m/d/Y   implies August 1, 2013 at midnight (inferred)
8/1 20:40 with m/d H:N implies August 1, 2013 (inferred) at 20:40
  • date.iso=1 β€” enables ISO-8601 date support. The default value is 1. slay, standardized dates πŸ’…

πŸ“… CALENDAR πŸ“…

  • weekstart=Sunday β€” decides the day a week starts. Valid values are Sunday or Monday only. The default value is Sunday.
  • displayweeknumber=1 β€” decides if week numbers are displayed when using the task calendar command. The week number depends on the day a week starts. The default value is 1.
  • due=7 β€” the number of days into the future that define when a task is considered due, and is colored accordingly. The default value is 7.
  • calendar.details=sparse β€” 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 color-coded in the calendar. If set to sparse, only the corresponding days will be color-coded and no details will be displayed. Displaying due dates with details is turned off by setting the variable to none. The default value is sparse.
  • calendar.details.report=list β€” the report to run when displaying the details of tasks with due dates when running the task calendar command. The default value is list.
  • 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.
  • calendar.offset.value=-1 β€” the offset value to apply to the first month in the calendar report. The default value is -1.
  • calendar.holidays=none β€” 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 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. Displaying holidays is turned off by setting the variable to none. The default value is none.
  • calendar.legend=1 β€” determines whether the calendar legend is displayed. The default value is 1.
  • calendar.monthsperline=N β€” 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 specified, Taskwarrior will only show as many that will fit.

πŸ““ JOURNAL ENTRIES πŸ““

  • 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:
  • journal.time.start.annotation=Started task β€” the text of the annotation that is recorded when executing the start command and having set journal.time.
  • journal.time.stop.annotation=Stopped task β€” the text of the annotation that is recorded when executing the stop command and having set journal.time.
  • journal.info=1 β€” when enabled, this setting causes a change log of each task to be displayed by the info command. Default value is 1.

πŸŽ‰ HOLIDAYS πŸŽ‰

Holidays are entered either directly in the .taskrc file or via an include file that is specified in .taskrc. For single-day holidays, the name and the date is required to be given:

holiday.towel.name=Day of the towel
holiday.towel.date=20100525

For holidays that span a range of days (i.e. vacation), you can use a start date and an end date:

holiday.sysadmin.name=System Administrator Appreciation Week
holiday.sysadmin.start=20100730
holiday.sysadmin.end=20100805

Dates are to be entered according to the setting in the dateformat.holiday variable.

The following holidays are computed automatically: Good Friday (goodfriday), Easter (easter), Easter Monday (eastermonday), Ascension (ascension), Pentecost (pentecost). The date for these holidays is the given keyword:

holiday.eastersunday.name=Easter
holiday.eastersunday.date=easter

Note that the Taskwarrior distribution contains example holiday files that can be included like this:

include holidays.en-US.rc

πŸ”— DEPENDENCIES πŸ”—

  • dependency.reminder=1 β€” determines whether dependency chain violations generate reminders.
  • dependency.confirmation=1 β€” determines whether dependency chain repair requires confirmation.

🌈 COLOR CONTROLS 🌈

  • color=1 β€” may be 1 or 0. Determines whether Taskwarrior uses color. When 0, it will use dashes (-----) to underline column headings.
  • fontunderline=1 β€” determines if font underlines or ASCII dashes should be used to underline headers, even when color is enabled.

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 specify the automatic coloring of that task. A list of valid colors, depending on your terminal, can be obtained by running the command:

task colors

The defaults now correspond to the settings defined in default.theme. The basic coloration rules parsed through this modular setup are as follows:

  • color.due.today β€” Task is due today
  • color.active β€” Task is started, therefore active.
  • color.scheduled β€” Task is scheduled, therefore ready for work.
  • color.until β€” Task has an expiration date.
  • color.blocking β€” Task is blocking another in a dependency.
  • color.blocked β€” Task is blocked by a dependency.
  • color.overdue β€” Task is overdue (due some time prior to now).
  • color.due β€” Task is coming due.
  • color.project.none β€” Task does not have an assigned project.
  • color.tag.none β€” Task has no tags.
  • color.tagged β€” Task has at least one tag.
  • color.recurring β€” Task is recurring.
  • color.completed β€” Task is completed.
  • color.deleted β€” Task is deleted.

To disable a coloration rule for which there is a default, set the value to nothing, for example:

color.tagged=

By default, colors produced by rules blend. This has the advantage of conveying additional information, by producing combinations that are not used by any particular rule directly.

However, color blending can produce highlighting combinations which are not desired. In such cases, use the following option to disable this behaviour:

  • 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.

Certain attributes like tags, projects and keywords can have their own coloration rules.

  • color.tag.X=yellow β€” colors any task that has the tag X.
  • color.project.X=on green β€” colors any task assigned to project X.
  • color.keyword.X=on blue β€” colors any task where the description or any annotation contains X.
  • color.uda.X=on green β€” colors any task that has the user defined attribute X.
  • color.uda.X.VALUE=on green β€” colors any task that has the user defined attribute X set to VALUE.
  • color.uda.X.none=on green β€” colors any task that does not have the user defined attribute X.
  • color.error=white on red β€” colors any of the error messages.
  • color.warning=bold red β€” colors any of the warning messages.
  • color.header=green β€” colors any of the messages printed prior to the report output.
  • color.footnote=green β€” colors any of the messages printed last.
  • color.summary.bar=on green β€” colors the summary progress bar. Should consist of a background color.
  • color.summary.background=on black β€” colors the summary progress bar. Should consist of a background color.
  • color.calendar.today=black on cyan β€” color of today in calendar.
  • color.calendar.due=black on green β€” color of days with due tasks in calendar.
  • color.calendar.due.today=black on magenta β€” color of today with due tasks in calendar.
  • color.calendar.overdue=black on red β€” color of days with overdue tasks in calendar.
  • color.calendar.scheduled=black on orange β€” color of days with scheduled tasks in calendar.
  • color.calendar.weekend=bright white on black β€” color of weekend days in calendar.
  • color.calendar.holiday=black on bright yellow β€” color of holidays in calendar.
  • color.calendar.weeknumber=black on white β€” color of weeknumbers in calendar.
  • color.label= β€” colors the report labels. Defaults to not use color.
  • color.label.sort= β€” colors the report labels for sort columns. Defaults to color.label.
  • color.alternate=on rgb253 β€” color of alternate tasks. 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 useful when tasks are displayed over multiple lines due to long descriptions or annotations.
  • color.history.add=on red β€” colors the bars on the ghistory report graphs. Defaults to red, green and yellow bars.
  • color.history.done=on green β€” colors the bars on the ghistory report graphs. Defaults to red, green and yellow bars.
  • color.history.delete=on yellow β€” colors the bars on the ghistory report graphs. Defaults to red, green and yellow bars.
  • color.burndown.pending=on red β€” colors the bars on the burndown reports graphs. Defaults to red, green and yellow bars.
  • color.burndown.started=on yellow β€” colors the bars on the burndown reports graphs. Defaults to red, green and yellow bars.
  • color.burndown.done=on green β€” colors the bars on the burndown reports graphs. Defaults to red, green and yellow bars.
  • color.undo.before=red β€” colors used by the undo command, to indicate the values both before and after a change that is to be reverted.
  • color.undo.after=green β€” colors used by the undo command, to indicate the values both before and after a change that is to be reverted.
Currently not supported. πŸ’€
  • color.sync.added=green β€” colors whatever the sync command spits out for added stuff πŸ’š
  • color.sync.changed=yellow β€” colors the sync output for changed stuff πŸ’›
  • color.sync.rejected=red β€” colors the sync output for rejected stuff ❀️
  • rule.precedence.color=due.today,active,blocking,blocked,overdue,due,scheduled,keyword.,project.,tag.,uda.,recurring,tagged,completed,deleted β€” this is the color-rule precedence list, highest to lowest, bestie. Two lil' shortcuts to know about: the color. prefix is left off (just for brevity ✨), and any wildcard value like color.tag.XXX gets shortened to tag., which yeets all the specific tag rules to the same precedence β€” again, for brevity.
  • color.debug=green β€” colors all debug output, if it's enabled.

🌈 URGENCY 🌈

Okay so the urgency calculation is literally a polynomial with several terms, and each term has a coefficient you can configure πŸ‘‘ The coefficients are:

  • urgency.blocking.coefficient=8.0 β€” urgency coefficient for blocking tasks
  • urgency.blocked.coefficient=-5.0 β€” urgency coefficient for blocked tasks
  • urgency.due.coefficient=12.0 β€” urgency coefficient for due dates
  • urgency.waiting.coefficient=-3.0 β€” urgency coefficient for waiting status
  • urgency.active.coefficient=4.0 β€” urgency coefficient for active tasks
  • urgency.scheduled.coefficient=5.0 β€” urgency coefficient for scheduled tasks
  • urgency.project.coefficient=1.0 β€” urgency coefficient for projects
  • urgency.tags.coefficient=1.0 β€” urgency coefficient for tags
  • urgency.annotations.coefficient=1.0 β€” urgency coefficient for annotations
  • urgency.age.coefficient=2.0 β€” urgency coefficient for the age of tasks
  • urgency.age.max=365 β€” maximum age in days. Once this many days have elapsed, a task's urgency won't climb any higher from aging. cap it, periodt βœ‹
  • urgency.user.tag.<tag>.coefficient=... β€” specific tag coefficient
  • urgency.user.tag.next.coefficient=15.0 β€” urgency coefficient for the tag next
  • urgency.user.project.<project>.coefficient=... β€” specific project coefficient
  • urgency.user.keyword.<keyword>.coefficient=... β€” specific description keyword coefficient
  • urgency.uda.<name>.coefficient=... β€” presence/absence of UDA data
  • urgency.uda.<name>.<value>.coefficient=... β€” a specific value of UDA data

These coefficients reflect how important the various terms are relative to each other in the urgency calculation. They're the default values and you can tweak them to match your vibe, but fr fr β€” think really carefully before you go modifying anything. πŸ™ˆ

  • urgency.inherit=0 β€” plot twist, this isn't actually a coefficient. When it's enabled, blocking tasks inherit the highest urgency value found among the tasks they block, and it's done recursively, like a little urgency waterfall πŸ¦‹ Heads up: it's recommended you set urgency.blocking.coefficient and urgency.blocked.coefficient to 0.0 so this setting can be its most useful self.

πŸŽ€ DEFAULTS πŸŽ€

  • default.project=foo β€” gives the task add command a default project name when you don't specify one. Default is blank.
  • default.due=... β€” gives the task add command a default due date when you don't specify one. You can use a date, or a duration value, which gets assumed to be relative to now. Default is blank.
  • default.scheduled=... β€” gives the task add command a default scheduled date when you don't specify one. Again: a date, or a duration value assumed relative to now. Default is blank.
  • uda.<name>.default=... β€” gives default values for UDA fields when you use task add and don't specify values yourself. Default is blank.
  • default.command=next β€” gives you a default command that runs every single time Taskwarrior is invoked with zero arguments. So if you set it to:
    default.command=project:foo list

then Taskwarrior will run the project:foo list command when no command is specified. Which means that by merely typing

$ task
[task project:foo list]

ID Project Pri Description
 1 foo     H   Design foo
 2 foo         Build foo

like… that's it. that's the whole flex πŸ’…

πŸ“Š REPORTS πŸ“Š

Reports are customizable via these config variables, bestie. The output columns, their labels, and the sort order can all be set with the corresponding variable for each report. And each report name doubles as a "command" name. So for example:

task overdue
  • report.X.description β€” the description for report X when you run the task help command.
  • report.X.columns β€” a comma-separated list of columns and formatting specifiers. Peep the command task columns for the full list of options and examples.
  • report.X.context β€” a boolean value for whether the given report should respect (apply) the currently active context. The CONTEXT section has the deets on context. Defaults to 1.
  • report.X.labels β€” the labels for each column used when generating report X. Comma-separated list, obviously.
  • report.X.sort β€” the sort order of tasks in generated report X. You specify it with column ids post-fixed by a + for ascending or a - for descending, and the sort IDs are separated by commas. Like:
    report.list.sort=due+,priority-,start.active-,project+

Also β€” after the + or - you can drop a solidus /, which means there's a break after the column values change. Example:

    report.minimal.sort=project+/,description+

So this sort order now says there's a listing break between each project. A listing break is literally just a blank line, giving you a visual grouping πŸ¦‹

A special sort value of none means no sorting is required at all, and tasks show up in the order (if any) they were selected in.

A special sort value of random means the tasks get sorted in a random order β€” and every time you run a report with sort:random, a brand new random order is generated. chaotic. love that for us 🎲

  • report.X.filter β€” adds a filter to report X so only the tasks matching the filter criteria show up in the generated report.

Special case alert 🚨: report.timesheet.filter can be specified even though the timesheet report isn't very customizable.

  • report.X.dateformat β€” adds a dateformat to report X that the "due date" column will use. If it's not set, then dateformat.report and dateformat get used, in that order. The DATES section covers the sequence placeholders.
  • report.X.annotations β€” adds the ability to control how annotations output for a task in a report. Deprecated, bestie πŸ’€ Use the description column with a format instead (e.g. description.count).

Taskwarrior ships with a bunch of predefined reports, which are:

  • next β€” lists the most important tasks.
  • long β€” lists all pending tasks and all data, matching the specified criteria.
  • list β€” lists all tasks matching the specified criteria.
  • ls β€” short listing of all tasks matching the specified criteria.
  • minimal β€” minimal listing of all tasks matching the specified criteria.
  • newest β€” shows the newest tasks.
  • oldest β€” shows the oldest tasks.
  • overdue β€” lists overdue tasks matching the specified criteria.
  • active β€” lists active tasks matching the specified criteria.
  • completed β€” lists completed tasks matching the specified criteria.
  • recurring β€” lists recurring tasks matching the specified criteria.
  • waiting β€” lists all waiting tasks matching the specified criteria.
  • all β€” lists all tasks matching the specified criteria.
  • blocked β€” lists all tasks that have dependencies.

🧚 USER DEFINED ATTRIBUTES 🧚

User defined attributes (UDAs) are an extension mechanism β€” they let you define brand new attributes for Taskwarrior to store and display. Iconic. One example is an estimate attribute you could use to store time estimates tied to a task. estimate is not built into Taskwarrior, but with a few simple config settings you can tell Taskwarrior to store it and give you access to it for custom reports and filters. ✨

This lets you augment Taskwarrior so it fits your workflow β€” or bend the rules and use Taskwarrior to store and sync data that isn't even necessarily task-related. no cap.

One important restriction though, and listen up: because this is an open system that allows defining any new attribute, Taskwarrior cannot understand what that attribute means. So sure, Taskwarrior will faithfully store, modify, report, sort, and filter your UDA β€” but it doesn't understand one single thing about it. For example, if you define a UDA named estimate, Taskwarrior will not know whether that value is weeks, hours, minutes, money, or some other resource count. 😭

  • uda.<name>.type=string|numeric|uuid|date|duration β€” defines a UDA called <name>, of the specified type.
  • uda.<name>.label=<column heading> β€” provides a default report label for the UDA called <name>.
  • uda.<name>.values=A,B,C β€” for type string UDAs only: a comma-separated list of acceptable values. In this example, the <name> UDA may only contain A, B, or C β€” but it may also contain no value at all.

Note that the order of the values matters, and it denotes the sort order from highest (A) to lowest (C).

Also note a blank value is permitted.

  • uda.<name>.default=... β€” provides a default value for the UDA called <name>.

πŸ’– Example estimate UDA πŸ’–

This example shows an estimate UDA that stores specific values for the size of a task. Notice the blank value after trivial:

uda.estimate.type=string
uda.estimate.label=Size Estimate
uda.estimate.values=huge,large,medium,small,trivial,

And note that the values are sorted:

huge > large > medium > small > trivial > ''

🫢 CONTEXT 🫢

Context setting is a mechanism that lets you set a permanent filter, so you don't have to keep specifying the same filter over and over. more details on usage live in the task(1) man page.

The current context is stored in the .taskrc file, along with definitions for all the contexts you've provided.

  • context=<name> β€” stores the value of the currently active context.
  • context.<name>.read=<filter>, context.<name>.write=<modifications> β€” this is where you store the definition of a read or write context named <name>. The read context is the default filter that gets applied whenever that context is active ✨. The write context is the default set of modifications applied to newly added tasks while the context is active, no cap πŸ’….
  • context.<name>.rc.<key>=<value> β€” the rc type lets you override any configuration parameter for the current context 🫢. Like, say the default command for the context home should be changed to home_report β€” you'd just add this statement:
context.home.rc.default.command=home_report

πŸ”„ SYNC πŸ”„

These configuration settings are what you use to connect to the task server and sync your tasks with it, bestie 🌈. That's the whole vibe of this section β€” connection + syncing, periodt.


πŸ‘‘ CREDITS & COPYRIGHTS πŸ‘‘

Copyright (C) 2006 - 2021 T. Babej, P. Beckingham, F. Hernandez.

This man page was originally written by Federico Hernandez β€” iconic behavior, honestly πŸŽ€.

Taskwarrior is distributed under the MIT license. See <https://www.opensource.org/licenses/mit-license.php> for more information. (Yes, the link is literally part of the flex ✨.)


🌸 SEE ALSO 🌸

For more information regarding Taskwarrior, see the following:


πŸ› REPORTING BUGS πŸ›

Bugs in Taskwarrior may be reported to the issue-tracker at <https://github.com/GothenburgBitFactory/taskwarrior/issues> β€” go snitch, it's for the greater good πŸ™ˆπŸ’–.


Okay so that's the whole page, bestie β€” you made it to the end πŸŽ‰πŸ’œ

Sign-off time: this whole thing is task version 3.5.0, dated 2016-02-24, and it lives under the name taskrc(5) β€” write that down, iykyk πŸ¦‹βœ¨. Now go forth and configure the heck out of your tasks, you absolute main character πŸ‘‘πŸ’…

πŸ“¦ where this page comes from