mtxr / SublimeText-SQLTools

SQLTools for Sublime Text 3
https://code.mteixeira.dev/SublimeText-SQLTools/
GNU General Public License v3.0
177 stars 40 forks source link

Add more options for expanding the empty selection, improve output #173

Closed tkopets closed 6 years ago

tkopets commented 6 years ago

Add more options for expanding the empty selection. Instead of config option expand_to_paragraph, introduce new option called expand_to, which can be configured to expand empty selection to:

Also, keep the compatibility with old setting expand_to_paragraph, if set to true, then expand_to is considered to be set to paragraph.

Improve the way the output is shown - the output panel is not shown until the first output from DB CLI arrives. Do not display the output panel right away - wait for query results to arrive and then display it. This improves how SQLTools behaves for long running queries, so the user does not have to stare at the empty panel, waiting for results to arrive. Instead, he can continue editing the queries with more screen real estate available.

Also, fix some typos in comments ))