One way to figure out the commands would be to use View Package File
from the command palette to view Default/Main.sublime-menu
, which is the resource that defines the default main menu in Sublime. In there you can find the appropriate entry to see what command is being executed, which is these two:
{ "command": "new_window_for_project", "caption": "New Workspace for Project" },
{ "command": "save_workspace_as", "caption": "Save Workspace As…", "mnemonic": "A" },
You can also open the Sublime console with View > Show Console
or the key binding (it’s visible in the menu) and enter the command sublime.log_commands(True)
. This logging will remain active until you run the command again with False
or restart Sublime.
When logging is enabled, any command you execute will be logged in the console (except from the command palette due to a current bug). So you could press the associated key or pick the menu command (depending on the situation) and see in the console what command was executed and any arguments it might need.
There is a list of commands in the unofficial documentation as well, although I don’t think these commands are currently in it.