-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Bracket Pair Colorization: Force unique opening color #131029
Comments
(Experimental duplicate detection) |
How does this feature work? Why "opening"? Do you have an example that demonstrates why it is useful? |
Basically it makes sure that each bracket pair is a different color instead of only having a color switch when they start nesting. |
What's the difference between |
So |
IMHO, forceIteration has the drawback that the last nested pair might be the same color of the outer pair. With forceUnique, there is a way to ensure that the inner and outer pairs have different colors (I can't remember if it was implemented that way in the original extension though). |
I still don't understand the behavior of the extension with I think a setting Unfortunately, this could happen then:
The last two closing brackets have the same color. |
The original extension was a bit buggy and some corner cases were broken. I don't remember the exact scenario but I do remember that in some cases, consecutive brackets could have the same colors, although my memory was between a parent and its last child (...or maybe I was using
+1 on that, although I would even like it better if the pair would take the same color has the parent when the parent has no other characters but that pair (😛, I'm still hoping it will happen one day). |
I'd like to bring attention back to this issue since this is the only thing I've found in my searching and it seems to have fallen by the wayside a bit, and just wanted to add in that I would also like to see the |
This would be porting over said feature from Bracket Pair Colorizer 2
"
![image](https://user-images.githubusercontent.com/75278/129780602-b5d94d83-3f4a-4103-955d-66f9bfbbf936.png)
![image](https://user-images.githubusercontent.com/75278/129780611-be1d4cfa-4d77-41d8-a30f-166ed2ff851e.png)
bracket-pair-colorizer-2.forceUniqueOpeningColor
"The text was updated successfully, but these errors were encountered: