Drafts Action Directory

Delete Line in Draft

Posted by khags, Last updated: 2018-06-23 20:08:05 UTC

Deletes entire line of text that cursor sits in.

Install

Steps

  • script

    let [st, len] = editor.getSelectedLineRange();
    editor.setTextInRange(st, len, "");

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.