Expand description
Common utility functions shared across command modules
This module provides helper functions that were previously duplicated across multiple command modules (find_cmd, query_cmd, refs_cmd, get_cmd).
Functionsยง
- detect_
language_ from_ path - Detect programming language from file path extension
- extract_
context_ safe - Safely extract context lines from source bytes around a byte span
- extract_
symbol_ content_ safe - Safely extract symbol content from source bytes, handling multi-byte UTF-8 boundaries
- format_
symbol_ kind - Format a SymbolKind for display
- parse_
symbol_ kind - Parse a string into a SymbolKind (case-insensitive)
- resolve_
path - Resolve a file path against an optional root directory
- safe_
slice - Safely extract a byte slice from source with bounds checking
- safe_
str_ slice - Safely extract a UTF-8 string slice with bounds checking