-
Notifications
You must be signed in to change notification settings - Fork 275
Add toggle for keymap activation in package settings #610
Conversation
Can you paste in a screenshot for this? |
Absolutely, added screenshot. |
Ok, the dependent atom/atom PR is merged, so we can merge this once Atom 1.0.4 has shipped. This looks good to me UI-wise, though I'd probably tweak the description line ( @tmunro Could you add a spec for this new button? You could just assert that the package's name is added/removed from the Thanks! |
Fixed the broken specs and added that new one. One thing I don't quite understand is why calling my new |
@div class: 'checkbox', => | ||
@label for: 'toggleKeybindings', => | ||
@input id: 'toggleKeybindings', type: 'checkbox', outlet: 'keybindingToggle' | ||
@div class: 'setting-title', 'Use Keybindings?' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about dropping the ?
here? I think we tend to avoid punctuation when rendering setting names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Removed the ? from the setting name and changed the description to help explain why you might want to use the setting. |
OK @tmunro, just a heads up that I've merged atom/atom#8173. Sorry for the delay on that one; I was out on vacation. |
I think this is ready to merge, now that Atom 1.0.8 is out it shouldn't break anything. |
Not sure I love the the title of the setting (Enable), but someone can always change that later. I'm gonna merge and 🚢 this. Thanks so much for this @tmunro! ❤️ 💚 💛 |
Add toggle for keymap activation in package settings
Adds UI support for toggling keymap activation on a package-level. See atom/atom#8130 for more details.