jarod2d / sublime_valign

Vertical alignment plugin for Sublime Text 2 and 3
91 stars 7 forks source link

Inability to press default shortcut (⌘\) due to non-US keyboard layout #4

Closed hced closed 12 years ago

hced commented 12 years ago

Here's possibly a dumb newbie question, but I'm using a Swedish keyboard layout and because of that, I'm unable to press ⌘\. I'm installing VAlign via Package Control.

Q: How and where do I change this shortcut? If I locate the Default (OSX).sublime-keymap file and edit it, will it stay the same after Package Control updates VAlign?

Request: As a small request, I'm thinking it would be nice to have a command assigned for this plugin as well, as invoked via ⌘-Shift-P that says something like "Align vertically" or similar.

jarod2d commented 12 years ago

Ah, sorry the default shortcut doesn't work for you. The keybinds files inside the plugin will most likely get overwritten when the package is updated. Rather than editing those, you can add a shortcut to your own user-defined shortcuts. Open up Sublime Text > Preferences > Key Bindings - User and you can your own custom keybind like this: { "keys": ["super+shift+a"], "command": "valign" }.

Adding a command to the command palette is a good idea -- I'll add that the next time I update the plugin.

hced commented 12 years ago

Great, that settles it! Thanks.