ryu1kn / vscode-text-marker

Visual Studio Code Extension. Select text in your code and mark all matches. The marking colour is configurable
https://marketplace.visualstudio.com/items?itemName=ryu1kn.text-marker
MIT License
87 stars 17 forks source link

Recursive colors needed #42

Open gjuoun opened 4 years ago

gjuoun commented 4 years ago

I like this extension!

I have many highlights usually when I have more than 20 highlights, the new highlight colors are all grey.

Is it possible using recursive colors instead of grey(the default color) ?

Thanks.

ryu1kn commented 4 years ago

Thanks @gjuoun , I wonder if you want to overwrite textmarker.highlightColors with more colours. This way, you'll have as many colours as you want :wink:

gjuoun commented 4 years ago

Thanks @ryu1kn . Yes, I can do that, but I'm still run out of colors.

If there is an option to automatically choose a random color from textmarker.highlightColors, it would be perfect!

Because I really have many highlights, I believe others would have, too!

ryu1kn commented 4 years ago

Thanks @gjuoun , I'm curious how many highlights do you sometimes have? Do you want to share how you're using text marker?

Depending on that, we might want to introduce a mechanism to automatically pick a colour distant from already picked colours.

erenseymen commented 3 years ago

Desperately need this feature

Ste1io commented 1 year ago

If the opacity changed ~0.2 each time the color list was exhausted, then looping through the list a couple times would be feasible without producing visually identical highlights from reused colors.