📝
简介
通过官方 Obsidian CLI 管理本地任务,支持列出、切换状态、创建和更新任务,需 Catalyst 许可证。
原始描述
Manage Obsidian tasks via obsidian-cli. List, toggle, create, and update tasks from the terminal.
技能正文
name: obsidian-task description: Manage Obsidian tasks via obsidian-cli. List, toggle, create, and update tasks from the terminal. metadata: version: 1.0.0
Obsidian Task
Manage tasks in your Obsidian vault using the official Obsidian CLI.
Prerequisites
- Obsidian 1.12+ and Catalyst license required
- Settings → General → Command line interface → Enable
- Follow prompt to register the
obsidiancommand - Restart terminal or
source ~/.zprofile(macOS) - Note: Obsidian must be running for CLI to work
Test setup: obsidian version
Usage
/obsidian-task [command] [options]
Commands
| Command | Description |
|---|---|
| (none) | Show help and available commands |
Options
| Option | Description |
|---|---|
--help |
Show help message |
Examples
# List tasks
/obsidian-task tasks file=projects/myproject/todo verbose
# Toggle task on line 2
/obsidian-task task file=projects/myproject/todo line=2 toggle
# Mark task as done
/obsidian-task task file=projects/myproject/todo line=2 done
# Mark task as todo (undo completion)
/obsidian-task task file=projects/myproject/todo line=2 todo
# Create new task
/obsidian-task append file=projects/myproject/todo content="- [ ] task name"
Raw CLI Commands
# List tasks (shows line numbers and status)
obsidian tasks file=<project_slug>/todo verbose
# Sample output:
# projects/<project_slug>/TODO.md
# 2 - [ ] 未完成的任务
# 3 - [x] 已完成的任务
# Update tasks
obsidian task file=<project_slug>/todo line=2 toggle
obsidian task file=<project_slug>/todo line=2 done
obsidian task file=<project_slug>/todo line=2 todo
# Create new task (via append)
obsidian append file=<project_slug>/todo content="- [ ] task name"
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
其他来源收录
同一技能在不同目录的原始页面: