acarabott / supercollider-sublime

Sublime Text 3 Package for SuperCollider
MIT License
17 stars 4 forks source link

How to disable all shortcuts? #5

Closed nhthn closed 7 years ago

nhthn commented 7 years ago

I just want to use this for syntax highlighting and don't need any of the default key bindings. Any way I can disable them? ctrl+s does not work for saving anymore.

acarabott commented 7 years ago

You can override all shortcuts by creating a "User (Windows).sublime-keymap" file and overriding the defaults.

Lazily I had just copied the Mac shortcuts to Windows and Linux without thinking about it!

Would you be interested in contributing a set of Windows shortcuts? I, and others would really appreciate it!

On 24 Jul 2016, 11:18 +0900, Nathan Ho notifications@github.com, wrote:

I just want to use this for syntax highlighting and don't need any of the default key bindings. Any way I can disable them? ctrl+s does not work for saving anymore.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/acarabott/supercollider-sublime/issues/5), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAECVLhHFQkIeeE9B7qvhlZp6lc7g_yVks5qYst7gaJpZM4JTfHb).

nhthn commented 7 years ago

I don't want to change them to other shortcuts -- I just want to remove them completely since I don't need that functionality. All four of the settings files under Package Settings > SuperCollider are blank so I'm not sure what I specifically need to add to get rid of them.

acarabott commented 7 years ago

You need to override them. Copy all of the settings from the "Default..." file to your User file and set the short cut to an empty string ""

On 24 Jul 2016, 12:21 +0900, Nathan Ho notifications@github.com, wrote:

I don't want to change them to other shortcuts -- I just want to remove them completely since I don't need that functionality. All four of the settings files under Package Settings > SuperCollider are blank so I'm not sure what I specifically need to add to get rid of them.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub (https://github.com/acarabott/supercollider-sublime/issues/5#issuecomment-234754764), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAECVGSMKOlE7FH-00UcSGVLudociojnks5qYtpTgaJpZM4JTfHb).

nhthn commented 7 years ago

Both "Settings - Default" and "Key Bindings - Default" are blank, so I copied from GitHub. When I tried to save "Key Bindings - User", I received a "file not found" error because I was attempting to save in a nonexistent directory ~/.config/sublime-text-3/Packages/supercollider-sublime/. Even after creating that directory, saving, and restarting Sublime, I see no change in behavior.

acarabott commented 7 years ago

I'm getting on a plane, so I suggest having a look at http://docs.sublimetext.info/en/latest/customization/key_bindings.html until I am back online in a week. Thanks for your patience

On 24 Jul 2016, 13:06 +0900, Nathan Ho notifications@github.com, wrote:

Both "Settings - Default" and "Key Bindings - Default" are blank, so I copied from GitHub. When I tried to save "Key Bindings - User", I received a "file not found" error because I was attempting to save in a nonexistent directory ~/.config/sublime-text-3/Packages/supercollider-sublime/. Even after creating that directory, saving, and restarting Sublime, I see no change in behavior.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub (https://github.com/acarabott/supercollider-sublime/issues/5#issuecomment-234756209), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAECVMeoWpbW5901c5yy6vYM4xPTTlojks5qYuS8gaJpZM4JTfHb).

nhthn commented 7 years ago

No worries. Have a safe trip!

acarabott commented 7 years ago

I've just updated the package via package control, with all key bindings disabled for windows/linux.

it may take an hour or so to become available. You should get a message when you re-open sublime text and the package updates.

You can also unbind any key command like so (in your global key bindings file):

[ { "keys": ["ctrl+t"], "command": "unbound" } ]

The full list of key commands I had used is:

nhthn commented 7 years ago

Thanks heaps!

acarabott commented 7 years ago

If you do end up binding keys, let me know what they are! Some (like "super+." to stop all sounds) are indispensable !