Skip to content

Instantly share code, notes, and snippets.

@iesta
Created September 4, 2013 08:49
Show Gist options
  • Select an option

  • Save iesta/6434429 to your computer and use it in GitHub Desktop.

Select an option

Save iesta/6434429 to your computer and use it in GitHub Desktop.
Some Sublime Text 2 user keymap
[
{ "keys": ["ctrl+-"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
{ "keys": ["ctrl+super+escape"], "command": "show_panel", "args": {"panel": "console"} },
{ "keys": ["ctrl+shift+="], "command": "insert_snippet", "args": {"contents": "<%= $0 -%>"} },
{ "keys": ["ctrl+shift+ù"], "command": "insert_snippet", "args": {"contents": "<% $0 %>"} },
{ "keys": ["ctrl+$"], "command": "show_panel", "args": {"panel": "console"} },
{ "keys": ["ctrl+enter"], "command": "insert_snippet", "args": {"contents": "<br />"} },
{ "keys": ["ctrl+shift+-"], "command": "insert_snippet", "args": {"contents": "<hr />"} },
{ "keys": ["ctrl+l"], "command": "insert_snippet", "args": {"contents": " => "} },
{ "keys": ["ctrl+@"], "command": "insert_snippet", "args": {"contents": "#{${0:$SELECTION}}"} },
{ "keys": ["ctrl+shift+b"], "command": "insert_snippet", "args": {"contents": "<b>${0:$SELECTION}</b>"} },
{ "keys": ["ctrl+shift+l"], "command": "insert_snippet", "args": {"contents": "<a href=\"${0}\">$SELECTION</a>"} },
{ "keys": ["ctrl+shift+space"], "command": "insert_snippet", "args": {"contents": "&nbsp;"} },
{ "keys": ["ctrl+shift+o"], "command": "insert_snippet", "args": {"contents": "params[${0::id}]"} },
{ "keys": ["ctrl+shift+;"], "command": "erb" },
{ "keys": ["ctrl+shift+j"], "command": "insert_snippet", "args": {"contents": "('#${0}')."} },
{ "keys": ["ctrl+shift+-"], "command": "delete_trailing_spaces" },
//{ "keys": ["ctrl+shift+e"], "command": "insert_snippet", "args": {"contents": "<?php echo ${0} ?>"} },
//{ "keys": ["ctrl+shift+,"], "command": "insert_snippet", "args": {"contents": "<?php ${0} ?>"} },
{ "keys": ["ctrl+shift+c"], "command": "insert_snippet", "args": {"contents": "<div class=\"container\">"} },
{ "keys": ["ctrl+shift+r"], "command": "insert_snippet", "args": {"contents": "<div class=\"row\">"} },
{ "keys": ["ctrl+shift+d"], "command": "insert_snippet", "args": {"contents": "</div>"} },
{ "keys": ["ctrl+shift+s"], "command": "insert_snippet", "args": {"contents": "<div class=\"span$0\">"} },
{ "keys": ["ctrl+shift+!"], "command": "insert_snippet", "args": {"contents": "<!-- $0 -->"} },
{ "keys": ["ctrl+shift+i"], "command": "reindent" },
{ "keys": ["ctrl+super+r"], "command": "reveal_in_side_bar"},
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+k", "p"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" },
{ "keys": ["super+k", "m"], "command": "list_rails_models" },
{ "keys": ["super+k", "c"], "command": "list_rails_controllers" },
{ "keys": ["super+k", "v"], "command": "list_rails_views" },
{ "keys": ["super+k", "h"], "command": "list_rails_helpers" },
{ "keys": ["super+k", "t"], "command": "list_rails_tests" },
{ "keys": ["super+k", "j"], "command": "list_rails_javascripts" },
{ "keys": ["super+k", "s"], "command": "list_rails_stylesheets" },
{ "keys": ["super+:"], "command": "goto_recent" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment