Action

Delete Current Line

Last update almost 5 years ago - Unlisted

Steps

  • script

    //Get the selection information
    let [intStart, intLength] = editor.getSelectedLineRange();
    //Add 1 to the length to remove any trailing new line
    editor.setTextInRange(intStart, intLength + 1, "");
    //Ensure we have the cursor at the start of the original line
    editor.setSelectedRange(intStart, 0);
    //Ensure we reactivate the editor
    editor.activate();

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.