Configuration is done by following the XDG Base Directory specification by default but can be overridden by the user
if required. The configuration root directory is $XDG_CONFIG_DIR/toodoux
— it should be ~/.config/toodoux
for most
people on Linux, for instance.
The configuration file, config.toml
, is a TOML file that contains several sections:
[main]
, containing the main configuration of toodoux.[colors]
, containing all the configuration keys to customize the colors and styles used by toodoux.
We reserve the right to use other sections for further, more precise configuration.
- Main configuration
interactive_editor
tasks_file
todo_alias
wip_alias
done_alias
cancelled_alias
uid_col_name
age_col_name
spent_col_name
prio_col_name
project_col_name
tags_col_name
status_col_name
description_col_name
notes_nb_col_name
display_empty_cols
max_description_lines
display_tags_listings
previous_notes_help
- Colors configuration
[colors.description.todo]
[colors.description.ongoing]
[colors.description.done]
[colors.description.cancelled]
[colors.status.todo]
[colors.status.ongoing]
[colors.status.done]
[colors.status.cancelled]
[colors.priority.low]
[colors.priority.medium]
[colors.priority.high]
[colors.priority.critical]
[colors.show_header]
The [main]
section contains the following keys.
- Editor to use for interactive editing.
- Defaults to none.
- Path to the folder containing all the tasks.
- Defaults to
"$XDG_CONFIG_DIR/toodoux"
.
- Name of the tood state.
- Defaults to
"TODO"
.
- Name of the on-going state.
- Defaults to
"WIP"
.
- Name of the done state.
- Defaults to
"DONE"
.
- Name of the cancelled state.
- Defaults to
"CANCELLED"
.
- UID column name.
- Defaults to
"IUD"
.
- Age column name.
- Defaults to
"Age"
.
- Spent column name.
- Defaults to
"Spent"
.
- Priority column name.
- Defaults to
"Prio"
.
- Project column name.
- Defaults to
"Project"
.
- Tags column name.
- Defaults to
"Tags"
.
- Status column name.
- Defaults to
"Status"
.
- Description column name.
- Defaults to
"Description"
.
- Number of notes column name.
- Defaults to
"Notes"
.
- Whether or not display empty columns in listing views.
- Defaults to
false
.
- Maximum number of warping lines of task description before breaking it (and adding the ellipsis character) if it’s too long.
- Defaults to
2
.
- Display tags in listings.
- Defaults to
true
.
- Show the previously recorded notes when adding a new note for a given task.
- Defaults to
true
.
Colors are configured via several sub-sections:
[colors.description.*]
contains all the styles for changing the description content in listing depending on the status of the task.[colors.status.*]
contains all the styles for changing the status content in listing depending on the status of the task.[colors.priority.*]
contains all the styles for changing the priority content in listing depending on the priority of the task.[colors.show_header]
contains the style to apply on headers while describing notes.
Colors can be encoded via several formats:
- Regular RGB hexadecimal strings —
"#rrggbb"
or"#rgb"
. - Terminal colors are supported with the following names:
"black"
."red"
."green"
."yellow"
."blue"
."magenta"
."cyan"
."white"
."bright black"
."bright red"
."bright green"
."bright yellow"
."bright blue"
."bright magenta"
."bright cyan"
."bright white"
.
Style attributes are applied above colors to implement a specific style. They are:
"bold"
."dimmed"
."underline"
."reversed"
."italic"
."blink"
."hidden"
."strikethrough"
.
A style is an object composed of three keys:
foreground
is the color to use as foreground.background
is the color to use as foreground.style
is a list of zero or more style attributes to apply.
- Style to apply on description content of a task still left to do.
- Defaults to:
- Foreground is
"bright white"
. - Background is
"black"
. - Style is
[]
.
- Foreground is
- Style to apply on description content of an on-going task.
- Defaults to:
- Foreground is
"black"
. - Background is
"bright green"
. - Style is
[]
.
- Foreground is
- Style to apply on description content of a done task.
- Defaults to:
- Foreground is
"bright black"
. - Background is
"black"
. - Style is
["dimmed"]
.
- Foreground is
- Style to apply on description content of a cancelled task.
- Defaults to:
- Foreground is
"bright black"
. - Background is
"black"
. - Style is
["dimmed", "strikethrough"]
.
- Foreground is
- Style to apply on status content of a task still left to do.
- Defaults to:
- Foreground is
"magenta"
. - Background is none.
- Style is
["bold"]
.
- Foreground is
- Style to apply on status content of an on-going task.
- Defaults to:
- Foreground is
"green"
. - Background is none.
- Style is
["bold"]
.
- Foreground is
- Style to apply on status content of a done task.
- Defaults to:
- Foreground is
"bright black"
. - Background is none.
- Style is
["dimmed"]
.
- Foreground is
- Style to apply on status content of a cancelled task.
- Defaults to:
- Foreground is
"bright red"
. - Background is none.
- Style is
["dimmed"]
.
- Foreground is
- Style to apply on priority content of a low priority task.
- Defaults to:
- Foreground is
"bright black"
. - Background is none.
- Style is
["dimmed"]
.
- Foreground is
- Style to apply on priority content of a medium priority task.
- Defaults to:
- Foreground is
"blue"
. - Background is none.
- Style is
[]
.
- Foreground is
- Style to apply on priority content of a high priority task.
- Defaults to:
- Foreground is
"red"
. - Background is none.
- Style is
[]
.
- Foreground is
- Style to apply on priority content of a high priority task.
- Defaults to:
- Foreground is
"black"
. - Background is
"bright red"
. - Style is
[]
.
- Foreground is
- Style to apply on headers while showing tasks.
- Defaults to:
- Foreground is
"bright black"
. - Background is none.
- Style is
[]
.
- Foreground is