You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending code to the console, Positron currently lacks start/end cell awareness. This creates a jarring experience for users coming from R or Python workflows, you currently have to manually highlight an entire chunk to send it to the console.
Somewhat adjacent I think there's more of a bug/issue where the initial line is sent but not executed.
Proposed Solutions
Statement-aware "Send to Console"
Once we have LSP support, use it to detect the start and end of the statement surrounding the cursor, allowing the whole statement to be sent to console without manual selection. (Related context: Fix regressions in vs code extension #257)
"Run Query" Code Lens
Add a code lens action above SQL queries so users can run a query with a single click, without needing to select text manually.
IPython-style cell delimiters (fallback)
If full cell/statement awareness isn't yet feasible, maybe we want to support IPython-style manual cell delimiters (e.g., # %%) so users can define cell boundaries explicitly in .gsql files. However, various SQL variations have a separate indicator for comments, such as -- comment for single line and /* multiline */.
I think that 1 or 2 are attractive for more "portable SQL code" and the use of ggsql as a more 'pure' SQL runtime if folks were going to convert to a .sql file or run the queries outside of ggsql proper.
When sending code to the console, Positron currently lacks start/end cell awareness. This creates a jarring experience for users coming from R or Python workflows, you currently have to manually highlight an entire chunk to send it to the console.
Somewhat adjacent I think there's more of a bug/issue where the initial line is sent but not executed.
Proposed Solutions
Once we have LSP support, use it to detect the start and end of the statement surrounding the cursor, allowing the whole statement to be sent to console without manual selection. (Related context: Fix regressions in vs code extension #257)
Add a code lens action above SQL queries so users can run a query with a single click, without needing to select text manually.
If full cell/statement awareness isn't yet feasible, maybe we want to support IPython-style manual cell delimiters (e.g.,
# %%) so users can define cell boundaries explicitly in.gsqlfiles. However, various SQL variations have a separate indicator for comments, such as-- commentfor single line and/* multiline */.I think that 1 or 2 are attractive for more "portable SQL code" and the use of
ggsqlas a more 'pure' SQL runtime if folks were going to convert to a.sqlfile or run the queries outside ofggsqlproper.