Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mathowie/5471d198918d2ac36d44 to your computer and use it in GitHub Desktop.

Select an option

Save mathowie/5471d198918d2ac36d44 to your computer and use it in GitHub Desktop.

Revisions

  1. mathowie created this gist Nov 11, 2014.
    13 changes: 13 additions & 0 deletions sublime text 2 user keybindings custom for links and paragraphs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    [

    { "keys": ["super+alt+7"], "command": "encode_html_entities" },
    { "keys": ["shift+ctrl+u"], "command": "title_case" },
    { "keys": ["super+enter"], "command": "insert", "args": {"characters": "<br>\n"} },
    { "keys": ["super+alt+p"], "command": "insert_snippet", "args": {"contents": "<p>${0:$SELECTION}</p>" } },
    { "keys": ["super+alt+a"], "command": "insert_snippet", "args": {"contents": "<a href=\"\">${0:$SELECTION}</a>" } },
    { "keys": ["super+alt+b"], "command": "insert_snippet", "args": {"contents": "<strong>${0:$SELECTION}</strong>" } },
    { "keys": ["super+alt+i"], "command": "insert_snippet", "args": {"contents": "<em>${0:$SELECTION}</em>" } },
    { "keys": ["super+alt+n"], "command": "insert_snippet", "args": {"contents": "<span>${0:$SELECTION}</span>" } },
    { "keys": ["super+alt+down"], "command": "insert_snippet", "args": {"contents": "<sub>${0:$SELECTION}</sub>" } },
    { "keys": ["super+alt+up"], "command": "insert_snippet", "args": {"contents": "<sup>${0:$SELECTION}</sup>" } }
    ]