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§
- Copy
Mode Cursor - Copy mode cursor with support for scrollback navigation
- Copy
Mode State - Copy mode state tracking active mode, cursor, and selection
- Search
Match - A match found during search
- Search
State - Search state for copy mode search functionality
- Selection
- Selection region with anchor and active cursor positions
Enums§
- Search
Direction - Search direction
- Selection
Mode - 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