Skip to content

Instantly share code, notes, and snippets.

@poritsky
Created December 9, 2012 20:51
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 poritsky/4246924 to your computer and use it in GitHub Desktop.
Save poritsky/4246924 to your computer and use it in GitHub Desktop.
Press ~ to strikethrough (surround with <del> tags) selected text in MarkdownEditing
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