Module text_operations

Module text_operations 

Source

Structs§

CompletionResult
Result of applying a completion to text
CursorMovementResult
Result of a cursor movement operation
TextOperationResult
Result of a text operation that modifies the text

Functions§

apply_completion_to_text
Apply a completion suggestion to text at cursor position Handles quoted identifiers and smart cursor positioning
backspace
Delete character before cursor (Backspace)
clear_text
Clear all text (simple helper)
delete_char
Delete character at cursor position (Delete key)
delete_word_backward
Delete word backward from cursor (Ctrl+W behavior)
delete_word_forward
Delete word forward from cursor (Alt+D behavior)
extract_partial_word_at_cursor
Extract partial word at cursor for SQL completion Handles quoted identifiers and SQL-specific parsing
insert_char
Insert character at cursor position
jump_to_next_token
Jump to next SQL token
jump_to_prev_token
Jump to previous SQL token (more sophisticated than word)
kill_line
Kill text from cursor to end of line (Ctrl+K behavior)
kill_line_backward
Kill text from beginning of line to cursor (Ctrl+U behavior)
move_word_backward
Move cursor backward one word (Ctrl+Left or Alt+B)
move_word_forward
Move cursor forward one word (Ctrl+Right or Alt+F)