posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.78k stars 85 forks source link

User request: Add keybinding to send to Terminal from shell script #5251

Open petetronic opened 1 week ago

petetronic commented 1 week ago

User discussion requested a keybinding to send a line (or selection) to the Terminal from shell script files:

In RStudio, a very handy feature is that when I open an .sh file and press Ctrl-enter (I use git bash on windows as my terminal), the line gets executed if the terminal window is open, similar to how an R line is executed in the console.

I missed that feature in Positron.

Originally posted by @lounkine in https://github.com/posit-dev/positron/discussions/5246

petetronic commented 1 week ago

From a safety perspective, we could consider having a setting that would disable this shortcut by default.