antares icon indicating copy to clipboard operation
antares copied to clipboard

Keyboard shortcuts for running query (Selected and all)

Open a-paudel opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. Hello just found this app a few days ago, and I think it is amazing. I think this request builds on #359, and will be a productivity boost if there was a keyboard shortcut to run current query.

Describe the solution you'd like One of the shortcuts I thought would be useful is Ctrl+Enter for running selected query, and I believe less important is Ctrl+Shift+Enter for running the all the queries in the current tab.

Additional context Also it would be great if the current query could be run without selecting it. For example the VSCode extension SQLTools does this

Screencast from 07-08-22 20:48:45.webm

Note that I am not selecting the query manually, the extension seems to detect the current query based on where my cursor is positioned (maybe using ; as the delimiter). And i am pressing Ctrl+Enter to go through the queries.

a-paudel avatar Aug 07 '22 19:08 a-paudel

Hi @apaudel96,

by now the shortcut to run selected query, or all, is F5.

Regarding a shortcut to run current query based on the cursor may be a useful and pretty easy implementation, so i will add this request to roadmap.

I'm just working on a feature to allow users to see, edit, add or delete shortcuts. After that i will add new events to bound with shortcuts.

Fabio286 avatar Aug 07 '22 20:08 Fabio286

Thats great to hear. Thanks for all the hard work.

a-paudel avatar Aug 08 '22 13:08 a-paudel

I keep this issue open as a reminder.

Thanks for appreciation.

Fabio286 avatar Aug 08 '22 13:08 Fabio286