thomaslindstrom / color-picker

A color picker for the Atom Editor. Right click a color and select color picker to open it.
MIT License
246 stars 50 forks source link

Hotkey(s) broken when using atom-ide-ui #231

Closed matthew-ia closed 6 years ago

matthew-ia commented 7 years ago

So atom-ide-ui has some new hotkeys stock Atom does not, such as Format Code (cmd-shift-c), which is the default for color-picker. However, even when I change the color-picker hotkey to any of the other hotkey options, it doesn't work (even after a restart of Atom).

Atom version: 1.22.1 macOS

octoquad commented 7 years ago

Also affects Atom for Linux 1.21.1.

Princeraul commented 6 years ago

me to

thomaslindstrom commented 6 years ago

Hi! You can change the key binding within the Color Picker settings. Go to SettingsColor Picker SettingsTrigger key.

Either that, or disable the atom-ide-ui Format Code shortcut through its settings.

matthew-ia commented 6 years ago

Folks who were experiencing this issue:

I was rebinding via SettingsColor Picker SettingsTrigger key, but it was still not working. I neglected to check if other packages had additional hotkeys that were conflicting with color-picker's alternate options.

If you want to override the atom-ide-ui hotkey go to SettingsKeybindings and at the top there's a link to open your keymap file. Then append this below the comments in keymap.cson:

'.platform-darwin atom-workspace atom-text-editor:not(.mini)':
  'shift-cmd-C': 'unset!'
  '<your-new-hotkey>': 'code-format:format-code'