Page 1 of 1

Highlight other instances of selected text

Posted: 03.10.2025 19:52
by u202-10-03
Hi,

Is there a plugin, or setting I can enable, so that for e.g. this sample text:

Code: Select all

Saved session: "default__linux.cuda-session", 3 file(s), by timer at 20:43:27
Saved session: "default__linux.cuda-session", 3 file(s), by timer at 20:44:07
Saved session: "default__linux.cuda-session", 3 file(s), by timer at 20:44:47
Saved session: "default__linux.cuda-session", 3 file(s), by timer at 20:45:27
Saved session: "default__linux.cuda-session", 3 file(s), by timer at 20:46:07
If I were to double-click on the word "session", on the first line, then all other instances of that same word in the file would be highlighted?

This is a feature I've seen a lot in other applications like Notepad++ and SublimeText and I wondered if there is anything similar in CudaText?

I have searched for similar on this forum but nothing was returned due to the words being too common.

Thanks

Re: Highlight other instances of selected text

Posted: 04.10.2025 06:57
by katwalk

Re: Highlight other instances of selected text

Posted: 04.10.2025 07:31
by main Alexey
and proper name of the plugin is written in the 'install.inf' file there. to enter it in AddonsManager.

Re: Highlight other instances of selected text

Posted: 06.10.2025 09:26
by mix-7
How can this be used?
For what purposes?

Re: Highlight other instances of selected text

Posted: 06.10.2025 09:29
by main Alexey
@mix-7,
in IDE (Lazarus) it is useful (highlight occurences). I select an ID in the middle of a function, and IDE highlightes all places of this ID. so I can see do I need many changes if I change the ID.

Re: Highlight other instances of selected text

Posted: 06.10.2025 10:02
by mix-7
Thank you!
Very useful function!
I will also think how to use it for my notes.

Re: Highlight other instances of selected text

Posted: 06.10.2025 10:08
by mix-7
@main Alexey,

> highlightes all places of this ID

Does this Highlight Occurrences plugin highlight all places in the entire tab or only in the visible section?

Re: Highlight other instances of selected text

Posted: 06.10.2025 10:12
by main Alexey
It is optional. See the configuration-dialog of that plugin. It has option 'visible_fallback', it's text is:

>>When text is over max_lines - fallback to highlighting only in visible text