Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HiOccur] Use a different color in micromap for the word under caret when caret_allow = true #5452

Open
pintassilgo opened this issue Apr 2, 2024 · 4 comments

Comments

@pintassilgo
Copy link

pintassilgo commented Apr 2, 2024

Currently, we can set a special background color for the word under the caret with the option theme_item_current, with that one having a different color from other matches.

The same should apply for the marks in micromap. Currently, the mark for the word under the caret has the same color as the others matches.

Findbar already supports this because when you use findbar the word is selected, then the selected word is marked at the 3rd column (light blue in default theme), so you know where the caret is when you look at scrollbar/micromap.

@pintassilgo
Copy link
Author

I don't know where in HiOccur code controls the color of micromap mark. For me it's a tone of blue, but I don't know where this is written in HiOccur code so that I can try to change for the mark related to current occurrence (the one under the caret).

@Alexey-T
Copy link
Owner

Alexey-T commented Apr 2, 2024

HiOccur adds the micromap mark with given TAG. then special TAG value is handled specially in Cud.

const
  cTagOccurrences = 101; //see plugin 'Highlight Occurrences'
  cTagSpellChecker = 105; //see plugin 'Spell Checker' 

fix must be

  • HiOccur plugin: add special Tag value for 'current mark'
  • Cud: use this new Tag and paint specially

I dont want to add theme-color. maybe suggest how to mix existing colors to get 'new color of mark'.

@Alexey-T
Copy link
Owner

Alexey-T commented Apr 2, 2024

Let's delay the work until the next Cud release. after next release 1.212.0 maybe we will work on it.

@Alexey-T
Copy link
Owner

Alexey-T commented Apr 2, 2024

this can be made specially only in Cud. app can detect the mark (with special tag) under the caret. and colorize it diferrently. it's the better way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants