mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.5k stars 302 forks source link

multi-cursor selections are not executed as expected #1083

Open yilmazdurmaz opened 1 year ago

yilmazdurmaz commented 1 year ago

Is your feature request related to a problem? Please describe.

for a while, I could not decide if this is a bug or should be a feature upgrade. so please change the category to the bug, if you already tried such a feature but it does not work properly.

I am sure you are aware of multi-cursor selections: hold the "alt" key and mouse click on different points in the documents, or select a word and "ctrl+D" to select other occurrences.

Unfortunately, the extension does not recognize this multi-cursor selection, and currently runs a query only available in the first cursor's position.

It would come in handy when we want to run only parts of a long query.

Describe the solution you'd like I don't know the internals of this multi-cursor, but when copy-pasting them, they are all merged together by the editor. this extension should be able to work on that merged selection on the fly.

Describe alternatives you've considered the only alternative I see so far is manual editing and it is exhausting

Additional context Add any other context or screenshots about the feature request here.