Home Download Buy Blog Forum Support

BracketHighlighter

Re: BracketHighlighter

Postby C0D312 on Mon Mar 12, 2012 5:53 pm

"curly_icon" : "", worked thanks!


Whoops, I was using the old version. Had to switch branches in Github for mac. :)
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: BracketHighlighter

Postby facelessuser on Mon Mar 12, 2012 6:01 pm

Okay that makes sense. I was a little confused since the whole point of the experimental was to give near instant highlighting in most cases. I couldn't understand what you would have changed. :)
facelessuser
 
Posts: 1445
Joined: Tue Apr 05, 2011 7:38 pm

Re: BracketHighlighter

Postby facelessuser on Mon Mar 12, 2012 6:27 pm

Oh, and you can use any icon you want as a bookmark, at least in recent builds, the catch is, the icon must be found in the default theme folder, not current theme you are using.

For instance I made a little white icon with transparent background (it must be white for the filter to color it proper). I called mine bracket.png for this experiment, and then referenced it like this.

Code: Select all
"curly_icon" : "bracket",


And there you have it.

bracket_screenshot.png
bracket_screenshot.png (2.44 KiB) Viewed 1846 times


I noticed that the cross icon no longer worked, and then I noticed the cross icon is gone in the default theme. I tried dropping a test icon into my current theme, but it never would get picked up, so I tried the default and it worked. So really you can use anything as long as it exists in the default theme.
facelessuser
 
Posts: 1445
Joined: Tue Apr 05, 2011 7:38 pm

Re: BracketHighlighter

Postby facelessuser on Mon Mar 12, 2012 6:38 pm

Oh man. You can give it a relative path!

This is my setting.

Code: Select all
    //Icon? (dot/circle/bookmark/cross)
    "quote_icon" : "../BracketHighlighter/quote",
    "curly_icon" : "../BracketHighlighter/curly",
    "round_icon" : "../BracketHighlighter/round",
    "square_icon": "../BracketHighlighter/square",
    "angle_icon" : "../BracketHighlighter/angle",
    "tag_icon"   : "../BracketHighlighter/angle",


This is what I get. (keep in mind I have the icons in these path for my test)

test.png
test.png (18.9 KiB) Viewed 1835 times


I feel a new feature coming...
facelessuser
 
Posts: 1445
Joined: Tue Apr 05, 2011 7:38 pm

Re: BracketHighlighter

Postby C0D312 on Mon Mar 12, 2012 10:26 pm

Awesome. Customize EVERYTHING!

The new version works so instantly it feels native.

Now I just need to spend several days fiddling with the colors. You probably shouldn't have told me about the custom gutter icons. Now I need to make my own. TO PHOTOSHOP!
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: BracketHighlighter

Postby facelessuser on Mon Mar 12, 2012 11:16 pm

If you come up with some good ones, and you would like to possibly have them included by default, let me know. I am going to work up a new version that will look in BracketHighlighter by default for all icons instead of the theme.
facelessuser
 
Posts: 1445
Joined: Tue Apr 05, 2011 7:38 pm

Re: BracketHighlighter

Postby facelessuser on Tue Mar 13, 2012 3:07 am

Image

Version 1.5
- More responsive highlighting (thanks tito); delay setting no longer needed
- Organize bracket plugins
- Included more configurable custom gutter icons

If you hate the new icons, it is okay, you can change them back to dot or whatever. You can even create a folder with custom icons, and point BracketHighlighter at that folder in the settings file (the path must be relative to Package; you cans see what I did in the default settings file).

Edit:
You will probably want to restart after you upgrade; there might be glitches until you do ;) .
facelessuser
 
Posts: 1445
Joined: Tue Apr 05, 2011 7:38 pm

Re: BracketHighlighter

Postby dribble on Tue Mar 13, 2012 2:00 pm

great update, thanks much.
dribble
 
Posts: 6
Joined: Sun Mar 04, 2012 9:35 pm

Re: BracketHighlighter

Postby tito on Tue Mar 13, 2012 11:42 pm

Looks good :)

I noticed there is the API
Code: Select all
>>> sublime.active_window().active_view().line_height()
13.0


You may want to add different pngs depending on ranges of the size of the line. Because looks a little ugly when using a very tiny font size. :D
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 705
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: BracketHighlighter

Postby facelessuser on Wed Mar 14, 2012 12:12 am

tito wrote:Looks good :)

I noticed there is the API
Code: Select all
>>> sublime.active_window().active_view().line_height()
13.0


You may want to add different pngs depending on ranges of the size of the line. Because looks a little ugly when using a very tiny font size. :D


Good call; hadn't checked that scenario. I based it off the sizes already used by ST2. I will look into adding small versions, and create some convention of naming so the plugin will always no how to find the small variant. Either that, or I will revert to some tiny default.
facelessuser
 
Posts: 1445
Joined: Tue Apr 05, 2011 7:38 pm

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests