Todoist
Whatโ
Displays your daily tasks from Todoist.
caution
The segment needs an API Key from your Todoist profile for this to work.
Sample Configurationโ
- json
- yaml
- toml
{
"type": "todoist",
"style": "powerline",
"powerline_symbol": "๎ฐ",
"foreground": "#ffffff",
"background": "#FF0000",
"template": "{{.TaskCount}}",
"options": {
"api_key": "<YOUR_API_KEY>",
"http_timeout": 500
}
}
type: todoist
style: powerline
powerline_symbol: ๎ฐ
foreground: "#ffffff"
background: "#FF0000"
template: "{{.TaskCount}}"
options:
api_key: <YOUR_API_KEY>
http_timeout: 500
type = "todoist"
style = "powerline"
powerline_symbol = "๎ฐ"
foreground = "#ffffff"
background = "#FF0000"
template = "{{.TaskCount}}"
[options]
api_key = "<YOUR_API_KEY>"
http_timeout = 500
Optionsโ
| Name | Type | Default | Description |
|---|---|---|---|
api_key | string | . | Your API Key from Todoist |
http_timeout | int | 20 | The time (in milliseconds, ms) it takes to consider an http request as timed-out. If no segment is shown, try increasing this timeout. |
Template (info)โ
default template
{{ .TaskCount }}
Propertiesโ
| Name | Type | Description |
|---|---|---|
.TaskCount | int | the number of tasks due today |