Action

Un-Complete MD Tasks

Posted by rwilcox, Last update over 3 years ago

For any completed markdown tasks (i.e. lines with a prefix of ‘- [x]’) in the current draft, set it to incomplete ‘- [ ]’

Steps

  • script

    var text = editor.getText();
    
    var output = text.replaceAll("- [x]", "- [ ]")
    
    editor.setText(output);
    editor.save();

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.