Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Send a selection of code to R using SublimeREPL and move cursor to new line
// Purpose: This is a macro which will send a selection of text to sublimeREPL.
// Note: Add this to your macros, which can be accessed from Tools > Macros or saving to your Sublime Text Packages folder.
[
{"command": "repl_transfer_current", "args": {"scope": "selection"}}
{"command": "move", "args": {"by": "lines", "forward": true}}
]
// Purpose: This will execute the sent-to-R-new-line.sublime-macro file, which will send a selection of text through sublimeREPL and add a new line.
// Note: Add this to your user keybindings (Preferences > Key Bindings - User)
{ "keys": ["ctrl+alt+r", "down"], "command": "runMacroFile", "args": {"file": "path-to-macro-file-you-saved-here/sent-to-R-new-line.sublime-macro"}},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.