Scripting


Using the JS `!` operator to toggle true ⇄ false settings (1)
Lost work on a long script (5)
Is there a way to get just the body of the current draft in JavaScript? (4)
First JS script... appending to an existing draft (4)
How to store an authorization token? ( 2 ) (24)
Recipes :: Working with a subset of lines in a draft (1)
Faster Drafts scripting and less debugging – use `map` for simpler code (2)
Using the Todoist REST API with Drafts (9)
Converting a Javascript Draft to a template (8)
Twitter.create keeps failing, unsure how to debug (3)
Editor: move caret to a specific position (9)
Wherefore is 'var for' simple or quick for scripting Drafts? (2)
Any chance of callbacks in Prompts? (3)
Date Parse format, can’t get ordinal suffix (3)
JS :: Summing numbers over a range of lines (with Array.reduce) (5)
Trying to get my arms around Scripting in Drafts (3)
JS :: More general use of Array.reduce - partitioning lines or drafts into two groups (1)
JS :: Simpler interactions between 2 or more script steps (3)
JS :: Use Array.reduce to move done items to the end of the draft content (5)
JS :: Array.findIndex – simplifies use of Draft.query (5)