sublime-csscomb icon indicating copy to clipboard operation
sublime-csscomb copied to clipboard

Restrict the default key binding to when a CSS syntax is active

Open TrevorBurnham opened this issue 11 years ago • 0 comments
trafficstars

This PR is intended as a complement to https://github.com/csscomb/sublime-csscomb/pull/32, which I think is a very solid change.

Currently, the CSScomb command is a no-op unless an appropriate syntax is detected. This PR makes the key binding do the same syntax-checking that the CSScomb command does in #32. This prevents the command from interfering with other plugins that may use the same keyboard shortcut in other contexts. For example, I use SublimeGit, which uses Ctrl+Shift+C for its "Git Commit Amend" command, but only in its SublimeGit Status context.

TrevorBurnham avatar Aug 23 '14 20:08 TrevorBurnham