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§
- Smart
Selection Cache - Cache for compiled smart selection matchers to avoid recompilation
- Smart
Selection Matcher - 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.