Action

Send to Bear & Todoist

Posted by agiletortoise, Last update about 1 month ago

Send draft to Bear Notes as new note with tags assigned in Drafts converted to #hashtags in the content. Then create a Todoist task with the title and a link to the Bear note in comments.

Steps

  • script

    // make template tag
    // with draft tags as #hashtags for Bear
    let hashTags = draft.tags.map(t => `#${t}`).join(", ")
    draft.setTemplateTag("hashtags", hashTags);
  • defineTemplateTag

    name
    content
    template
    [[hashtags]]
    [[body]]
  • callbackUrl

    template
    bear://x-callback-url/create?title=[[title]]&text=[[content]]
    waitForResponse
    true
    encodeTags
    true
  • defineTemplateTag

    name
    bearLink
    template
    bear://x-callback-url/open-note?id=[[callback_identifier]]
  • todoist

    template
    [[title]]
    reminder
    comment
    [[bearLink]]

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.