How to set TaskPaper search from script?


#1

This is how you can do that:

function TaskPaperContextScript(editor, itemPathFilter) {
  editor.itemPathFilter = itemPathFilter
}

Application("TaskPaper").documents[0].evaluate({
  script: TaskPaperContextScript.toString(),
  withOptions: "not @done"
})

#2

This is incredibly helpful. I was about to ask how to do this. Thanks @jessegrosjean!