Skip to content

Instantly share code, notes, and snippets.

@arleym
Last active January 23, 2017 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arleym/f2a293d8013484e28cb5 to your computer and use it in GitHub Desktop.
Save arleym/f2a293d8013484e28cb5 to your computer and use it in GitHub Desktop.
Subl Keyshorts
[
// ASCII comment
{ "keys": ["super+alt+ctrl+k"], "command": "figlet_default" },
// Jump around in CSS
{"keys": ["alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false}},
{"keys": ["alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true}},
{"keys": ["shift+alt+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true}},
{"keys": ["shift+alt+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true}},
// Prevent empty copy: http://sublimetexttips.com/prevent-copy-and-paste-rage-with-this-simple-tweak-part-2/
{ "keys": ["super+c"], "command": "noop", "context": [
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true }
]
},
{
"keys": ["super+x"], "command": "noop", "context": [
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true }
]
},
{
"keys": [ "ctrl+alt+v" ], "command": "view_in_browser", "args": { "browser": "chrome" }
},
// https://packagecontrol.io/packages/Duplicate%20Lines
{ "keys": ["super+shift+d"], "command": "duplicate_lines" },
{ "keys": ["super+shift+u"], "command": "duplicate_lines", "args": { "up": true } },
{ "keys": ["keypad_enter"], "command": "find_next", "context":
[{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
},
[
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment