krasa / GrepConsole

IntelliJ plugin - https://plugins.jetbrains.com/plugin/7125
Apache License 2.0
436 stars 57 forks source link

Add Color List for the "Toggle Highlight of All Occurrences" #185

Open alvolturbo opened 3 years ago

alvolturbo commented 3 years ago

Add Color List Is is it possible to add preferred Colors List to make Toggle Highlight according to it? If there is not enough item in the list, plugin could be used with random colors as it is for now. Removing any color highlight could add item to the preferred list again.

krasa commented 3 years ago

Try https://plugins.jetbrains.com/plugin/9511-multihighlight - it did not support plaintext when I made this feature.

alvolturbo commented 3 years ago

thanks i know this plugin but it highlights only full word, not exactly that pattern i have selected (but it has cyclic color switch what is good)

alvolturbo commented 3 years ago

is it possible to make live highlights for all instances of that pattern i have selected? changing selection--changing other places with that highlighting

krasa commented 3 years ago

https://plugins.jetbrains.com/plugin/201-browsewordatcaret does that but only for whole words, you could probabaly change that and if you want to edit all highlighted places at once, then use Main Menu | Edit | Find | Select All Occurrences

alvolturbo commented 3 years ago

this is not what i mean... any pattern with several words and any characters in that pattern very useful feature to compare code parts "on fly" (when highlight becomes not active) but thanks in any case

krasa commented 3 years ago

Sorry, I have no idea what you mean.

alvolturbo commented 3 years ago

like this https://user-images.githubusercontent.com/9571591/107694395-fe86e380-6cb7-11eb-9f42-6587dc914628.mp4

krasa commented 3 years ago

yes, that's what I meant, this could do it https://github.com/minman/browse-word-at-caret/compare/master...krasa:custom?expand=1 q

alvolturbo commented 3 years ago

great! good feature can you advise of how to install your "custom brach update" to the current plugin "browse-word-at-caret"?

krasa commented 3 years ago

https://github.com/krasa/browse-word-at-caret/releases/download/3.0.5-custom/browse-word-at-caret.jar You might want to get into plugin development. I commited some project files, so the the process should be similar to this: https://github.com/krasa/StringManipulation#how-to-build-and-run

alvolturbo commented 3 years ago

thanks a lot for you tutor