calendar: add todo edit command

Allow editing todo fields (due date, priority) in place via todoman,
instead of requiring delete + recreate. Updates all docs for consistency.
This commit is contained in:
Yanxin Lu
2026-03-24 21:56:23 -07:00
parent 20ee61498c
commit 734790a599
5 changed files with 136 additions and 5 deletions

View File

@@ -42,6 +42,7 @@ $SKILL_DIR/scripts/calendar.sh reply [options]
# Manage todos
$SKILL_DIR/scripts/calendar.sh todo add [options]
$SKILL_DIR/scripts/calendar.sh todo list [options]
$SKILL_DIR/scripts/calendar.sh todo edit [options]
$SKILL_DIR/scripts/calendar.sh todo complete [options]
$SKILL_DIR/scripts/calendar.sh todo delete [options]
$SKILL_DIR/scripts/calendar.sh todo check
@@ -198,6 +199,23 @@ $SKILL_DIR/scripts/calendar.sh todo list # pending only
$SKILL_DIR/scripts/calendar.sh todo list --all # include completed
```
### `todo edit` — Modify a Todo
```bash
$SKILL_DIR/scripts/calendar.sh todo edit --match "保险报销" --due "2026-03-26"
$SKILL_DIR/scripts/calendar.sh todo edit --uid "abc123@openclaw" --priority high
$SKILL_DIR/scripts/calendar.sh todo edit --match "census" --due "2026-03-28" --priority low
```
| Flag | Required | Description |
|-----------------|----------|-----------------------------------------------------|
| `--uid` | * | Todo UID |
| `--match` | * | Match on summary text |
| `--due` | No | New due date (YYYY-MM-DD) |
| `--priority` | No | New priority: `high`, `medium`, or `low` |
\* One of `--uid` or `--match` is required. At least one edit flag must be provided.
### `todo complete` — Mark as Done
```bash