Skip to content

Instantly share code, notes, and snippets.

@scottslowe
Created October 30, 2017 02:43
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 scottslowe/108192e1a0d27028df73a1b2fc4a740a to your computer and use it in GitHub Desktop.
Save scottslowe/108192e1a0d27028df73a1b2fc4a740a to your computer and use it in GitHub Desktop.
Custom keymap file for use with Bracketeer and Sublime Text 3
[
{ "keys": ["{"], "command": "bracketeer", "args": { "braces": "{}", "unindent": true } },
{ "keys": ["}"], "command": "bracketeer", "args": { "braces": "{}", "pressed": "}", "unindent": true } },
{ "keys": ["["], "command": "bracketeer", "args": { "braces": "[]" } },
{ "keys": ["]"], "command": "bracketeer", "args": { "braces": "[]", "pressed": "]" } },
{ "keys": ["("], "command": "bracketeer", "args": { "braces": "()" } },
{ "keys": [")"], "command": "bracketeer", "args": { "braces": "()", "pressed": ")" } },
{ "keys": ["\""], "command": "bracketeer", "args": { "braces": "\"\"" }, "context":
[ { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } ] },
{ "keys": ["'"], "command": "bracketeer", "args": { "braces": "''" }, "context":
[ { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } ] },
{ "keys": ["`"], "command": "bracketeer", "args": { "braces": "``" }, "context":
[ { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } ] },
{ "keys": ["|"], "command": "bracketeer", "args": { "braces": "||" }, "context":
[ { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } ] },
{ "keys": ["<"], "command": "bracketeer", "args": { "braces": "<>" }, "context":
[ { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } ] },
{ "keys": [">"], "command": "bracketeer", "args": { "braces": "<>", "pressed": ">" } },
{ "keys": ["_"], "command": "bracketeer", "args": { "braces": "__" }, "context":
[ { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } ] },
{ "keys": ["*"], "command": "bracketeer", "args": { "braces": "**" }, "context":
[ { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } ] }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment