Action

Line to Google Tasks

Posted by @nahumck, Last update over 3 years ago

UPDATES

over 3 years ago

Made public again.

show all updates...

over 3 years ago

Made public again.

over 3 years ago

Made unlisted until after release.

Send the current line as a task to your Google Task Inbox for processing.

Steps

  • script

    /*--- Get entire line of cursor function ---*/
    function getCursorLine(editor) {
    	var cursorPosition = editor.getSelectedRange()[0];
    	var selectionLength = editor.getSelectedRange()[1];
    	var lineRange = editor.getSelectedLineRange();
    	var sel = editor.getTextInRange(lineRange[0], lineRange[1]);
    	return sel.replace(/^[-\*\s\[\]\|\d\.\{\}]+/gi,"")
    }
    
    /*--- Add line to Work Tasks draft ---*/
    let task = getCursorLine(editor);
    draft.setTemplateTag("task", task);
  • googleTask

    No preview available.

Options

  • After Success Nothing
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.