Last active
June 30, 2017 14:25
-
-
Save mayinx/8953353c67bf409de186 to your computer and use it in GitHub Desktop.
User Key Bindings for Sublime Text 2 - place this in .config/sublime-text-2/Packages/User
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
Show hidden characters
[ | |
// inserts / toggles erb tags <%= %> | <% %> | <%- -%> | <%= -%> | <%# %> | <% -%> | |
{ "keys": ["ctrl+shift+."], "command": "erb" }, | |
// Fold / Unfold Comments | |
{ "keys": ["ctrl+shift+c"], "command": "toggle_fold_comments" }, | |
// Reindent all Lines | |
{ "keys": ["ctrl+shift+r"], "command": "reindent" , "args": { "single_line": false } }, | |
// layout: show right column full / switch to single column layout | |
{ | |
"keys": ["alt+right"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.00, 1.0], | |
"rows": [0.0, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
} | |
}, | |
// layout: show left column full / switch to single column layout | |
{ | |
"keys": ["alt+left"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 1.0, 1.0], | |
"rows": [0.0, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
} | |
}, | |
// layout: split layout - 2 columns - left - right | |
{ | |
"keys": ["alt+down"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.5, 1.0], | |
"rows": [0.0, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
} | |
} | |
// { | |
// "keys": ["alt+up"], | |
// "command": "set_layout", | |
// "args": | |
// { | |
// "cols": [0.0, 1.0, 1.0], | |
// "rows": [0.0, 1.0], | |
// "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
// } | |
// } | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment