Sublime Forum

Colorising Find Results

#1

Hi all

I was wondering whether there was a way to colorise the find results, especially to quickly differentiate between file paths and their search results.

I know there’s already tabbing but coloring would make it so much better!

Chris

0 Likes

#2

I would really like to see this as well.

My understanding is that the results text area and input fields are rendered using code views as they can use tmTheme files to style them. I’m using that approach to tweak the input boxes and output fields in Soda Theme.

To colour specific parts of the results content would require some named, tmTheme style hooks for a theme to latch on to, so that the output could be styled the same way a syntax scheme is created. Perhaps they exist already?

So, a dummy / example theme could be something like:

<dict>
    <key>name</key>
    <string>Results: Filename</string>
    <key>scope</key>
    <string>results.filename</string>
    <key>settings</key>
    <dict>
        <key>foreground</key>
        <string>#4F9FCF</string>
    </dict>
</dict>

Are there any tmTheme rules that apply to the results output?

1 Like

#3

I’ve got lots of experience working with Grammar FIles… but I’ve been wondering for some time how to check scopes with SublimeText2, is there a command for that?

0 Likes

#4

Looks like colour highlighting has added this to the latest dev build (Build 2116) for search results output.

I’ve posted some theme related questions for the new Find Results area in the post on Build 2116:
viewtopic.php?f=2&t=3056&p=14477#p14477

0 Likes

#5

I would kill for an AckMate theme…


0 Likes

#6

+1 :smile:

0 Likes