Line to Google Tasks

Posted by @nahumck, Last update about 3 years ago


about 3 years ago

Made public again.

show all updates...

about 3 years ago

Made public again.

about 3 years ago

Made unlisted until after release.

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


  • 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.


  • 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.