Home Download Buy Blog Forum Support

Could I change the result list of Symbol List (ctrl+r)?

Could I change the result list of Symbol List (ctrl+r)?

Postby kedoff on Thu Oct 25, 2012 8:26 am

I have like block system in my css file, for example^

Code: Select all

/* Reset
-----------------------------------------------------------------------------*/
ol, ul {
    line-height: 17px;
    list-style: none outside none;
    margin: 0 0 0.1em;
}

/* Header
-----------------------------------------------------------------------------*/
#header {
    color: #4F5155;
    position:relative;
    padding:0 0 10px;
    background: #FFE680;
    width: 100%;
    min-height:13em;
}



I want to see only the name on the blocks in overlay (currently in ovelray shows all style tags, its kind of uncomfotable), like

Reset
Header
etc.

and by clicking on name I want to move to block. Is it possible?
kedoff
 
Posts: 3
Joined: Thu Oct 25, 2012 8:20 am

Re: Could I change the result list of Symbol List (ctrl+r)?

Postby bizoo on Thu Oct 25, 2012 9:19 am

Solution 1:
Simply add a second * to your starting block comment:
Code: Select all
/** Reset
-----------------------------------------------------------------------------*/
ol, ul {
    line-height: 17px;
    list-style: none outside none;
    margin: 0 0 0.1em;
}


Solution 2:
Copy the file (and eventually rename it) from:
Code: Select all
\Sublime Text 2\Packages\CSS\Symbol List Group.tmPreferences

to your User folder and modify this part of the file to your need:
Code: Select all
      <key>symbolTransformation</key>
      <string>s/\/\*\*\s*(.*?)\s*\*\//** $1 **/; s/\/\*.*?\*\*\//./; s/\/\*[^\*].*?[^\*]\*\///</string>
bizoo
 
Posts: 859
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Could I change the result list of Symbol List (ctrl+r)?

Postby kedoff on Thu Oct 25, 2012 11:04 am

bizoo, thanks!

But its not different solution, i have to combine them.
1. I add * to starting block comment as in solution 1. But still overlay shows all style tags
2. Edit file "\Sublime Text 2\Packages\CSS\Symbol List Group.tmPreferences" (exact in this directory, copy this file in User directory and edit this clone wont give any effect, i dont now why)
<string>source.css meta.selector</string>
change to
<string>source.dcss meta.selector</string>

And voila, overlay shows only block names
kedoff
 
Posts: 3
Joined: Thu Oct 25, 2012 8:20 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], MSN [Bot], W3C [Validator], Yahoo [Bot] and 10 guests