sindresorhus / atom-fixmyjs

[DEPRECATED] Automagically fix JSHint lint warnings
https://atom.io/packages/fixmyjs
MIT License
86 stars 5 forks source link

Shortcut Desired #2

Closed StevenACoffman closed 10 years ago

StevenACoffman commented 10 years ago

Thanks very much for this package. Because I'm lazy, I'd really like a keyboard shortcut, instead of having to use the Command Palette to type 'FixMyJS'.

sindresorhus commented 10 years ago

You can assign shortcut key yourself in your keymap.cson. I don't want to forcefully predefine one for you.

StevenACoffman commented 10 years ago

Ok, thanks. Then for reference for others, how would I define that? I can open my keymap settings and do something like this:

'.workspace .editor':
  'cmd-shift-l': 'command-palette:FixMyJS'

The keybinding resolver says it is executing the command-palette:FixMyJS, but then it doesn't appear to actually do anything. I'm not sure I've got the syntax correct. Any pointers would be very appreciated.

sindresorhus commented 10 years ago

https://atom.io/docs/v0.134.0/advanced/keymaps

StevenACoffman commented 10 years ago

Thanks very much. I'm not sure if you want to add that to the documentation, but for reference for anyone else who reads this, this works:

'.workspace .editor':
  'cmd-shift-k': 'FixMyJS'