Action

Send to Obsidian

Posted by agiletortoise, Last update about 1 year ago

Add the current draft to the active Obsidian vault as a new file, using the first line of the draft as the file name. The file location is based on the default folder for new files as specified in Obsidian settings.

This example utilizes Obsidian’s URL scheme support. More details on available options in their documentation.

Note that Drafts can also write to files using files action, if you wish to implement actions which write directly to a file in a folder used as an Obsidian vault.

For more details and ideas, read our Obsidian Integration Guide

Steps

  • defineTemplateTag

    name
    fileName
    template
    [[safe_title]]
  • defineTemplateTag

    name
    content
    template
    [[draft]]
    
    [[hashtags]]
    
  • url

    template
    obsidian://new?name=[[fileName]]&content=[[content]]
    useSafari
    false
    encodeTags
    true

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.