跳转到主内容

Todoist

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

功能

显示来自 Todoist 的每日任务。

注意

此片段需要从你的 Todoist 个人资料中获取 API Key 才能正常工作。

示例配置

{
"type": "todoist",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#FF0000",
"template": "{{.TaskCount}}",
"options": {
"api_key": "<YOUR_API_KEY>",
"http_timeout": 500
}
}

选项

NameTypeDefaultDescription
api_keystring.Your API Key from Todoist
http_timeoutint20The time (in milliseconds, ms) it takes to consider an http request as timed-out. If no segment is shown, try increasing this timeout.

模板 (信息)

默认模板
 {{ .TaskCount }}

属性

NameTypeDescription
.TaskCountintthe number of tasks due today