Closed pintassilgo closed 1 month ago
Can you test your fix, and make the patch?
I am working on it, don't do it
It works, but I'm not Python dev so improvements should be done, like caching item_oth out of the function to prevent having to process theme.get(opt.THEME_OTHER)
every match.
Also, I couldn't make underline to work.
I played with "Lexer style" dialog and it's working: bold, italic, strikeout, borders in the 4 directions separately... but checking "underline" doesn't work.
I made fix in the plugin's git. please test from git. https://github.com/CudaText-addons/cuda_hilite_occurrences/
Underline-font style from theme props dialog cannot be used. Py API don't allow it. and underliying atsynedit API also does not.
Posted more changes to git.
Thanks.
Underline-font style from theme props dialog cannot be used. Py API don't allow it. and underliying atsynedit API also does not.
So, after all, underline is not the same as border bottom, right?
it is not the same maybe, but the look of bottom-line is the same, so to emulate underline, just set the bottom-line.
HiOccur has options
theme_item_current
andtheme_item_other
to set hilite style. But current code reusesborder_bottom
for all the four directions and ignores bold/italic/strikeout. It should follow the same style entirely.For example, with current code it's impossible if I want to set hilite to be only a underscore (border bottom, without border in other directions).
Something like this, maybe: