Skip to content

feat: add 'run query at cursor' shortcut and functionality#1037

Open
alvesbeto wants to merge 1 commit intoantares-sql:masterfrom
alvesbeto:feature/runCommandAtLine
Open

feat: add 'run query at cursor' shortcut and functionality#1037
alvesbeto wants to merge 1 commit intoantares-sql:masterfrom
alvesbeto:feature/runCommandAtLine

Conversation

@alvesbeto
Copy link
Copy Markdown

PR Description

Summary

This PR introduces the ability to execute the specific SQL query located at the cursor's current position. This addresses the need for "statement-aware" query execution, allowing users to easily run individual statements within a multi-query tab without needing to highlight the text manually.

Features

  • Statement-aware execution: Automatically identifies and extracts the SQL statement currently under the text cursor using the editor's position and the querySplitter.
  • New shortcut: Implemented the CommandOrControl+Enter shortcut to trigger the new "Run query at cursor" action.
  • i18n support: Added localization strings for the new shortcut event in English (en-US) and Portuguese (pt-BR).

Related Issues

Closes #866
Closes #410

Screenshots

Captura de Tela 2026-04-21 às 13 59 26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow specific query execution Keyboard shortcuts for running query (Selected and all)

1 participant