-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Negotiate terms re: Ctrl+Enter/Cmd+Enter with the Quarto extension #1518
Comments
From @jjallaire:
|
The behaviour I originally noted is still present. |
feedback from @EmilHvitfeldt via @juliasilge:
https://positpbc.slack.com/archives/C04FPQK3H9C/p1710266024900919 |
Came up in beta feedback too: https://github.com/posit-dev/positron-beta/discussions/71 |
Toehold: Here's where Quarto's executor connects to the vscode-R extension to trigger statement-aware execution. |
Here is where we call Positron: https://github.com/quarto-dev/quarto/blob/0e27dc40a96044979bf1fdf1b34a2857ded3b21b/apps/vscode/src/host/hooks.ts#L54-L69 You just need to implement an |
Two PRs so far:
I currently believe we'll need to also update the statement range provider in ark, and then also look at the Python experience. So basically, you know, everything. 😩 |
This is now ready for verification for Public Beta. For QA and confirming that we have the behavior as expected now, one will need to install the
|
Now works great! Screen.Recording.2024-05-28.at.17.02.52.mov |
I am someone who, apparently, has used Ctrl+Enter for years to run 1 line of R code in RStudio, as opposed to Cmd+Enter, even though I'm on macOS.
This works in Positron as of #1209.
I just tried (and failed) to use Ctrl+Enter to run a line of R code from a vignette, where we're getting
.Rmd
support from the Quarto extension. That leads to a rather puzzling refusal:Puzzling because I am staring at a perfectly healthy R runtime and I can run whole chunks. Of course what I should do is use Cmd+Enter, which works!
Slack discussion lead to this issue.
@jmcphers says:
Capturing (some of) what Positron > Settings > Keyboard shortcuts shows for me right now, which also illustrates the problem:
The text was updated successfully, but these errors were encountered: