Sublime-Colorcoder icon indicating copy to clipboard operation
Sublime-Colorcoder copied to clipboard

conflicts with color highlighter

Open rocketinventor opened this issue 10 years ago • 4 comments

This package conflicts with color highlighter. I have already submitted an issue on its' Github page. If there is any sort of possible workaround then, let's do it, otherwise, let's make sure to add to the readme that they are incompatible. For more details, see the commit on that page.

rocketinventor avatar Apr 20 '15 21:04 rocketinventor

@rocketinventor: what package are you talking about? what is the URL of this issue?

dungsaga avatar May 14 '15 03:05 dungsaga

@dungsaga the url of the issue ishttps://github.com/Monnoroch/ColorHighlighter/issues/218

rocketinventor avatar May 14 '15 04:05 rocketinventor

There will be conflicts when multiple plugins modify the color scheme. A workaround is to allow only 1 plugin to modify that. For example: in Colorcoder settings, you can set "auto_apply_on_scheme_change": false

dungsaga avatar May 14 '15 09:05 dungsaga

@dungsaga A real workaround could be to add "auto_apply_on_scheme_change": false to one of the plugin's settings and then, when the other plugin is finished changing the color scheme, it would then tell the disabled plug-in to run exactly one time.

Basically, if both plugins are installed, it should be possible to only use one event listener for user color scheme change and on edit events. When this listener is activated the two plugins color scheme modifiers will be ran once and, sequentially.

The coordination could also be done by a separate plugin. When installed, it would make sure any automatic color scheme changers were set to manual only and then would create the listener and run the plugins in alphabetic or user chosen order. This of course would only work given that both plugins have an external function that will run its color scheme modifier.

At the very least, for the time being, some color scheme name logic should be added. If a color scheme has a name like blue x'd y'd x'd y'd x'd y'd x'd y'd x'd then one or both plugins should disable themselves and alert the user that there is conflict.

rocketinventor avatar May 14 '15 19:05 rocketinventor