Home Download Buy Blog Forum Support

BracketHighlighter

BracketHighlighter

Postby facelessuser on Fri Oct 07, 2011 5:28 pm

Bracket Highlighter is a fork of pyparadigm's SublimeBrackets and SubimeTagmatcher merged together. I never intended this fork to be anything more than me fixing a couple of things, but then it took on a life of its own.

There are a number improvements to the functionality of the originals and new features:
  • Customizable debounce and search thresholds to ensure the plugin doesn't get bogged down in big files
  • Matches tags; brackets: (), [], <>, {}; and quotes: single and double (uses string scope)
  • Ability to blacklist or whitelist languages from matching specific brackets, tags, quotes
  • Ability to turn off matching compeletly off for any bracket, quote, or tag
  • On demand shortcut to override search threshold and search until the match is made no matter how far it must search
  • Highlight styles: colored blocks, colored outline, or colored underline
  • Highlight entire Tag or just the brackets of a tag
  • Show line count and character count between blocks when using on demand shortcut
  • Settings are tweakable in the settings file
  • Settings file and keymap files are accessible from the menu
  • Bracket plugins: (this might sound silly to have plugins inside a plugin, but it is actually useful)

Plugins:
BracketHighlighter does the work of finding matching brackets, tags, and quotes. Bracket plugins allows you to leverage this work to find the regions without having to duplicate the logic in other plugins. Plugins can be dropped into the BracketHighlighter folder, or dropped in their own plugin folder (I may separate plugins into their own repo in the future).

Current plugins:
  • Swap quote type of string: changes from single quoted to double quoted or vice versa. Accounts for escaped quotes
  • Bracket select: Change the selection inside the bracket, tag, or quote block. Move the cursor to first bracket of match or last and focus. Select entire content between matched brackets, quotes, or tags
  • Tag name select: select the tag name of the opening and closing HTML tag to edit the names at the same time
  • Tag attribute select: cycle through selecting the attributes of an HTML tag
  • Fold brackets: Fold code by brackets
  • Swap brackets: Change current matched brackets to specified bracket type

All of these default plugins come bound to shortcuts (there are so many shortcuts in ST2 that I did the best I could, if you don't like the shortcuts, feel free to change them and bind them to ones that make sense for you. If you don't like some of the plugins, you can toss them and remove the shortcut.).

The repo is here: BracketHighlighter

Feel free to let me know what you think; good or bad. Make suggestions or anything else.
Last edited by facelessuser on Thu Nov 10, 2011 6:54 am, edited 1 time in total.
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: BracketHighlighter

Postby skaet on Mon Oct 10, 2011 2:20 pm

+rep!

Thanks :)
skaet
 
Posts: 93
Joined: Thu Sep 16, 2010 3:37 pm

Re: BracketHighlighter

Postby aparajita on Tue Oct 11, 2011 5:21 am

Great stuff! Don't forget to submit your repo to Package Control (will@wbond.net) so it can be installed that way.
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: BracketHighlighter

Postby skaet on Tue Oct 11, 2011 9:14 am

You can manually add the repo URL through Package Control so it's not really an issue, though it would be nice to have the exposure through the official channel.
skaet
 
Posts: 93
Joined: Thu Sep 16, 2010 3:37 pm

Re: BracketHighlighter

Postby facelessuser on Tue Oct 11, 2011 3:31 pm

aparajita wrote:Great stuff! Don't forget to submit your repo to Package Control (will@wbond.net) so it can be installed that way.


Yeah, it is on my list of things to do. Getting pretty busy at work right now, but I hope to get it going by the end of this week or next.
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: BracketHighlighter

Postby facelessuser on Thu Oct 20, 2011 6:42 pm

BracketHighlighter is now on Package Control, but you cannot install because the repo for some reason is now flaking out on "download repo as zip". Not sure what is going on because I used the feature earlier today. I am trying to figure out what is going on. Hopefully github has reasonable support, or maybe it is something that will resolve itself with a little time.
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: BracketHighlighter

Postby facelessuser on Fri Oct 21, 2011 1:49 am

Should now be work on package control. Not sure what the issue was, but it works now.
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: BracketHighlighter

Postby teejae on Fri Oct 21, 2011 4:44 pm

Having trouble with the plugin at the moment. It seems to not be able to read the settings correctly. True on both Mac and Linux. Couldn't figure it out offhand.
teejae
 
Posts: 16
Joined: Tue Oct 11, 2011 5:38 pm

Re: BracketHighlighter

Postby facelessuser on Fri Oct 21, 2011 4:59 pm

Have you restarted after installing? It seems a good restart after first install is usually what it needs. After that you can tweak the settings and they will immediately take place. I personally use it on Windows and Linux, so I have tested it works on both.

Let me know if you are still having issues after a restart.

I have actually seen similar behavior before with other plugins...usually ones that have multiple files. I think it has to do with the fact that as each file is added during install to the ST2 path, if the other dependency has not yet been copied, that file errors out, and after the dependency is copied, the original file that failed does not reload; therefore, after install, you need to restart so that all files will be reloaded with all in place.
facelessuser
 
Posts: 1565
Joined: Tue Apr 05, 2011 7:38 pm

Re: BracketHighlighter

Postby teejae on Fri Oct 21, 2011 6:08 pm

Yea, seems like a restart on the Mac seemed to do the trick. Will have to try the Linux version later. Will report back.
teejae
 
Posts: 16
Joined: Tue Oct 11, 2011 5:38 pm

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 9 guests