Contains the cursor position and the text selection of an edit session.
The row/columns used in the selection are in document coordinates representing the coordinates as they appear in the document before applying soft wrap and folding.
Contains the cursor position and the text selection of an edit session.
The row/columns used in the selection are in document coordinates representing the coordinates as they appear in the document before applying soft wrap and folding.
Creates a new Selection
object.
Emitted when the cursor position changes.
Emitted when the cursor position changes.
Emitted when the cursor selection changes.
Emitted when the cursor selection changes.
Empties the selection (by de-selecting it). This function also emits the 'changeSelection'
event.
Empties the selection (by de-selecting it). This function also emits the 'changeSelection'
event.
Returns a concatenation of all the ranges.
Returns a concatenation of all the ranges.
Gets the current position of the cursor.
Gets the current position of the cursor.
Returns an object containing the row
and column
of the calling selection anchor.
Returns an object containing the row
and column
of the calling selection anchor.
Returns an object containing the row
and column
of the calling selection lead.
Returns an object containing the row
and column
of the calling selection lead.
Returns true
if the selection is going backwards in the document.
Returns true
if the selection is going backwards in the document.
Returns true
if the selection is empty.
Returns true
if the selection is empty.
Returns true
if the selection is a multi-line.
Returns true
if the selection is a multi-line.
Merges overlapping ranges ensuring consistency after changes
Merges overlapping ranges ensuring consistency after changes
Moves the cursor to position indicated by the parameters. Negative numbers move the cursor backwards in the document.
Moves the cursor down one row.
Moves the cursor down one row.
Moves the cursor to the end of the file.
Moves the cursor to the end of the file.
Moves the cursor to the start of the file.
Moves the cursor to the start of the file.
Moves the cursor left one column.
Moves the cursor left one column.
Moves the cursor to the end of the line.
Moves the cursor to the end of the line.
Moves the cursor to the start of the line.
Moves the cursor to the start of the line.
Moves the cursor to the word on the left.
Moves the cursor to the word on the left.
Moves the cursor to the word on the right.
Moves the cursor to the word on the right.
Moves the cursor right one column.
Moves the cursor right one column.
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.
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.
row | Number | Required. The row to move to |
column | Number | Required. The column to move to |
keepDesiredColumn | Boolean | Required. If |
Moves the cursor to the screen position indicated by row and column. If preventUpdateDesiredColumn
is true
, then the cursor stays in the same column position as its original point.
Moves the cursor to the screen position indicated by row and column. If preventUpdateDesiredColumn
is true
, then the cursor stays in the same column position as its original point.
row | Number | Required. The row to move to |
column | Number | Required. The column to move to |
keepDesiredColumn | Boolean | Required. If |
Moves the cursor up one row.
Moves the cursor up one row.
Gets list of ranges composing rectangular block on the screen
Selects all the text in the document.
Selects all the text in the document.
Selects a word, including its right whitespace.
Selects a word, including its right whitespace.
Moves the selection down one row.
Moves the selection down one row.
Moves the selection to the end of the file.
Moves the selection to the end of the file.
Moves the selection to the start of the file.
Moves the selection to the start of the file.
Moves the selection left one column.
Moves the selection left one column.
Selects the entire line.
Selects the entire line.
Moves the selection to the end of the current line.
Moves the selection to the end of the current line.
Moves the selection to the beginning of the current line.
Moves the selection to the beginning of the current line.
Moves the selection right one column.
Moves the selection right one column.
Moves the selection up one row.
Moves the selection up one row.
Selects an entire word boundary.
Selects an entire word boundary.
Moves the selection to the first word on the left.
Moves the selection to the first word on the left.
Moves the selection to the first word on the right.
Moves the selection to the first word on the right.
Shifts the selection up (or down, if isBackwards()
is true) the given number of columns.
Shifts the selection up (or down, if isBackwards()
is true) the given number of columns.
columns | Number | Required. The number of columns to shift by |
Splits all the ranges into lines.
Splits all the ranges into lines.