Action Directory / Add todo

Install

Inserts checkboxed todo

Shared by koshakji

Script

// asks for a task, and inserts it at cursor position formatted like a checkbox item

ui.input('Todo', null, 'input task', function(userInput) {
    if (userInput) {
        editor.replaceSelection('- [ ] ' + userInput + '\n');
    }
});