Skip to content

Instantly share code, notes, and snippets.

@danjessen
Last active September 13, 2022 23:29
Show Gist options
  • Save danjessen/4345105 to your computer and use it in GitHub Desktop.
Save danjessen/4345105 to your computer and use it in GitHub Desktop.
2 custom layouts for Sublime Text 2: – 2 rows + 1 column & 1 column + 2 rows – Place in packages/user/ as Main.sublime-menu
[{
"id": "view",
"children": [{
"id": "layout",
"children": [{
"command": "set_layout",
"caption" : "Custom: 1 Pane (1C 2R)",
"keys": ["super+alt+shift+5"],
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 2], [1, 0, 2, 1],
[1, 1, 2, 2]
]
}
},
{
"command": "set_layout",
"caption" : "Custom: 2 Pane (2R 1C)",
"keys": ["super+alt+shift+6"],
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1], [1, 0, 2, 2],
[0, 1, 1, 2]
]
}
},
{
"command": "set_layout",
"caption" : "Custom: 3 Pane (2R 1C 1C)",
"keys": ["super+alt+shift+7"],
"args":
{
"cols": [0.0, 0.44, 0.72, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1],
[0, 1, 1, 2],
[1, 0, 2, 2],
[2, 0, 3, 2]
]
}
},
{
"command": "set_layout",
"caption" : "Custom: 4 Pane (2T 1B)",
"mnemonic": "C",
"args": {
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells": [
[0, 0, 1, 1],
[1, 0, 2, 1],
[0, 1, 2, 2]
]
}
},
{
"command": "set_layout",
"caption" : "Custom: 5 Pane (1T 2B)",
"mnemonic": "C",
"args": {
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells": [
[0, 0, 2, 1],
[0, 1, 1, 2],
[1, 1, 2, 2]
]
}
}]
}]}]
@danjessen
Copy link
Author

Updated with more custom panes

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