MCPcopy
hub / github.com/facelessuser/BracketHighlighter

github.com/facelessuser/BracketHighlighter @st4-2.33.0 sqlite

repository ↗ · DeepWiki ↗ · release st4-2.33.0 ↗
295 symbols 715 edges 36 files 292 documented · 99%
README

Donate via PayPal Build Package Control Downloads License

BracketHighlighter

Bracket Highlighter matches a variety of brackets such as: [], (), {}, "", '', <tag></tag>, and even custom brackets.

This was originally forked from pyparadigm's SublimeBrackets and SublimeTagmatcher (both are no longer available). I forked this to fix some issues I had and to add some features I had wanted. I also wanted to improve the efficiency of the matching.

Moving forward, I have thrown away all of the code and have completely rewritten the entire code base to allow for a more flexibility, faster, and more feature rich experience.

screenshot

Feature List

  • Customizable to highlight almost any bracket.
  • Customizable bracket highlight style.
  • High visibility bracket highlight mode.
  • Selectively disable or enable specific matching of tags, brackets, or quotes.
  • Selectively use an allowlist or blocklist for matching specific tags, brackets, or quotes based on language.
  • When bound to a shortcut, allow option to show line count and char count between match in the status bar.
  • Highlight basic brackets within strings.
  • Works with multi-select.
  • Configurable custom gutter icons.
  • Toggle bracket escape mode for string brackets (regex|string).
  • Bracket plugins that can jump between bracket ends, select content, remove brackets and/or content, wrap selections with brackets, swap brackets, swap quotes (handling quote escaping between the main quotes), fold/unfold content between brackets, toggle through tag attribute selection, select both the opening and closing tag name to change both simultaneously, etc.

Documentation

https://facelessuser.github.io/BracketHighlighter/

License

Released under the MIT license.

Core symbols most depended-on inside this repo

size
called by 25
bh_search.py
match
called by 19
bh_modules/tags.py
toregion
called by 17
bh_search.py
log
called by 12
bh_logging.py
insert
called by 12
bh_wrapping.py
run_command
called by 11
bh_plugin.py
move
called by 11
bh_modules/tags.py
validate
called by 9
bh_core.py

Shape

Method 185
Class 56
Function 54

Languages

Python100%

Modules by API surface

bh_core.py59 symbols
bh_search.py31 symbols
bh_wrapping.py26 symbols
bh_regions.py25 symbols
bh_rules.py21 symbols
bh_plugin.py20 symbols
bh_modules/tags.py19 symbols
support.py13 symbols
tests/validate_json_format.py11 symbols
bh_popup.py11 symbols
bh_swapping.py7 symbols
bh_modules/bracketselect.py6 symbols

Dependencies from manifests, versioned

mkdocs_pymdownx_material_extras2.0 · 1×

For agents

$ claude mcp add BracketHighlighter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact