moveByGroup

fun moveByGroup(state: EditorState, sel: SelectionRange, forward: Boolean, extend: Boolean = false): SelectionRange

Move a selection range by one word group in forward direction.

A "word" here is any maximal run of the same CharCategory. When starting on whitespace, the movement skips the whitespace and then continues through the adjacent word/punctuation group, matching the CodeMirror 6 behavior where Ctrl-Right from a space skips to the end of the next word.