Move line(s) up/down


Two actions, to move the selected line(s) up or down by one line. Attempts to maintain the selection, so you can repeatedly trigger the actions for convenient line-movement.


They’re the same script, with just a boolean variable at the top toggled for the direction. There are probably some rough spots in terms of edge cases with blank lines; improvements welcomed.