Home Download Buy Blog Forum Support

ST3: BracketHighlighter 2

Re: ST3: BracketHighlighter 2

Postby lewisl on Sun Mar 10, 2013 9:41 pm

More on this failure to install the st3 branch.

My Package Control.sublime-settings is:

Code: Select all
{
   "installed_packages":
   [
      "Package Control",
      "Theme - Soda"
   ],
   "repositories":
   [
      "https://github.com/facelessuser/BracketHighlighter/tree/BH2ST3"
   ]
}


So, the repository would appear to be recognized.

When I go to install using package control, though, I clearly get a reference to the st2 version from github, not the local repository.

How do I install from the local repository?
lewisl
 
Posts: 26
Joined: Thu May 10, 2012 5:52 am

Re: ST3: BracketHighlighter 2

Postby lewisl on Sun Mar 10, 2013 9:52 pm

More. So, it is installed and it must be the new version.

It would appear that old style user settings no longer work. I had overridden the styles in st2 to make the bracket highlighting more visible as in:

Code: Select all
{
     // Outline? (solid|outline|underline|none)
    "round_style" : "solid",
    "quote_style" : "solid",
    "square_style": "solid",
    "angle_style" : "solid",
    "tag_style"   : "solid",
    "curly_style" : "solid",


     // Scope? (Defined in theme files.)
    // Examples: (keyword|string|number)
    "round_scope" : "bracket",
    "square_scope": "bracket",
    "angle_scope" : "bracket",
    "curly_scope" : "bracket",
    "tag_scope"   : "bracket",
    "quote_scope" : "bracket"
}


I would just like the high visibility mode to work. How to turn it on? See reference to it in default settings, but no stub value to turn to true.
lewisl
 
Posts: 26
Joined: Thu May 10, 2012 5:52 am

Re: ST3: BracketHighlighter 2

Postby skuroda on Sun Mar 10, 2013 9:57 pm

A change in ST3 is that plugins can be run from sublime-package files rather than needing to be extracted to the packages folder. Package control also leverages this. To check, go to the "Installed Packages" directory. It is at the same level as the "Packages" folder. Any plugins should be installed there.

There is an ongoing discussion about how Package Control will support ST3 and ST2 packages. See https://github.com/wbond/sublime_packag ... issues/291 for more information. I don't quite understand what you mean by "each developer has their own way for installing packages", but I guess that doesn't really matter. As for compatible packages, see https://github.com/wbond/sublime_packag ... e-Packages. Probably not comprehensive, so if you see something missing, fill free to add it.

edited since you got it installed.
skuroda
 
Posts: 683
Joined: Fri Oct 05, 2012 8:11 am

Re: ST3: BracketHighlighter 2

Postby facelessuser on Sun Mar 10, 2013 10:03 pm

The new settings file is called bh_core.sublime-settings. You can view the default by going to Preferences->Package Settings->Bracket Highlighter->Bracket Settings - Default.

Things are different now, and a little more complicated, and I apologize, but in order to bring all the flexibility people desired, things gotta change.
facelessuser
 
Posts: 1574
Joined: Tue Apr 05, 2011 7:38 pm

Re: ST3: BracketHighlighter 2

Postby lewisl on Sun Mar 10, 2013 10:13 pm

Maybe it's just that user settings don't work.

Tried this:
Code: Select all
{
    "high_visibility_style": "solid",

}


Note that when choosing Preferences>Package Settings>Bracket Highlighter>Bracket Settings - User, the file that opens is: bh_core.sublime-settings. Is this the right file? Seems like it is in the right place if the menu command opens it. But, it appears that the setting is ignored.
lewisl
 
Posts: 26
Joined: Thu May 10, 2012 5:52 am

Re: ST3: BracketHighlighter 2

Postby facelessuser on Sun Mar 10, 2013 10:20 pm

Everything has been well tested and is working. The problem is more than likely a misunderstanding of what I am doing vs what you want to do.

"highlight_visibility_style" will only be shown when high visibility mode is activated (if you don't know what this is, you haven't activated it). Documentation is pretty much non-existant right now, and I keep meaning to do it.

Here is a simple example of how styling works:

Here is a bracket definition defining matching for round brackets. Notice the style is set to round:
        {
"name": "round",
"open": "(\\()",
"close": "(\\))",
"style": "round",
"scope_exclude_exceptions": ["string.other.math.block.environment.latex"],
"scope_exclude": ["string", "comment"],
"language_filter": "blacklist",
"language_list": ["Plain text"],
"find_in_sub_search": "true",
"ignore_string_escape": true,
"enabled": true
},


Here is the style definition called round defining the specifics. Notice when attributes are missing (or commented out in this example) the default will be used:
        "round": {
"icon": "round_bracket"
// "color": "brackethighlighter.round",
// "style": "underline"
},


Go ahead and copy the entire bh_core.sublime-settings file to your user file and edit that directly.
facelessuser
 
Posts: 1574
Joined: Tue Apr 05, 2011 7:38 pm

Re: ST3: BracketHighlighter 2

Postby lewisl on Sun Mar 10, 2013 10:48 pm

Thanks. I like the new features and speed.

How do I turn on high_visibility_mode? Did text search--somehow missed it.

I'll make the user prefs file a copy of the whole thing and start there.
lewisl
 
Posts: 26
Joined: Thu May 10, 2012 5:52 am

Re: ST3: BracketHighlighter 2

Postby facelessuser on Sun Mar 10, 2013 10:51 pm

Just type "high visibility" in the command palette and you should see it. It is a toggle command; you can turn it on and off at you like.
facelessuser
 
Posts: 1574
Joined: Tue Apr 05, 2011 7:38 pm

Re: ST3: BracketHighlighter 2

Postby lewisl on Sun Mar 10, 2013 10:59 pm

Hush my mouth.

What would the easiest way be to get matched brackets to be more visible (realize a lot of people would hate this because most of our brackets are mostly matched...). Not quite as visible as high visibility mode makes unmatched brackets--basically just solid yellow and outlined?

For [, {, (, ", and '...
lewisl
 
Posts: 26
Joined: Thu May 10, 2012 5:52 am

Re: ST3: BracketHighlighter 2

Postby facelessuser on Mon Mar 11, 2013 1:07 am

High Visibility mode was never meant for full time enabled, just when you really want to see the bracket extent very clearly.

I am not entirely sure what you are looking for from your description...is the solid setting not good for you? What exactly are you looking for?
facelessuser
 
Posts: 1574
Joined: Tue Apr 05, 2011 7:38 pm

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests