I have "Super+Alt+left" to set the layout so that the left pane is wider (66%) of the screen:

I would also like the same key stroke to focus on the left tab so that I can start typing immediately without a click or Ctrl + 0.
Here's what I tried. I added a new plugin:
import sublime, sublime_plugin
class ExpandAndFocusLeftPane(sublime_plugin.TextCommand):
def run(self, edit):
self.view.run_command("focus_group", "args": {"group": 0})
self.view.run_command("set_layout", "args": {
"cols": [0.0, 0.66, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
})
And I bound "Super+Alt+Left" to this new command.
{
"keys": ["super+alt+left"],
"command": "expand_and_focus_left_pane",
"args":
{
"cols": [0.0, 0.66, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
But it still does not do what i want it to do. Any ideas ?
Default (OSX).sublime-keymapfiles (both Default and User) to make sure you haven't assigned this combo anywhere else.