Search Highlight

Ask how to do things or if a certain feature is available in the program.
Post Reply
crtrubshaw
Posts: 359
Joined: 06 Jun 2012 11:08

Search Highlight

Post by crtrubshaw »

After I run a search and close the search box, all the found occurrences remain highlighted - I don't think it used to do this. Is there a setting to turn off this behaviour, or some key to press to remove the highlighting (escape)?

Thank you.
User avatar
pjj
Posts: 2252
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Search Highlight

Post by pjj »

RMC > Highlight > Unhighlight all

I think they *should* remain highlighted if you set "Highlight all item found".
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
crtrubshaw
Posts: 359
Joined: 06 Jun 2012 11:08

Re: Search Highlight

Post by crtrubshaw »

@pjj - thanks for the tip on "Unhiglight All".

I'm using the "highlight all items found" option.

If I do a "Find Next", it selects the first occurrence and highlights all occurrences in yellow, this is the behaviour I'm used to (including clearing the highlight).

If I do "Find All", it highlights eveything in green but does not select any occurrence, I've found the only way to clear the highlight is to then "Find Next", and the selection changes as previously described.

Maybe the issue is that the first occurrence is not being selected, is that intended? If I do find/replace, it's a similar thing, I hit replace and the first occurrence gets selected, but not replaced, I have to hit replace again to actually replace it.
User avatar
pjj
Posts: 2252
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Search Highlight

Post by pjj »

I have another (?) problem with Find next.

If I select a string and press F3, next occurrences are being found. Good. I can then select another string and now its occurrences are being found. Again, it's as expected. (If I check "Case sensitive" in the Find window, my findings are now case sensitive. This may be surprising -- because another switches there don't work this way, e.g. "Backward" or "Skip comments" are ignored -- but I like this behavior.)

If now I check "Regular expressions", select another string and press F3, its occurrences are not being found, but instead occurrences of the previously sought string.

Switching "Regular expressions" off brings back the previous (default) mode.

Obviously, setting "Regular expressions" on should not have impact on Find next behavior.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
Post Reply