Home Download Buy Blog Forum Support

Colorising Find Results

Colorising Find Results

Postby ckhoo on Fri Sep 09, 2011 3:06 am

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
ckhoo
 
Posts: 15
Joined: Tue Aug 16, 2011 2:37 am

Re: Colorising Find Results

Postby buymeasoda on Fri Sep 09, 2011 6:04 am

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:

Code: Select all
<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?
buymeasoda
 
Posts: 65
Joined: Mon Jul 18, 2011 11:40 pm
Location: Brisbane, Australia

Re: Colorising Find Results

Postby kuroir on Sun Sep 11, 2011 10:54 am

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?
kuroir
 
Posts: 71
Joined: Thu Sep 01, 2011 11:28 pm
Location: Mexico

Re: Colorising Find Results

Postby buymeasoda on Mon Sep 12, 2011 11:13 pm

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
buymeasoda
 
Posts: 65
Joined: Mon Jul 18, 2011 11:40 pm
Location: Brisbane, Australia

Re: Colorising Find Results

Postby Jay Levitt on Wed Sep 28, 2011 4:24 am

I would kill for an AckMate theme...

Screen shot 2011-09-28 at 12.23.43 AM.png
AckMate
Screen shot 2011-09-28 at 12.23.43 AM.png (142.04 KiB) Viewed 1212 times
Jay Levitt
 
Posts: 52
Joined: Sun Sep 25, 2011 6:22 pm

Re: Colorising Find Results

Postby apocalip on Fri Feb 17, 2012 6:00 pm

+1 :)
apocalip
 
Posts: 4
Joined: Fri Feb 17, 2012 5:58 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 25 guests