Search code examples
rsublimetext3key-bindingssublimerepl

Change SublimeREPL Execute Key Binding to cmd-enter in Sublime Text 3 (ST3)


In sublime text 2 I simply used Enhanced-R in order to use the cmd+enter hot key to evaluate a snippet of code in SublimeREPL or the native R app. As far as I can tell, this package doesn't exist for ST3. So, might I change the key binding, currently, control+,,l (control and comma, then l), to cmd+enter?

I imagine I need to modify the file found here: Preferences > Package Settings > SublimeREPL > User or Preferences > Keybindings - User, but am not sure which or what to add.

Thanks for any leads.


Solution

  • Check out R-Box. Enhanced R was rewritten some time ago as R-Box, both are by the same author - R-Box mainly has much extended functionality, including a new menu when .R files are active. Enter (or CtrlEnter on other operating systems) should still work the same way. You'll have to redo your customized settings, of course, but all in all the new plugin is nicer and has many more features than the old one.