Action

Delete current line

Posted by drdrang, Last update about 4 years ago - Unlisted

Steps

  • script

    [loc, len] = editor.getSelectedRange();
    [lloc, llen] = editor.getSelectedLineRange();
    if (len == 0) {
      editor.setTextInRange(lloc, llen, '');
      editor.setSelectedRange(lloc, 0);
    }

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.