Dev Build 2043 is out now. Dev Builds are in-progress versions of Sublime Text 2 - use them if you want the latest features, but keep in mind that you will encounter more bugs.
I’ve been working on menus for this build, you can see this in a few areas:
- Right click on a directory in the side bar, and you can create a new file at that location
- Right click some files in the side bar, and you can delete them (files in folders only, not open files)
- Right click with two files selected in the side bar, and you can diff them
I’m planning to expand the file manipulation related commands on the sidebar in the future, to allow new directories to be created, and files to be renamed. I’m not intending on writing a finder/explorer/nautilus replacement, however.
Individual packages may now extend menus, too. You can see a minimalist example of this in the new Diff packages, which extends Context.sublime-menu and Side Bar.sublime-menu. It’s also possible to extend the main menu, although it’s a little bit tricker, as you need to make sure your menu items go in the right spot, and not just at the end. An example Main.sublime-menu is:
{
"id": "tools",
"children":
{
"id": "packages",
"children":
{
"caption": "Talk",
"children":
{ "caption": "Hello, World!", "command": "echo" }
]
}
]
}
]
}
]
This adds a new sub-folder to Tools/Packages called “Talk”, with a single “Hello, World!” menu item inside.
Snippets have also received some attention: punctuation based tab triggers work again, and the snippet fields are much more proactive about cancelling themselves than they were before.
Finally, inspired by theblacklion’s diff plugin, there’s now an entry on the context menu to diff the current buffer against the on disk version, showing you the unsaved changes.
The full list of changes is on the Dev Build page, as usual.