I’m using the package called ‘MarkdownEditing’. In its keybinding file, there is this:
[code] { “keys”: “tab”], “command”: “complete_underlined_header”, “context”:
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^\\-+$|^\\=+$", "match_all": true },
{ "key": "selector", "operator": "not_equal", "operand": "markup.raw", "match_all": true }
]
},
[/code]
That interferes with how I like to use the tab key. To be specific, if I start a new line, type a hyphen, and then press tab, this binding sends the command ‘complete_underlined_header’. It doesn’t enter a tab like I wanted.
I have spent some time researching how to unbind a key binding in Sublime Text and there appears to be no proper way to do it. Just some workarounds, which involve creating a brand new key binding with either no command, or a brand new key binding which inserts a text snippet. I tried it:
[code]{ “keys”: “tab”], “command”: “insert_snippet”, “args”: {“contents”: “tab”}, “context”:
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "^\\-+$|^\\=+$", "match_all": false },
{ "key": "selector", "operator": "not_equal", "operand": "markup.raw", "match_all": true }
]
}[/code]
This doesn’t work. It enters the letters t, a, b, instead of an actual tab.
It’s funny that this is so difficult. Can anyone help?