Sublime Forum

Key binding for display and execute code in console

#1

I want to be able to press ctrl+c+r, then the selection of text will be 1) sent to the console and 2) executed

This is what I have got so far but it doesn’t execute the code. It only does 1) but not 2). How can this be done ?

{ "keys": "ctrl+c+r"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}}

Note that I am writing R scripts.

0 Likes