Custom layouts, Sublime text 2

This was very helpful for visualizing what points the coordinates are referring to: http://www.sublimetext.com/forum/viewtopic.php?f=6&t=7284&start=0&hilit=set+layout


Assuming these are just coordinates with 0,0 at the upper left, something like this should work:

[0, 0, 1, 1],
[1, 0, 2, 1],
[0, 1, 2, 2]


Edit: Just tested, and it does.

Create the file Main.sublime-menu in your Packages > User folder (best to leave the default menu alone) and put the following code in it:

[{
    "id": "view",
    "children": [{
        "id": "layout",
        "children": [{
             "command": "set_layout",
             "caption" : "Custom: 3 Pane",
             "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]
                ]
            }
        }]
    }]
}]

You will see Custom: 3 Pane in your layout options. No need to restart Sublime Text.

For anyone interested, here is a gist containing this layout as well as a flipped version.