Send to Obsidian Memos

Posted by XTY, Last update over 2 years ago


over 2 years ago

Update comments

show all updates...

over 2 years ago

Update comments

over 2 years ago

Add comments

Add the current draft to daily notes, as an entry of Memos


  • script

    // See online documentation for examples
    // Change vault name to yours
    let vault = "220 Evergreen"
    let body = draft.content
    body = body.replace(/(?:\r\n|\r|\n)/g, '<br>')
    let date = new Date()
    let timestamp = date.toString('HH:mm')
    let content = "- "+timestamp+" "+body
    let encodedVault = encodeURIComponent(vault)
    let encodedContent = encodeURIComponent(content)
    // Change/delete heading as needed, to match your memo setting
    // Change mode to append/prepend as needed
    let encodedURI = "obsidian://advanced-uri?vault="+encodedVault+"&daily=true&data="+encodedContent+"&heading=Today&mode=append"


  • 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.