Skip to main content

Module copy_mode

Module copy_mode 

Source
Expand description

Copy Mode & Advanced Selection

This module provides vim-like keyboard navigation and selection in terminal scrollback. Users can enter copy mode, navigate with hjkl keys, select text with visual mode, and yank to clipboard.

Structs§

CopyModeCursor
Copy mode cursor with support for scrollback navigation
CopyModeState
Copy mode state tracking active mode, cursor, and selection
SearchMatch
A match found during search
SearchState
Search state for copy mode search functionality
Selection
Selection region with anchor and active cursor positions

Enums§

SearchDirection
Search direction
SelectionMode
Selection mode for different types of text selection

Functions§

copy_mode_indicator
Generate mode indicator render items for status bar integration
copy_mode_position_indicator
Generate position indicator render items for status bar
find_matches
Find all matches of a query string in the scrollback buffer
find_word_bounds
Find word boundaries at the given position in a line
get_selection_bounds
Get the bounding box of a selection
normalize_selection
Normalize a selection so that start comes before end
search_match_indicator
Generate search match count indicator for status bar