Skip to content

Instantly share code, notes, and snippets.

@mason-stewart
Last active January 9, 2019 02:06
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save mason-stewart/4699970 to your computer and use it in GitHub Desktop.
Save mason-stewart/4699970 to your computer and use it in GitHub Desktop.
Better user key bindings for SublimeREPL.
[
// Remapping of *some* SublimeREPL shortcuts
{ "keys": ["ctrl+super+s"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
{ "keys": ["ctrl+shift+,", "s"], "command": "repl_transfer_current", "args": {"scope": "selection", "action":"view_write"}},
{ "keys": ["ctrl+shift+super+f"], "command": "repl_transfer_current", "args": {"scope": "file"}},
{ "keys": ["shift+ctrl+,", "f"], "command": "repl_transfer_current", "args": {"scope": "file", "action":"view_write"}},
{ "keys": ["ctrl+super+l"], "command": "repl_transfer_current", "args": {"scope": "lines"}},
{ "keys": ["shift+ctrl+,", "l"], "command": "repl_transfer_current", "args": {"scope": "lines", "action":"view_write"}},
{ "keys": ["ctrl+super+b"], "command": "repl_transfer_current", "args": {"scope": "block"}},
{ "keys": ["shift+ctrl+,", "b"], "command": "repl_transfer_current", "args": {"scope": "block", "action":"view_write"}}
]
@mason-stewart
Copy link
Author

Better user key bindings for SublimeREPL for OS X.

Paste these into "Preferences" -> "Key Bindings - User" (not "Key Bindings - Default"... that file will be overwritten when you update Sublime"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment