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§

get
Return an owned Selection for the active Visual range.
get_lines
Extract selected text lines from the current Buffer using the active Visual range.
get_pos 🔒
Calls Nvim’s getpos() function for the supplied mark identifier and returns a normalized Pos.