Show THIS SAMPLE in pattern

Isn’t that what auto-capture instrument does?

Select note event in pattern editor, now press left shift+ctrl & enter at the same time and the correct instrument slot wil be selected.

edit; ah I see, you want the matrix blocks to light up, that could be useful.

I often use the count note occurrences tool from Joule to check if I already used a sample or not ( https://forum.renoise.com/t/done-tag-sampled-instruments-that-arent-used-yet/37439 ), maybe code of this tool can be used to not only to collect info on how many times, but also in which track & pattern a sound is used?

that would be amazing - the visual clue could be in the form of track / pattern data