Page 1 of 4

Mini/MicroMap

Posted: 18.08.2024 14:56
by sl23
I've been using the MicroMap for a while now. It's fantastic!.
I just tried the MiniMap and love the ToolTips idea. Is there any chance we could get this added to the MicroMap please?

Also, how do we change the colours for items shown in the MicroMap bar?
Specifically:
1. Items searched for using Find/Replace at the bottom of the window.
2. Caret location(s)

I can't find anything relating to these two things.
If they exist, but are connected to the colouring of other UI items, could we please have separate colour options for these two things?

Thanks Alexey.
This app just keeps getting better and better! :D

Re: Mini/MicroMap

Posted: 18.08.2024 16:35
by main Alexey
Micromap in other editors (VSCode, Sublime) don't have tooltips like MINImap. so I don't want to implement it.
also, with "micromap_on_scrollbar":true, it won't be good or won't work.
>how do we change the colours for items shown in the MicroMap bar?
in the dialog opened by "Options / themes / settings-theme-UI" we have 3-4 colors for micromap.
are they enough?

>1. Items searched for using Find/Replace at the bottom of the window.
I don't understand what is it, be more specific.
>2. Caret location(s)
micromap is not supposed to show caret locations. only multi-selections.
micromap color for selections can be changed (it equals to color of text selection backgnd, AFAIR).

Re: Mini/MicroMap

Posted: 18.08.2024 18:30
by sl23
Ah ok, I find the MiniMap too large and would really like the Tooltip to be on MicroMap. If MiniMap could replace Scrollbar, maybe better then.

Yes there are 4 items for MicroMap:
1. Background -> Good - Colour=30,30,30
2. Current View Area -> Also good - Colour=140,140,140
3. Word Occurrences -> Again good - Colour=128,128,255
4. Mispelled Words -> Does not show at all - Colour=246,98,74

I would like to edit two other colours that are appearing. I assume it's two and that one is the current caret position?
I have a dark theme where all background colours are set to 30,30,30. The Current View Area is set to a light grey at 140,140,140.
Word occurrences are a pale blue 128,128,255. All good so far.

But:
1. The Mispelled words doesn't show up.
2. The highlighted words that are used in the find search bar show up as a dark yellow or olive colour and are very hard to see.
3. There is a greyish? colour shown, I don't know what it is. I thought it was the caret, but I can't seem to locate it now.

Re: Mini/MicroMap

Posted: 18.08.2024 18:36
by main Alexey
>Mispelled words doesn't show up.
they will, after you install Spell_Checker plugin and run its check on a text file.
>The highlighted words that are used in the find search bar show up as a dark yellow or olive colour and are very hard to see.
how do you search?
a. 'select all' feature of Find-dlg? then these words have multi-selections color. then adjust this color in the theme.
or b. 'find next' of Find-dlg and next words are highlighted by e.g. Highlight_Occurrences plugin?
or other?
>There is a greyish? colour shown, I don't know what it is. I thought it was the caret, but I can't seem to locate it now.
you need to find what it is. maybe multi-selections?
or bookmarks (shown on micromap too)?

Re: Mini/MicroMap

Posted: 18.08.2024 19:02
by main Alexey
you can try to find what the 'greyish color marks' are. change all greyish color-theme items to e.g. red/green and see when marks change.

Re: Mini/MicroMap

Posted: 18.08.2024 19:23
by sl23
Ah ok, thought the spell-checker was installed!
I search using the Find/Replace bar at the bottom of the main window.
I can't seem to find the colour of the highlight anywhere, I have that plugin, but I see nothing that colour in the UI them window for settings all the colours.

I tend not to use either of those. I'll keep an eye on it and let you know if I find out what it was. ;)
I have too many grey themed items to do that, otherwise I would.

Oh, I came across a small crash bug. It was repeatable for me. Fold several, most items? on a fair size file, around 800 lines should do. Then use find replace to change items in that file whilst those sections are folded. It crashes CT every time for me.

If you have trouble with that let me know and I'll upload the file and my settings if necessary.
Thanks

Re: Mini/MicroMap

Posted: 18.08.2024 19:32
by main Alexey
pls create the topic for crash. I cannot repeat it yet:
- I made 50 lines python file
- i folded many blocks
- i made mass replace in folded blocks -> all ok here. blocks were unfolded.

make a topic. post there your 800 lines file, if you can. tell me what you folded, and what you search/replace.

if the file is secret, replace first with RegEx: '\w' -> 'a'

Re: Mini/MicroMap

Posted: 18.08.2024 19:39
by main Alexey
about micromap items: try to swtich to colorful ui-theme. it may be more visible what theme-color is equal to marks-color?
post some screenshot too. on external hosting.

Re: Mini/MicroMap

Posted: 18.08.2024 19:42
by sl23
Ok will create new thread for crash. It maybe the lexer or filetype.

Anyway, Um, I'm concerned I'll lose my theme settings though. I'll back up the whole CT folder just in case. Then try as you suggest.

Re: Mini/MicroMap

Posted: 18.08.2024 19:44
by main Alexey
(also post your user.json in that topic.)