-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
Create branch for append query
What changes
- History now allows you to add a query to the end of the editor without replacing the existing one.
- The history modal adds a shortcut
afor Append and keepsEnterfor Select.
How to use it
- Open history (in NORMAL mode with
backspace). - Select a query.
- Press
ato add it to the end of the editor.
Technical details
- An
appendaction has been added to the history modal and is exposed in the shortcuts. _append_history_queryhas been added to the history handler, which:- Trims trailing line breaks from the current text.
- Inserts the selected query at the end.
- Moves the cursor to the end and maintains focus.
- Telescope also supports
append.
Modified files
sqlit/domains/query/ui/screens/query_history.pysqlit/domains/query/ui/mixins/query_execution.py
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels