Manage tasks in today's daily note at ~/obsidian/Notes/YYYY-MM-DD.md.
Usage
/todo add [task description]- Add a new task to today's TODO section/todo complete [task description]- Mark a task as complete/todo list- View today's tasks/todo add-sub [parent task] > [sub-task]- Create a sub-task under a parent task
Instructions
-
Determine today's note file:
- Path:
~/obsidian/Notes/$(date +%Y-%m-%d).md - If file doesn't exist, create it with header:
# Journal YYYY-MM-DD
- Path:
-
Find or create the TODO section:
- Look for
## TODOsection in the file - If missing, append
## TODO\n\nto the file
- Look for
-
Task operations:
- Add: Append task as
- [ ] [task description]under ## TODO - Complete: Change
- [ ]to- [x]for matching task - Add-sub: Nest sub-task under parent with 2-space indent:
- [ ] [sub-task] - List: Display all tasks from ## TODO section
- Add: Append task as
-
Format guidelines:
- Use markdown checkbox syntax:
- [ ]for incomplete,- [x]for complete - Indent sub-tasks with 2 spaces per level
- Keep consistent formatting throughout
- Use markdown checkbox syntax:
-
After operations:
- Confirm the action taken
- Show a preview of the TODO section