Highlight all occurrence of selected word (toggle througt settings)

Hello,

I'm using Joplin as my daily driver on notes and todo for now more than a year, exclusively in the standard text editor (no rich text editor, no preview, only "markdown code" like).

One feature we really like on some modern IDE or advanced writing software like N++, is the ability to highlight all occurrences of the word currently selected. For instance, if I double-left-click on the word "foobar", it highlight it (of course), but it also highlight all the other occurrences on the opened note as well!

That's super useful when writing stuff like technical data, command lines, reports, etc.

I suppose it could be toggled ON or OFF through a new settings, OFF by default of course.

I did search for this feature request, but I didn't find it exactly: Search results for '#features highlight same word' - Joplin Forum

What do you think? :wink:

Cheers,

Whilst I subscribe to the fact the Markdown is code, I think that that is possibly getting a bit too "IDE"-y than a note taking app should need.

For when I want do do that kind of work with a note I just open it in an actual IDE/text editor with lofty aspirations (specifically atom).

Hi @Daeraxa , thanks for your reply.
I do agree that Joplin is not suppose to be an IDE, sorry I expressed myself badly. As a matter of fact, I did talk about Notepadd++, and it's not an IDE to be faire :smiling_face:
But anyway, as this behaviour would be enabling through a setting, would it be so bad?

N++ belongs to the same class of "text editors with lofty aspirations" that I amended my post to; Atom, Sublime text, VS Code etc - i.e. really are meant for monospaced handling of code including syntax highlighting and lots of tools to handle more hardcore text editing etc.

To be clear, I don't think it is a bad idea, I can see the use for it (hence why I open notes in Atom when I want to use more powerful features available in a proper text editor) but I just don't really see it as necessary in a notes app.

Having a quick look through other note apps, this doesn't seem to be a common feature (at least not by default).

I think it would be entirely possible via a plugin as I assume it is handled natively in CM for other areas.

1 Like

Huh, turns out the basic code was already sitting in the codebase (app-cli/tests) just not being used.
I adapted it into a plugin. I would need to play with it a bit more but could potentially release it if people are interested. (ignore that it is red, it was the first non black or white hex code that I could remember).

image

5 Likes

Neat, that look promising! Let me know if you need help to test it on a longer run.

I've published a plugin for it:

Its still a very basic version so you might need to manually set the CSS to make it suit whatever theme you are using. The readme/topic explains more.

4 Likes

Thank you @Daeraxa. That will suit my needs!
I will give feedback in the other thread.
Cheers!