Is it possible to jump instantly to a project inside TaskPaper doc

This script focuses top level “Inbox” project. If such a project doesn’t yet exist it creates it, and then focuses it.

function TaskPaperContext(editor, options) {
	let outline = editor.outline
	let inbox = outline.evaluateItemPath('/project Inbox')[0]
	if (inbox == null) {
		inbox = outline.createItem('Inbox:')
		outline.root.insertChildrenBefore([inbox], outline.root.firstChild)
	}
    editor.focusedItem = inbox
}

Application('TaskPaper').documents[0].evaluate({
  script: TaskPaperContext.toString()
});
2 Likes