Skip to main content

Module visual_selection

Module visual_selection 

Source
Expand description

Visual selection extraction helpers.

Structsยง

Bound
Single position (line, column) inside a buffer.
Pos
Normalized, 0-based indexed output of Nvim getpos().
RawPos ๐Ÿ”’
Raw getpos() tuple: (bufnum, lnum, col, off).
Selection
Owned selection content plus bounds.
SelectionBounds
Start / end bounds plus owning buffer id for a Visual selection.

Functionsยง

bound_to_array ๐Ÿ”’
get
Return an owned Selection for the active Visual range.
get_for_ex_range
Extract the persisted Visual selection if it matches the given Ex range; otherwise return the full line range.
get_from_visual_marks
Return an owned Selection for the persisted Visual marks.
get_line_range_selection ๐Ÿ”’
get_lines
Extract selected text lines from the current Buffer using the active Visual range.
get_marked
Extract the last Visual selection using persisted '< / '> marks.
get_pos ๐Ÿ”’
Calls Nvimโ€™s getpos() function for the supplied mark identifier and returns a normalized Pos.
get_selection ๐Ÿ”’
get_visual_range_command_prefix
Return the command-line range prefix for a persisted Visual selection.
last_visual_mode ๐Ÿ”’
selection_to_dict ๐Ÿ”’
usize_to_i64 ๐Ÿ”’
visual_range_command_prefix ๐Ÿ”’