Sublime Forum

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

#1

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


/* 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?

0 Likes

#2

Solution 1:
Simply add a second * to your starting block comment:

/** 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:

\Sublime Text 2\Packages\CSS\Symbol List Group.tmPreferences

to your User folder and modify this part of the file to your need:

<key>symbolTransformation</key> <string>s/\/\*\*\s*(.*?)\s*\*\//** $1 **/; s/\/\*.*?\*\*\//./; s/\/\*^\*].*?^\*]\*\///</string>

0 Likes

#3

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)
    source.css meta.selector
    change to
    source.dcss meta.selector

And voila, overlay shows only block names

0 Likes