Structs§
- Completion
Result - Result of applying a completion to text
- Cursor
Movement Result - Result of a cursor movement operation
- Text
Operation Result - 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)