Default.sublime-keymap (3159B)
1 [ 2 // Auto-pair less-than and greater-than symbols in include statements 3 { "keys": ["<"], "command": "insert_snippet", "args": {"contents": "<$0>"}, "context": 4 [ 5 { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, 6 { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, 7 { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true }, 8 { "key": "preceding_text", "operator": "not_regex_contains", "operand": "[\"a-zA-Z0-9_]$", "match_all": true }, 9 { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.other - punctuation.definition.string.end", "match_all": true }, 10 { "key": "selector", "operator": "equal", "operand": "(source.c | source.c++) & meta.preprocessor.include" } 11 ] 12 }, 13 { "keys": ["<"], "command": "insert_snippet", "args": {"contents": "<${0:$SELECTION}>"}, "context": 14 [ 15 { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, 16 { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }, 17 { "key": "selector", "operator": "equal", "operand": "(source.c | source.c++) & meta.preprocessor.include" } 18 ] 19 }, 20 { "keys": [">"], "command": "move", "args": {"by": "characters", "forward": true}, "context": 21 [ 22 { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, 23 { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, 24 { "key": "following_text", "operator": "regex_contains", "operand": "^>", "match_all": true }, 25 { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true }, 26 { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.other - punctuation.definition.string.end", "match_all": true }, 27 { "key": "selector", "operator": "equal", "operand": "(source.c | source.c++) & meta.preprocessor.include" } 28 ] 29 }, 30 { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context": 31 [ 32 { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, 33 { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, 34 { "key": "preceding_text", "operator": "regex_contains", "operand": "<$", "match_all": true }, 35 { "key": "following_text", "operator": "regex_contains", "operand": "^>", "match_all": true }, 36 { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true }, 37 { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.other - punctuation.definition.string.end", "match_all": true }, 38 { "key": "selector", "operator": "equal", "operand": "(source.c | source.c++) & meta.preprocessor.include" } 39 ] 40 }, 41 ]