Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default keybindings don't work on OS X Yosemite #28

Open
callumlocke opened this issue Nov 5, 2015 · 4 comments
Open

Default keybindings don't work on OS X Yosemite #28

callumlocke opened this issue Nov 5, 2015 · 4 comments
Labels

Comments

@callumlocke
Copy link

super+F5 is the system-wide shortcut to toggle VoiceOver, an accessibility tool (on Yosemite, at least).

image

There's no way to disable this system-wide shortcut. When I type it in SublimeText3, it doesn't even register with ST3 or InsertDate. It just opens VoiceOver, and that's it.

Also, I don't know if I'm being stupid, but it won't let me edit the default InsertDate keybindings, and there is no "User" file for me to override them with.

But I think the real problem is that these are the defaults at all, since they can't work on OS X.

@FichteFoll FichteFoll added the bug label Nov 5, 2015
@FichteFoll
Copy link
Owner

I see. I don't use OSX which is why I can't test the bindings.
What different bindings do you suggest as default instead? Shift+F5 maybe?

Regarding editing the files, you are not supposed to edit the files directly because they are inside a .sublime-package zip archive. You could use https://packagecontrol.io/packages/PackageResourceViewer to properly override the default files, but in this case it is more approproate to just add custom bindings to your User key bindings file (the global one).

See also http://docs.sublimetext.info/en/latest/extensibility/packages.html#sublime-package-packages.

@callumlocke
Copy link
Author

OK I didn't realise there was a single global user settings file to override all plugins' shortcuts, thanks.

shift+F5 seems to bring up an autocompletion menu. ctrl+F5 seems to be in use (for something weird).

alt+F5 doesn't seem to do anything, so that could be good. I've just added { "keys": ["alt+f5"], "command": "insert_date" } to my global menu, and it works nicely.

I guess there's always a risk you'll clash with another plugin's default keybindings. But I think alt+F5 should be fairly safe.

@chadfrost
Copy link

alt+f5 is already bound to insert_date_prompt -- I looked at several alternatives (e.g. bind to f6, but that's used for spell check...) and I think the best way to solve this, assuming you don't need to toggle VoiceOver, is to turn off the Mac OS shortcut.

System Preferences -> Keyboard -> Shortcuts -> Accessibility, unselect "Turn VoiceOver on or off" and "Show Accessibility Controls".

@archeranimesh
Copy link

thanks @chadfrost the disabling of shortcuts helps, also i tried using this

[
	// Insert datetime using default format text
	  { "keys": ["super+ctrl+d"],
	    "command": "insert_date" }
]

which works, but then I have to change for every other insertDate command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants