Skip to content

adjustSelections

Adjust the selection inwards or outwards from both sides.

Arguments

  • dir: how to move the selection
    • inward: move both ends of the selection so that the selection shrinks
    • outward: move both ends of the selection so that the selection grows
    • forward: if the cursor is at the start of a selection move both ends of the selection inwards, if the cursor is at the end of a selection move both ends of the selection outwards
    • backward: if the cursor is at the start of a selection move both ends of the selection outwards, if the cursor is at the end of a selection move both ends of the selection inwards
  • count: (default 1) how many characters to move by when adjusting selection ends