The session to use
Optional
_eventLeft for backward compatibility
Optional
indexLeft for backward compatibility
Optional
capturing: booleanSaves the current cursor position and calls func
that can change the cursor
postion. The result is the range of the starting and eventual cursor position.
Will reset the cursor position.
The callback that should change the cursor position
Moves the cursor to the row and column provided. [If preventUpdateDesiredColumn
is true
, then the cursor stays in the same column position as its original point.]{: #preventUpdateBoolDesc}
The row to move to
The column to move to
Optional
keepDesiredColumn: booleanOptional
capturing: booleanGets list of ranges composing rectangular block on the screen
The cursor to use
The anchor to use
Optional
includeEmptyLines: booleanIf true, this includes ranges inside the block which are empty due to clipping
Returns true
if moving the character next to the cursor in the specified direction is a soft tab.
the current cursor position
the tab size
1 for right, -1 for left
Creates a new
Selection
object.