Skip to content

Instantly share code, notes, and snippets.

@neilrenicker
Last active December 27, 2015 13:49
Show Gist options
  • Save neilrenicker/7336385 to your computer and use it in GitHub Desktop.
Save neilrenicker/7336385 to your computer and use it in GitHub Desktop.
Simple key bindings for multiple panes in Sublime Text 2
[
//** CUSTOM SET_LAYOUT BINDINGS **//
{
"keys": ["super+alt+left"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
{
"keys": ["super+alt+right"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.66, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
{
"keys": ["super+alt+up"],
"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": ["super+alt+down"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
}
},
//** CUSTOM MOVE_TO_GROUP BINDINGS **//
{ "keys": ["alt+1"], "command": "move_to_group", "args": { "group": 0 } },
{ "keys": ["alt+2"], "command": "move_to_group", "args": { "group": 1 } },
{ "keys": ["alt+3"], "command": "move_to_group", "args": { "group": 2 } },
{ "keys": ["alt+4"], "command": "move_to_group", "args": { "group": 3 } }
]
@neilrenicker
Copy link
Author

Note: add these bindings to Preferences > Key Bindings - User.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment