Line to Google Tasks

Posted by @nahumck, Last update 17 days ago


17 days ago

Made public again.

show all updates...

17 days ago

Made public again.

18 days 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.