Typo in docs
I think I found a typo in the official documentation: https://www.sublimetext.com/docs/3/menus.html.
In the example of adding a new layout to the View Layout menu, it says to create an entry such as:
[
{
"id": "layout",
"children":
[
{
"caption": "Grid: 9",
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 0.66, 1.0],
"rows": [0.0, 0.33, 0.66, 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],
[0, 2, 1, 3], [1, 2, 2, 3], [2, 2, 3, 3]
]
}
},
]
}
]
However, I copy and pasted the above code into Main.sublime-menu
, but it didn’t work. Therefore, I consider it a typo.
What do works is the following:
[
{
"id": "view",
"children":
[
{
"id": "layout",
"children":
[
{
"caption": "Grid: 9",
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 0.66, 1.0],
"rows": [0.0, 0.33, 0.66, 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],
[0, 2, 1, 3], [1, 2, 2, 3], [2, 2, 3, 3]
]
}
},
]
}
]
}
]