Module simple_operations

Module simple_operations 

Source
Expand description

Simple utility operations

This module contains simple, self-contained operations extracted from the TUI that have minimal dependencies and can be easily tested.

Structs§

TextNavigationContext
Context for text navigation operations
UndoContext
Context for undo operations

Enums§

UndoResult
Result of an undo operation

Functions§

check_parser_error
Check for common SQL parser errors in a query string Returns an error message if issues are found, None if the query looks valid
get_cursor_token_position
Get the cursor token position in the query text Returns (start, end) positions of the token at cursor
get_token_at_cursor
Get the token at the cursor position Returns the token string if found
perform_undo
Perform an undo operation on the current buffer