implement starred

This commit is contained in:
hiro98 2020-05-02 15:57:49 +02:00
parent 284785124e
commit 850b0451a2
2 changed files with 5 additions and 2 deletions

View file

@ -187,7 +187,9 @@ def convert_wunderlist_task(writer, task):
title, tags = convert_wunderlist_title(task["title"])
writer.emit_node(
title,
todo_state="todo" if task["completed"] else "done",
todo_state="next"
if task["starred"]
else ("todo" if task["completed"] else "done"),
timestamp=parse_wunderlist_date(task["dueDate"]),
timestamp_type="deadline",
tags=tags,

View file

@ -3,12 +3,13 @@
A little script to convert the wunderlist export format to org mode.
It currently supports:
- Todo states
- Todo states (~TODO~ and ~DONE~, starred becomes ~NEXT~)
- Comments
- Metadata
- Reminders
- Comments
- File Attachments
- Tags
** Usage
Extract the wunderlist export and then just point the script to the ~Tasks.json~ file.