Conditions in shortcuts

jckodel's profile image jckodel posted 2 years ago in General Permalink

After +20 years using SQL Management Studio, one of the most missing things I found in the wonderful HeidiSQL was the ability to run the query that is in my editor (all of it) with Ctrl+E, but, at the same time, have the ability to select a single line or piece of line and hitting the same key to run only the selected text.

In VSCode, shortcuts can have conditions (for example: this shortcut works only if the context is text editor and only when the extension of the editing file is .js).

I would love to be able to use Ctrl+E for anything in HeidiSQL (and those conditions could allow those: for instance: when editorTextFocus (editor has focus) and selection is empty, then run command RunQuery, otherwise, if selection is not empty, then run command RunSelectedQuery.

1 attachment(s):
  • Untitled

Please login to leave a reply, or register at first.