# 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 `a` for *Append* and keeps `Enter` for *Select*. ## How to use it 1. Open history (in NORMAL mode with `backspace`). 2. Select a query. 3. Press `a` to add it to the end of the editor. ## Technical details - An `append` action has been added to the history modal and is exposed in the shortcuts. - `_append_history_query` has 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.py` - `sqlit/domains/query/ui/mixins/query_execution.py`
Create branch for append query
What changes
afor Append and keepsEnterfor Select.How to use it
backspace).ato add it to the end of the editor.Technical details
appendaction has been added to the history modal and is exposed in the shortcuts._append_history_queryhas been added to the history handler, which:append.Modified files
sqlit/domains/query/ui/screens/query_history.pysqlit/domains/query/ui/mixins/query_execution.py