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:
line - current line(s)
paragraph - current paragraph(s)
file - current file (view)
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.
Add more options for expanding the empty selection. Instead of config option
expand_to_paragraph
, introduce new option calledexpand_to
, which can be configured to expand empty selection to:line
- current line(s)paragraph
- current paragraph(s)file
- current file (view)Also, keep the compatibility with old setting
expand_to_paragraph
, if set totrue
, thenexpand_to
is considered to be set toparagraph
.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 ))