Skip to main content

Module smart_selection

Module smart_selection 

Source
Expand description

Smart selection module for pattern-based text selection.

This module provides intelligent double-click selection based on regex patterns. When the user double-clicks, the system first tries smart selection rules (sorted by precision, highest first). If a pattern matches at the cursor position, that text is selected. Otherwise, it falls back to word boundary selection.

Structs§

SmartSelectionCache
Cache for compiled smart selection matchers to avoid recompilation
SmartSelectionMatcher
Compiled smart selection rules with cached regex patterns

Functions§

find_word_boundaries
Find word boundaries at the given position using configurable word characters.
is_word_char
Check if a character should be considered part of a word.