Action

Add Hashtags from Inside of Draft

Posted by kjaymiller, Last update over 6 years ago

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

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

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
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.