Created
December 9, 2012 20:51
-
-
Save poritsky/4246924 to your computer and use it in GitHub Desktop.
Press ~ to strikethrough (surround with <del> tags) selected text in MarkdownEditing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this to ~/Library/Application Support/Sublime Text 2/Packages/MarkdownEditing/Default (OSX).sublime-keymap | |
Will surround selected text with <del> tags when you type a tilde (~). Only works when text is selected. | |
Get Brett Terpstra's MarkdownEditing here: http://ttscoff.github.com/MarkdownEditing/ | |
{ "keys": ["~"], "command": "insert_snippet", "args": {"contents": "<del>${0:$SELECTION}</del>"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }, | |
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true } | |
] | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment