tednaleid / sublime-EasyMotion

Sublime Text 2 plugin to quickly jump to any character in the visible area of the active view.
Apache License 2.0
386 stars 24 forks source link

Change match highlight color #47

Open pensierinmusica opened 10 years ago

pensierinmusica commented 10 years ago

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

tednaleid commented 10 years ago

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

pensierinmusica commented 10 years ago

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

tednaleid commented 10 years ago

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>
pensierinmusica commented 10 years ago

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?

tednaleid commented 10 years ago

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.

pensierinmusica commented 10 years ago

Ok, thanks! :)

pensierinmusica commented 10 years ago

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? ;)

tednaleid commented 10 years ago

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.

pensierinmusica commented 10 years ago

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!

ghost commented 10 years ago

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

pensierinmusica commented 10 years ago

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

"jump_target_scope" : "number"

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

NM-Clio commented 9 years ago

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

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