Dev Build 2041 is out now. The main feature is configurable mouse input, via the new *.sublime-mousemap files. With these, you can bind commands against buttons, buttons with modifiers, the scroll wheel, and chorded buttons (e.g., button 1 pressed while button 2 is held down). I’ve added a few to start with, but we’ll see how things go:
-
Hold down the right mouse button (aka button 2), and scroll with the mouse wheel to change files. Opera was the clear inspiration here. This happens on Windows and Linux only, as on OS X the context menu is shown as soon as button 2 is depressed.
-
Buttons 4 and 5 also go to the next / prev file.
-
Hold button 2, and then:
-
Click button 1: select line
-
Double click button 1: select paragraph
-
Triple click button 1: select all
(again, not on OS X)
Anyway, have a play, and let me know what you think. The sublime-mousemap files work a lot like the keymap ones, in that they’re platform specific, and you can override them by putting a file with the same name in your User directory.
The quote pairing changes deserve pointing out too: previously, they’d sometimes insert two quotes when you only want one, e.g., when trying to close a string after deleting the end quote. This shouldn’t be an issue any more.
Keyboard input has also been reworked, although for the most part you won’t notice any difference. Some of the changes:
-
For keys that emit characters, e.g., ‘a’, ‘1’, ‘.’ (but not tab, space, enter), the key name to bind against is the unshifted character on the key, e.g., ‘.’ rather than ‘period’ now. The old names will continue to work, however.
-
On OS X and Linux, all keys are now bindable. For example, with a German keyboard layout, you can bind “Ctrl+ö”, whereas you couldn’t before. Windows continues to work the same way as it did previously, where you have to bind against the virtual key code (e.g., Ctrl+` to trigger on the ö key).
-
On Linux, the key names displayed in the menu are now sensible.
There are a few other misc changes too: window positions are restored in Linux, Command+C etc work in OS X open and save dialogs, and Ctrl+W/Command+W are able to close the window. The full list of changes is on the Dev Build page, as usual.