Drafts Action Directory

Add Hashtags from Inside of Draft

Posted by kjaymiller, Last update 3 months ago

Looks for #someText in draft and saves each to a link.

LIMITATIONS:
- only single word Hashtags. A space will stop the pairing

Install

Steps

  • script

    // See online documentation for examples
    // http://getdrafts.com/scripting
    
    var re = /#[\w\d]+/g;
    var tags = draft.content.match(re);
    
    for (tag in tags) {
    draft.addTag(tags[tag].substring(1));
    }

Options

  • After Success Default
    Notification Info
    Log Level Info

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.