Skip to content
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

Feature Request: Shortcuts to run in terminal, equivalence with consol #4304

Closed
griffinevo opened this issue Feb 13, 2019 · 5 comments
Closed
Labels
enhancement stale terminal

Comments

@griffinevo
Copy link

@griffinevo griffinevo commented Feb 13, 2019

Currently there are some keyboard shortcuts in RStudio which allow us to run code into the console from the beginning of a script to the current line ('command + option + B') or run the entire script ('command + shift + return').

It would be nice if we could have a terminal equivalent of these like we do for run current line (which is 'command + return' to send to the console and 'command + option + return' to send to the terminal). Is it possible to add these two shortcuts (and any other relevant equivalents such as from current line to end)?

@maxheld83
Copy link

@maxheld83 maxheld83 commented Mar 6, 2019

I'm not sure I 100% understand, but I think this currently does exist in Version 1.2.1303 (preview release):

screenshot

Works like a charm for REPLing something from a script.sh inside RStudio.

@kendonB
Copy link

@kendonB kendonB commented Apr 11, 2019

These are all the commands I see for the terminal in the latest preview:

image

Still just Ctrl+Alt+Enter for the terminal. OP is asking for terminal equivalents for all execute commands.

Perhaps Ctrl-Alt-Shift B for "Send From Beginning To Line to Terminal" etc.

I would also ask that, if the source file is a .R, "Send to Terminal" behaves just like "Run Selected Line(s)", where it will run the full command if the command is separated over multiple lines.

@griffinevo
Copy link
Author

@griffinevo griffinevo commented Apr 11, 2019

@maxheld83 those send the script to the console, I would like something that offers the same versatility for the terminal (not just 'send to terminal', but features like 'Run from beginning to line in terminal' as @kendonB suggests).

@stale
Copy link

@stale stale bot commented Feb 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

@stale stale bot added the stale label Feb 6, 2021
@stale
Copy link

@stale stale bot commented Feb 20, 2021

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement stale terminal
Projects
None yet
Development

No branches or pull requests

4 participants