Tuesday, April 7, 2015

Flame: Multi-line select using Shift+Alt+Up/Down does not work in SublimeText 3 @Ubuntu 14.04

Tremendously frustrating when one of the most useful shortcuts of your IDE stops working because the OS is more hungry for the hotkey. Multi select, which is <Ctrl>+<Alt>+Up/Down in windows anyway doesn't work in Ubuntu because the hotkey is used to switch workspaces. Sublime has recognized it and moved the multi selection hot key to <Shift>+<Alt>+Up/Down.

Unfortunately, I could not get it to work. Some process is gobbling up the keystrokes. Oh, yes.. I did try all the suggestions including unity-tweak-tool, compiz-configuration-manager, language bar settings, default keyboard mappings... but to no avail.

Finally, I had to shift the Sublime configuration to use <Super>+<Shift>+Up/Down instead. !!flame!!

You can do this by defining user specific key bindings in Preferences:

 

{ "keys": ["super+shift+up"], "command": "select_lines", "args": {"forward": false} },

{ "keys": ["super+shift+down"], "command": "select_lines", "args": {"forward": true} },

 

No comments: