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

Add global keyboard shortcut #4

Closed
drublic opened this issue Nov 1, 2012 · 7 comments
Closed

Add global keyboard shortcut #4

drublic opened this issue Nov 1, 2012 · 7 comments

Comments

@drublic
Copy link

drublic commented Nov 1, 2012

It would be awesome if something like ctrl+shift+j could be a global shortcut to run the command.
I couldn't figure out how to set the shortcut in the user key-bindings and I think it would improve the workflow immensely.

@juanfal
Copy link

juanfal commented Nov 2, 2012

Please, do not add any shortcut. I understand you are a novice ST2 user, but you'll realize in a short time that the mess it makes to have each Package adding its own random shortcut can be a real headache. Use the package for a while until you see it suits you, and then Goto Preferences->Key Bindings - User and add a keyboard shortcut according to your needs and uses.

@drublic
Copy link
Author

drublic commented Nov 2, 2012

Thanks for your thoughts. Can you help me figure out how to add a user key-binding for jsrun, @juanfal?

@juanfal
Copy link

juanfal commented Nov 2, 2012

Goto Preferences->Key Bindings - User

And in the empty (I suppose you do not have any previous key binding…)

[
    { "keys": ["ctrl+shift+j"], , "command": "js_run" }
]

you can see examples in

Preferences->Key Bindings - Default

@drublic
Copy link
Author

drublic commented Nov 3, 2012

Awesome. Thank you.
Anyway… Packages come with good defaults sometimes. And I think that is ok, as long as you can overwrite them through the Key Bindings - User.

On 02.11.2012, at 23:54, juanfal notifications@github.com wrote:

Goto Preferences->Key Bindings - User

And in the empty (I suppose you do not have any previous key binding…)

[
{ "keys": ["ctrl+shift+j"], , "command": "js_run" }
]
you can see examples in

Preferences->Key Bindings - Default


Reply to this email directly or view it on GitHub.

@juanfal
Copy link

juanfal commented Nov 3, 2012

The problem with that approach, sometimes, is they hide other keyboard commands and that can even be dangerous or unreliable at the best.

TextMate used to have a very clever way to handle it: it allows to have more than one action over one shortcut and when you act doing the shortcut it offers you a small pop-up menu with the meaning of each one to select.

@sindresorhus
Copy link
Owner

I have to agree with @juanfal. Maybe if Sublime had some kind of shortcut conflict system, but atm it only causes confusion.

I'd rather just improve the instruction on how to add the shortcut.

@drublic
Copy link
Author

drublic commented Nov 7, 2012

Ok. A comment about how to set a shortcut would be awesome :)
Thanks!

@drublic drublic closed this as completed Nov 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants