public
Last active

Sublime Text 2 Layout: Grid: 6

  • Download Gist
Main.Sublime-menu file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// "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]
]
}
}

// grid 8
{
"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]
]
}
}

Where do I put this to make it work?

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.