Skip to content

Quick and dirty script to export todo.txt into AbstractSpoon's ToDoList

Notifications You must be signed in to change notification settings

alexjulien/todo_txt2tdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ToDo.txt to TDL

Do a quick and dirty export of a todo.txt file into CSV ready to import into ToDoList.

It does the following mappings:

  • Context -> Category (can handle multi-context)

  • Creation and Due dates are handled correctly (it requires Creation dates, which I use in my todo.txt)

  • Project -> Parent task. I don't do multi-project per task in my todo.txt (non GTD-esque) so it does the following

    • task 1 (no project)
    • task 2 +project1
    • task 3 (no project)
    • task 4 +project1

    Turns into

    • task 1
    • task 3
    • +project1
      • task 2
      • task 4

    With a data structure such as this:

tasks = {
  'project name': [
          1, # project id
          [  # tasks...
              [task_name, parent_id, task_id, creation_date, due_date, categories],
              [task_name, parent_id, task_id, creation_date, due_date, categories],
              ...
          ]
  ],
  'project 2 name': ...,  

It only maps the following attributes:

  • Title
  • Parent
  • Task ID (autogenerated, sequential)
  • Creation date
  • Due date
  • Category

I don't do Priorities (not GTD-esque) so there.

DONE tasks are not imported. I had forgotten those, and don't really need them for my import, so I was lazy enough to add an awful continue, which I rarely do (not structured-esque).

About

Quick and dirty script to export todo.txt into AbstractSpoon's ToDoList

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages