AtomMaterialUI / color-highlighter

JetBrains plugin to preview colors directly from within the code.
MIT License
42 stars 25 forks source link

Interact with uuid4 #11

Closed Alcolo47 closed 3 years ago

Alcolo47 commented 3 years ago

Today your plugin interact t with uuid4 "3dbc2fbb-676d-4d10-ae09-4d9c7c960560". I think it is not the goal but I like and use it.

But: The color is coming from The 6 first characters (of course you are looking for color codes).

The requested feature: Generate a color from an uuid4 string considering the entire string (by computing a hash of the string for sample)

In more general way, The plugin would interact with any pattern that match a custom regex, and a the color will be generated from hash computation of the matched string.

AurelBouchard commented 3 years ago

I have this kind of behavior too : one of my values is "dead" the pattern "xxxx" matches and it is lightened with teal blue !! so weird that don't carry any sense, more over later in the code "dead" is associated to dark red components ...

It could be nice to be able to modify the regex (one or more)