vn-ki / bracket-colorizer Goto Github PK
View Code? Open in Web Editor NEWAtom extension for coloring bracket pairs.
License: MIT License
Atom extension for coloring bracket pairs.
License: MIT License
Currently {[()]}
would display all braces in the same color.
Personally I would prefer to have the coloring indicate the nesting level irrespective of the type of bracket.
Hello,
This extension is great, one thing I'm missing though are the scope lines that you can find in the equivalent extension in VS Code. It would be nice to be able to enable/disable said scope lines. See Bracket Pair Colorizer for VS Code for details: https://github.com/CoenraadS/BracketPair
Keep up the good work!
Regards.
Arguments to path.basename
must be strings
Object.basename (/Applications/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:31:10)
Object.processEditor (/Users/caleb/.atom/packages/bracket-colorizer/lib/bracket-colorizer.js:92:57)
<unknown> (/Users/caleb/.atom/packages/bracket-colorizer/lib/bracket-colorizer.js:58:20)
Function.simpleDispatch (<embedded>:11:1172318)
Emitter.emit (<embedded>:11:1173759)
stoppedChangingActivePaneItemTimeout.setTimeout (<embedded>:11:425634)
[Enter steps to reproduce:]
Atom: 1.57.0 x64
Electron: 9.4.4
OS: macOS 11.2.3
Thrown From: bracket-colorizer package 1.4.0
Failed to activate the bracket-colorizer package
At Cannot find module 'minimatch'
Require stack:
- /Users/generalassembly/.atom/packages/bracket-colorizer/lib/bracket-colorizer.js
- /Applications/Atom.app/Contents/Resources/app.asar/static/index.html
Error: Cannot find module 'minimatch'
Require stack:
- /Users/generalassembly/.atom/packages/bracket-colorizer/lib/bracket-colorizer.js
- /Applications/Atom.app/Contents/Resources/app.asar/static/index.html
at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
at o._resolveFilename (electron/js2c/renderer_init.js:43:689)
at Function.get_Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:157820)
at Module.require (/app.asar/static/index.js:61:43)
at require (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:149153)
at /packages/bracket-colorizer/lib/bracket-colorizer.js:4:47)
at /packages/bracket-colorizer/lib/bracket-colorizer.js:151:2)
at Module.get_Module._compile (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:149837)
at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:153385)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (/app.asar/static/index.js:72:46)
at require (internal/modules/cjs/helpers.js:74:18)
at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:756278)
at requireModule (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:1191586)
at Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3402829)
at Package.activateNow (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3390813)
at /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3390591
at Package.measure (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3388169)
at /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3390451
at new Promise (<anonymous>)
at Package.activate (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:3390394)
at PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:385497)
at /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:385113
at Config.transactAsync (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:334641)
at PackageManager.activatePackages (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:385063)
at PackageManager.activate (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:384613)
at /Applications/Atom.app/Contents/Resources/app/static/<embedded>:1:778471
at async Promise.all (index 0)
apex-adapt-dark-ui 0.4.2
Apex-ui-dark 0.4.0
atom-beautify 0.33.4
atom-bracket-highlight 0.3.2
atom-bright-dark-syntax 1.0.1
atom-dark-minimal-syntax 0.2.8
atom-dark-minimal-ui 0.5.8
atom-ternjs 0.20.0
auto-indent 0.5.0
awesome-dark-syntax 0.3.1
bracket-colorizer 1.4.0
busy-signal 2.0.1
dark-code-syntax 1.1.2
dark-contrast-ui 1.0.0
dark-flat-ui 1.2.4
dark-md-syntax 0.2.6
dark-one-dark-syntax 2.3.0
file-icons 2.1.47
futurism-dark-syntax 2.1.0
ghoulish-ui 1.1.3
hyperclick 0.1.5
intentions 1.1.5
language-babel 2.85.0
language-ejs 0.4.0
linter 3.3.1
linter-csslint 2.0.6
linter-erb 1.1.5
linter-eslint 8.6.6
linter-js-yaml 1.4.6
linter-ui-default 3.3.1
naturerainbow-dark-syntax 0.0.4
northem-dark-atom-ui 2.1.0
nv-dark-syntax 1.4.1
nv-dark-ui 3.0.8
oceanic-next 1.0.0
platformio-ide-terminal 2.10.1
prettier-atom 0.60.1
sagan-dark-ui 0.1.1
seti-syntax 1.2.0
seti-ui 1.11.0
snow-dark-syntax-patch 0.2.4
teletype 0.13.4
Tycho-Dark-Syntax 0.3.0
volcanic-dark-syntax 0.1.0
Right now, this changes the colors of the brackets if the bracket type is the same. So 3 parentheses in a row all have different colors.
However if you have a pattern like this { [ ( ) ] }
, they all end up the same color.
It would be nice to see a toggle option where it alternates colors regardless of bracket type.
Not sure if this is intentional or not, but $ a(2) $
does not get colored.
Would be helpful if brackets which does not match are e.g. flashing or have a special error color.
I am thinking of things like
[ }
or
[ text
I love this so much! Can't do without it.
Nice QoL would be having colors displayed in minimap
Hello.
Great work on the package, it's really helpfull.
I think i found a bug, on Python's f strings the matcher does not work, it stays as the default grey.
Here's an example:
print(f"Expected: {(total*int(time_per_img))/60} mins")
It's true that i can write the calculation outside the brackets of the f string and it'll work properly, but i think this should be possible.
Bracket Colorizer crash when editing styles.less
. Can be avoided by temporarily disabling the Bracket Colorizer package.
style.less
via menu bar: Atom -> Stylesheet...Atom: 1.36.0 x64
Electron: 2.0.18
OS: Mac OS X 10.14.3
Thrown From: bracket-colorizer package 1.3.0
Uncaught TypeError: this.brackets is not iterable
At /Users/USER/.atom/packages/bracket-colorizer/lib/bracket-matcher.js:26
TypeError: this.brackets is not iterable
at BracketMatcher.colorBrackets (/packages/bracket-colorizer/lib/bracket-matcher.js:26:30)
at /packages/bracket-colorizer/lib/bracket-matcher.js:9:10)
at Object.processEditor (/packages/bracket-colorizer/lib/bracket-colorizer.js:95:23)
at /packages/bracket-colorizer/lib/bracket-colorizer.js:50:86
at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1172021)
at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1173462)
at stoppedChangingActivePaneItemTimeout.setTimeout (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:425838)
-3:29.7.0 core:confirm (input.hidden-input)
-3:29.7.0 settings-view:change-themes (input.hidden-input)
-2:49 settings-view:open (input.hidden-input)
3x -2:27.9.0 core:move-left (input.hidden-input)
-2:26.8.0 editor:move-to-end-of-screen-line (input.hidden-input)
7x -2:18.4.0 core:undo (input.hidden-input)
9x -2:15.7.0 core:redo (input.hidden-input)
-2:13.7.0 editor:move-to-end-of-screen-line (input.hidden-input)
-2:13.1.0 core:backspace (input.hidden-input)
-1:30.2.0 core:copy (div.package-readme.native-key-bindings)
-1:22.7.0 core:backspace (input.hidden-input)
-1:12.7.0 core:copy (div.package-readme.native-key-bindings)
-0:13.6.0 vim-mode-plus:activate-insert-mode (input.hidden-input)
-0:13.4.0 core:paste (input.hidden-input)
2x -0:08.8.0 core:backspace (input.hidden-input)
-0:07.7.0 core:save (input.hidden-input)
bracket-colorizer 1.3.0
highlight-selected 0.16.0
Hydrogen 2.8.0
language-gfm-enhanced 0.92.0
markdown-preview-enhanced 0.15.10
minimap 4.29.9
minimap-cursorline 0.2.0
minimap-find-and-replace 4.5.2
minimap-highlight-selected 4.6.1
pdf-view 0.71.0
python-indent 1.1.7
vim-mode-plus 1.36.0
I think it is unnecessary.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.