Action

Remove Completed Tasks "- [x]"

Posted by @sylumer, Last update over 5 years ago - Unlisted

Steps

  • script

    //Uncommennt appropriate one
    //Task marker is "- [x]"
    let regex = /(\S*)- \[x\](.*)(\n)?/g;
    //Task marker is "[x]"
    //let regex = /(\S*)\[x\](.*)(\n)?/g;
    
    draft.content = draft.content.replace(regex, "");
    draft.update();
    

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.