Based on the suggestions in this thread regarding document organization i have consolidated all my projects into a single file. This is working ok except that now when i search for a given tag ie “@todo” there is a lot more noise from having to show the entire path for a given task/project.
Is there a way to only show the line of text that contains the actual tag without all the parents?
I’m not sure, but I think maybe you are running an earlier version of macOS that doesn’t support some of the newer javascript syntax… what version of macOS are you running?
You can try this instead:
function HideAncestorsTaskPaperContextScript(editor, options) {
var hideItems = []
editor.displayedItems.forEach(function (each) {
if (each.hasChildren && !editor.isCollapsed(each)) {
hideItems.push(each)
}
})
editor.forceHidden(hideItems)
}
Application("TaskPaper").documents[0].evaluate({
script: HideAncestorsTaskPaperContextScript.toString()
})