sublime-EasyMotion icon indicating copy to clipboard operation
sublime-EasyMotion copied to clipboard

Change match highlight color

Open pensierinmusica opened this issue 11 years ago • 12 comments

Is there a way to easily change the highlight color for matches?

screen shot 2014-04-25 at 13 09 59

With the Solarized - Dark theme the standard style looks pretty bad.

How can one change it to make it look like a normal Sublime Text search match?

screen shot 2014-04-25 at 13 12 17

pensierinmusica avatar Apr 25 '14 11:04 pensierinmusica

I agree, those colors are gross :). There is a section in the readme that talks about how to switch your colors for matches.

tednaleid avatar Apr 25 '14 16:04 tednaleid

Hi Ted, thanks I alerady read that section, but couldn't figure out how to reach the desired result. Any help? Cheers!

pensierinmusica avatar Apr 26 '14 00:04 pensierinmusica

Yeah, that isn't the most clear I guess :). Each theme that you might pick, like Solarized Dark, has a .tmTheme file, if you're on the mac, it's located under ~/Library/Application Support/Sublime Text\ 2 (or 3 I guess?), and then in Packages/Color Scheme - Default. Each .tmTheme file is an xml file that defines hex color codes for the theme mapped to a name. You can try the other names in the file to pick another color. This is the one it's using by default from Solarized Dark:

        <dict>
            <key>name</key>
            <string>Class name</string>
            <key>scope</key>
            <string>entity.name.class, entity.name.type.class</string>
            <key>settings</key>
            <dict>
                <key>foreground</key>
                <string>#268BD2</string>
            </dict>
        </dict>

tednaleid avatar Apr 26 '14 00:04 tednaleid

Thanks, I already checked the file you mention, and tried tons of values, but couldn't figure out what I should exactly write in EasyMotion's User Settings to get the result shown in the picture attached above. Where you able to get it working with the "yellow" background and dark characters?

pensierinmusica avatar Apr 26 '14 00:04 pensierinmusica

I’m using the “cobalt” theme which I think is built in, partially because I like the highlighting color. Switching to that might be the easiest way to make it work :)

Huh, just tried it out and was unable to get it to work to switch based on that value in the config. Probably the easiest solution right now is to try another theme. I'll reopen this issue and if ST3 ever gets released, I'll pick this back up to make it configurable.

tednaleid avatar Apr 26 '14 01:04 tednaleid

Ok, thanks! :)

pensierinmusica avatar Apr 26 '14 01:04 pensierinmusica

Btw, shouldn't it be the same on ST2? How can one set that "yellow" highlighting to work on ST2 with the Solarized - Dark color scheme? ;)

pensierinmusica avatar Apr 28 '14 08:04 pensierinmusica

It doesn't work on ST2 either :). I must have broken it somewhere along the way and didn't notice as I just let the default value for my color scheme (Cobalt, which is similar though not exactly the same as Solarized - Dark) work.

tednaleid avatar Apr 28 '14 13:04 tednaleid

I see. No worries, if you happen to have time to fix it at some point it'd be great, although I understand there are tons of other things in the pipeline ;) Cheers!

pensierinmusica avatar Apr 28 '14 13:04 pensierinmusica

I had the same problem because I tend to use both the solorized themes depending on the time of day. I tried to mess around with them a little and there doesn't seem to be particularly good one to choose from that will satisfy both colour schemes, probably because they're inverted by nature. But here is the best thing that I have found

"jump_target_scope" : "storage", // best for light "jump_target_scope" : "constant.numeric", // best for dark "jump_target_scope" : "comment", // okay for both

ghost avatar Oct 26 '14 04:10 ghost

Hi @erickbarron, I tend to use a more "neutral" one:

"jump_target_scope" : "number"

(most of the times I'm using the dark scheme)

pensierinmusica avatar Oct 27 '14 15:10 pensierinmusica

@erickbarron, @pensierinmusica Your comments have finally made this package useable for me. My gratitude.

P.S.: And to the author, of course.

NM-Clio avatar Dec 30 '14 01:12 NM-Clio