Skip to content

Instantly share code, notes, and snippets.

@jbro-io
Forked from 5eleven/Main.Sublime-menu file
Created September 14, 2013 06:07
Show Gist options
  • Save jbro-io/6559237 to your computer and use it in GitHub Desktop.
Save jbro-io/6559237 to your computer and use it in GitHub Desktop.
// "Cols" and "Rows" specify the coordinates in x and y.
// Cells create cells by indexing the rows and cols array in the order [startx, starty, endx, endy].
// Edit your Main.Sublime-menu file
// Mac: /Users/yourMacName/Library/Application Support/Sublime Text 2/Packages/Default
// PC: C:\Users\yourPCName\AppData\Roaming\Sublime Text 2\Packages\Default
// Example Below:
{
"caption": "Grid: 6",
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 0.66, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1],
[0, 1, 1, 2], [1, 1, 2, 2], [2, 1, 3, 2]
]
}
},
{
"caption": "Grid: 8",
"command": "set_layout",
"args":
{
"cols": [0.0, 0.25, 0.50, 0.75, 1.00],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1],
[0, 1, 1, 2], [1, 1, 2, 2], [2, 1, 3, 2], [3, 1, 4, 2]
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment