Raxol.UI.Components.Input.MultiLineInput.NavigationHelper (Raxol v0.5.0)
View SourceHelper functions for cursor navigation and text selection in MultiLineInput.
Summary
Functions
Moves the cursor.
Moves the cursor one word to the left, using regex to find the previous word boundary.
Moves the cursor one word to the right, using regex to find the next word boundary.
Functions
Moves the cursor.
It can take a {row, col}
tuple to move to a specific position, or an atom to move directionally.
Directions
{row, col}
: Moves to the specified position, clamped to document bounds.:left
: Moves one position to the left, or to the end of the previous line.:right
: Moves one position to the right, or to the start of the next line.:up
: Moves up by one line.:down
: Moves down by one line.:word_left
: Moves one word to the left.:word_right
: Moves one word to the right.
Moves the cursor one word to the left, using regex to find the previous word boundary.
Moves the cursor one word to the right, using regex to find the next word boundary.