From 850b0451a247b12dbd1c0fd76d67f15f0e1155f5 Mon Sep 17 00:00:00 2001 From: hiro98 Date: Sat, 2 May 2020 15:57:49 +0200 Subject: [PATCH] implement starred --- convert.py | 4 +++- readme.org | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/convert.py b/convert.py index fdd7307..8513c9d 100755 --- a/convert.py +++ b/convert.py @@ -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, diff --git a/readme.org b/readme.org index 9e3427c..466e1fe 100644 --- a/readme.org +++ b/readme.org @@ -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.