Skip to content

EditorView.moveByGroup method

EditorView › moveByGroup

Official

Move a cursor position across the next group of letters or non-letter non-whitespace characters.

Signature:

moveByGroup(start: SelectionRange, forward: boolean): SelectionRange

Parameters:

ParameterTypeDescription
startSelectionRangeThe start selection range.
forwardbooleanWhether to move forward.

Returns: SelectionRangeThe new selection range.