Home Download Buy Blog Forum Support

Why next search result stops being highlighted after replace

Why next search result stops being highlighted after replace

Postby kadishmal on Tue Jul 31, 2012 2:38 am

I'm using the latest 2217 build of ST2 for Mac. I really love it and always recommend it to my colleagues and friends. But I have this little annoying problem with search results highlighting.

When I search for a keyword, it correctly finds them all, then highlights the first result with a nice very visible color (#FFEA8C in Monokai color theme). When I keep pressing on the "Find" button to highlight the next keyword occurrence, it correctly highlights with the same #FFEA8C color.

But when I press the "Replace" button, ST2 replaces the text then immediately scrolls to the next occurrence (which is cool) BUT DOES NOT highlight it. Why?????? Actually it does, but with the same color as the background of the ST2, so there almost no visual difference between the normal text and the highlighted text.

How to fix this???

For an example, see this screenshot and try to find where the highlighted text is.

Image
kadishmal
 
Posts: 1
Joined: Tue Jul 31, 2012 2:15 am

Re: Why next search result stops being highlighted after replace

Postby adzenith on Tue Jul 31, 2012 6:01 pm

Looks like during "find" Sublime uses find highlight color, but after a replace it uses the normal selection color. The find widget has focus, though, so the selection color is the even more muted un-focussed version.
Sounds like a bug to me.

In the meantime, you could change your selection color as a workaround... Open up your Monokai color theme and change
Code: Select all
            <key>selection</key>
            <string>#49483E</string>

to e.g.
Code: Select all
            <key>selection</key>
            <string>#FFE792</string>

or whatever.
adzenith
 
Posts: 1204
Joined: Mon Oct 19, 2009 9:12 pm

Re: Why next search result stops being highlighted after replace

Postby GaryWong on Thu Oct 04, 2012 4:49 pm

Has this been confirmed as a bug or that it's slated to be changed?

It's workable for me as I have the 'line number' highlighted when the cursor moves, but I can just barely see the text-to-be replaced.

thx
GaryWong
 
Posts: 1
Joined: Mon Jul 23, 2012 1:56 am

Re: Why next search result stops being highlighted after replace

Postby adzenith on Thu Oct 04, 2012 5:57 pm

Did you try editing your theme?
adzenith
 
Posts: 1204
Joined: Mon Oct 19, 2009 9:12 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 14 guests

cron