Action Directory / Select text from cursor and up/down

Install

Selects the text from the cursor to the top or the bottom

Shared by Ivar

Script

ui.alert("Select text from cursor and...", null, "Up", "Down", function(btn){
    if (!btn) {
        editor.setSelectedRange(0,editor.getSelectedRange()[1])
    } else {
        editor.setSelectedRange(editor.getSelectedRange()[0], editor.getText().length)
    }
})