Here is my @done script, which adds the current date:
let leftPad = (digit) => {
let str = digit.toString()
return digit >=10 ? str : 0 + str;
}
let date = new Date()
let year = leftPad(date.getFullYear())
let month = leftPad(date.getMonth() + 1)
let day = leftPad(date.getDate())
editor.replaceSelection(` @done(${year}-${month}-${day})`)
I’ve tried any and all apps that are compatible with TaskPaper and I just can’t obtain the same efficiency and features that TaskPaper provides. For instance, I use TaskPaper to organize my notes between MarginNote and DEVONthink and I use the links embedded as notes under projects and tasks to specific annotations, however the links are only detected in TaskPaper. TaskMator can detect them but you have to open a separate window and memorize the URL to know which to click. The rest don’t render them unless you use the proper markdown syntax which defeats the purpose of just embedding links as notes.
TaskPaper has met the precise crosspoint of elegance and simplicity with practicality and efficiency. That’s hard to accomplish and yet TaskPaper continues to hold strong in that position among many other apps.
Thanks so much for this - and I’m sorry for my late reply! Somehow, I didn’t get any notice that you posted this.
I’d mostly use certain TaskPaper files for my iPad - and I’d need to sync them. So, would you still suggest using 1Writer (or some other app) for that purpose, while setting it up to sync TaskPaper files?
I don’t quite follow how you used the JavaScript for the set up, but I’ll follow up with that later.
If I used Dropbox for syncing, I would probably use Editorial.
TaskMator lost data on me several times, so I won’t touch it now. It does have the advantage of being designed for TaskPaper, so you won’t have to do scripting.
Don’t worry about the scripting, until you choose an app (as they use different scripting languages).
I am looking into moving away from dropbox so 1writer seems very interesting.
Is there syntax highlighting for task paper?
I it ok for you to share your setup. (I’m unfortunately not very good at scripting…)
There is no TaskPaper syntax highlighting in 1Writer.
I’m ahoy to share any of the scripts that I have written. If you see an interesting one in the screenshot above, tell me the name and I will post the code here.