Add @done(date) annotation and optional due-date support to task lines #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Extend the SP→MD sync to write status annotations at the end of task lines,
consistent with the tag model defined in the Future Direction doc.
@done(YYYY-MM-DD) — completion date (written by the plugin)
When a task is marked as done in SP, append a
@done(YYYY-MM-DD)annotationat the end of the corresponding line in the Markdown file.
task.doneOn(Unix timestamp in ms, available in current SP plugin API)@todo(date)/@doing(date)) is dropped when the task is completed,since
@done(date)replaces itExample:
Reopen behaviour (un-done)
When a completed task is reopened in SP, revert to
@todowith no date.The SP plugin API does not currently expose
task.dueDate, so the due date cannotbe recovered automatically. If SP adds that field to the API in a future version,
the behaviour should be updated to write
@todo(date)/@doing(date)instead,recovering the original due date from SP's database.
@todo(date) and @doing(date) — due dates (user-managed, no plugin change needed)
These annotations can be added manually by the user in the Markdown file.
The SP→MD in-place merge already preserves all non-checkbox content verbatim,
so they survive write-backs without any code change.
Example:
Full tag model
@todo@todo(YYYY-MM-DD)@doing@doing(YYYY-MM-DD)@done(YYYY-MM-DD)Date is preserved on any move between
@todoand@doing. When a task movesto done the due date is dropped. When reopened the task returns to
@todo(no date).To be implemented after the other post-beta features.
Add @completed(date) annotation to completed task linesto Add @done(date) annotation to completed task linesAdd @done(date) annotation to completed task linesto Add @done(date) annotation and optional due-date support to task linesIncluded in v0.2.1