calendar: fix stale docs and remove unnecessary METHOD from todo add
- Remove duplicate email rule in TOOLS.md - Add todo mutations to sync description in TOOLS.md - Remove METHOD:REQUEST from todo add ICS (no longer emailed) - Update todo check description in SKILL.md
This commit is contained in:
3
TOOLS.md
3
TOOLS.md
@@ -40,7 +40,6 @@ himalaya message write # 写新邮件(交互式)
|
|||||||
```
|
```
|
||||||
|
|
||||||
**邮件发送规则:**
|
**邮件发送规则:**
|
||||||
- **youlu@luyanxin.com → mail@luyx.org**: 直接发送,无需确认
|
|
||||||
- **youlu@luyanxin.com → mail@luyx.org**: 直接发送,无需确认(用户 SimpleLogin 别名)
|
- **youlu@luyanxin.com → mail@luyx.org**: 直接发送,无需确认(用户 SimpleLogin 别名)
|
||||||
- 其他所有对外邮件: 仍需确认
|
- 其他所有对外邮件: 仍需确认
|
||||||
|
|
||||||
@@ -153,7 +152,7 @@ khal list today 7d
|
|||||||
|
|
||||||
**支持操作**: 发送邀请 (`send`)、接受/拒绝/暂定 (`reply`)、待办管理 (`todo add/list/complete/delete/check`)
|
**支持操作**: 发送邀请 (`send`)、接受/拒绝/暂定 (`reply`)、待办管理 (`todo add/list/complete/delete/check`)
|
||||||
**依赖**: himalaya(邮件)、vdirsyncer(CalDAV 同步)、khal(查看日历)、todoman(待办管理)
|
**依赖**: himalaya(邮件)、vdirsyncer(CalDAV 同步)、khal(查看日历)、todoman(待办管理)
|
||||||
**同步**: 发送/回复后自动 `vdirsyncer sync`,心跳也会定期同步
|
**同步**: 发送/回复/待办变更后自动 `vdirsyncer sync`,心跳也会定期同步
|
||||||
**注意**: 发送日历邀请属于对外邮件,需先确认
|
**注意**: 发送日历邀请属于对外邮件,需先确认
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ $SKILL_DIR/scripts/calendar.sh todo delete --match "保险报销"
|
|||||||
$SKILL_DIR/scripts/calendar.sh todo check
|
$SKILL_DIR/scripts/calendar.sh todo check
|
||||||
```
|
```
|
||||||
|
|
||||||
Same as `todo list` but only NEEDS-ACTION items. Exits silently when no pending items. Output is designed for piping to himalaya.
|
Same as `todo list` but only pending items. Exits silently when nothing is pending.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -479,7 +479,6 @@ def cmd_todo_add(args):
|
|||||||
cal = Calendar()
|
cal = Calendar()
|
||||||
cal.add("prodid", PRODID)
|
cal.add("prodid", PRODID)
|
||||||
cal.add("version", "2.0")
|
cal.add("version", "2.0")
|
||||||
cal.add("method", "REQUEST")
|
|
||||||
|
|
||||||
todo = Todo()
|
todo = Todo()
|
||||||
todo.add("uid", uid)
|
todo.add("uid", uid)
|
||||||
@@ -510,9 +509,9 @@ def cmd_todo_add(args):
|
|||||||
print(ics_bytes.decode())
|
print(ics_bytes.decode())
|
||||||
return
|
return
|
||||||
|
|
||||||
# Save to TASKS_DIR (without METHOD for CalDAV)
|
# Save to TASKS_DIR
|
||||||
dest = TASKS_DIR / f"{uid}.ics"
|
dest = TASKS_DIR / f"{uid}.ics"
|
||||||
dest.write_bytes(_strip_method(ics_bytes))
|
dest.write_bytes(ics_bytes)
|
||||||
print(f"Todo created: {args.summary} (due: {due_date}, priority: {prio_label})")
|
print(f"Todo created: {args.summary} (due: {due_date}, priority: {prio_label})")
|
||||||
print(f"Saved to: {dest}")
|
print(f"Saved to: {dest}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user