Default.sublime-keymap (1770B)
1 [ 2 // Auto-pair quotes even after string modifiers. 3 // Copied over from the default bindings with modifications to `preceding_text` 4 // and an added selector condition. 5 { "keys": ["\""], "command": "insert_snippet", "args": {"contents": "\"$0\""}, "context": 6 [ 7 { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, 8 { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, 9 { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true }, 10 { "key": "preceding_text", "operator": "regex_contains", "operand": "(?i)\\b[bfru]+$", "match_all": true }, 11 { "key": "selector", "operator": "equal", "operand": "source.python" }, 12 { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true } 13 ] 14 }, 15 { "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'$0'"}, "context": 16 [ 17 { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, 18 { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, 19 { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true }, 20 { "key": "preceding_text", "operator": "regex_contains", "operand": "(?i)\\b[bfru]+$", "match_all": true }, 21 { "key": "selector", "operator": "equal", "operand": "source.python" }, 22 { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single - punctuation.definition.string.end", "match_all": true } 23 ] 24 }, 25 ]