RainbowBrackets
A rainbow brackets plugin for SublimeText4.
Details
Installs
- Total 30K
- Win 16K
- Mac 7K
- Linux 6K
Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 3 | 7 | 8 | 10 | 9 | 9 | 7 | 2 | 10 | 6 | 6 | 16 | 15 | 7 | 13 | 10 | 11 | 5 | 7 | 11 | 1 | 9 | 9 | 6 | 8 | 10 | 3 | 7 | 8 | 10 | 7 | 8 | 8 | 8 | 5 | 7 | 8 | 4 | 5 | 5 | 8 | 6 | 9 | 13 | 8 | 10 |
Mac | 1 | 3 | 5 | 3 | 4 | 2 | 3 | 0 | 3 | 2 | 3 | 3 | 4 | 4 | 0 | 4 | 5 | 6 | 1 | 2 | 4 | 2 | 1 | 2 | 7 | 3 | 2 | 4 | 0 | 1 | 4 | 3 | 7 | 4 | 1 | 2 | 5 | 1 | 3 | 3 | 0 | 4 | 2 | 4 | 2 | 1 |
Linux | 0 | 4 | 2 | 2 | 3 | 1 | 7 | 1 | 3 | 9 | 3 | 7 | 1 | 3 | 1 | 2 | 4 | 3 | 3 | 2 | 4 | 0 | 2 | 3 | 4 | 2 | 2 | 3 | 2 | 4 | 2 | 3 | 1 | 0 | 3 | 6 | 5 | 1 | 4 | 2 | 1 | 2 | 5 | 3 | 3 | 13 |
Readme
- Source
- raw.githubusercontent.com
RainbowBrackets
Introduction
RainbowBrackets uses the brackets and colors that you give in the settings file, searches and highlights brackets in file views. Brackets at different levels will be dyed with different colors according to the settings. Colors are gave in a list, and will be used repeatedly.
parentheses, braces, brackets are treated as brackets. brackets are configured in setting file, it means you can use OO
as a opening bracket and CC
as a close bracket. some characters will cause many match error, can't serve as brackets, such as <>
.
Example
{ [ 【 OO OO 《《》OOxCC》 CC CC 】 ] }
Installation
Clone or download this repository to your Packages directory of Sublime Text. Note that the directory name should be the name of this repository.
If you have installed Package Control, press down ctrl+shift+p to get into the command palette, then, input the command pcip (Package Control: Install Package)
and Enter to run it. Wait some time… After package infomations have been loaded remotely, input the name of this plugin RainbowBrackets
, and press down Enter to install it.
Usage
Settings
Settings template
{
"debug": false,
"default_config": {
"bracket_pairs": {
"(": ")",
"[": "]",
"{": "}"
},
"coloring": false,
"enabled": true,
"ignored_scopes": [
"comment",
"string",
"constant"
],
"rainbow_colors": [
"#FF0000", // level0
"#FF6A00", // level1
"#FFD800", // level2
"#00FF00", // level3
"#0094FF", // level4
"#0041FF", // level5
"#7D00E5" // level6
],
"mismatch_color": "#FF0000"
},
"syntax_specific": {
"Scheme": {
"extensions": [".scm", ".ss"],
"ignored_scopes": [
"comment", "string", "constant", "symbol"
]
},
"JSON": {
"bracket_pairs": {
"{": "}",
"[": "]"
},
"extensions": [
".json",
".sublime-build",
".sublime-color-scheme",
".sublime-commands",
".sublime-keymap",
".sublime-menu",
".sublime-settings",
".sublime-theme",
],
"ignored_scopes": [
"comment", "string"
]
}
}
}
ignored_scopes
: to ignore brackets in some scopes(such as comment, string).
Commands
- Preferences: RainbowBrackets Settings
- RainbowBrackets: toggle debug
- RainbowBrackets: make rainbow
- RainbowBrackets: clear rainbow
- RainbowBrackets: clear color schemes
Key bindings
RainbowBrackets support fast opreating brackets, including select
, remove
and transform
.
Keys | Description |
---|---|
ctrl+alt+9 | Replace the brackets around the cursors with () |
ctrl+alt+0 | Replace the brackets around the cursors with () |
ctrl+alt+[ | Replace the brackets around the cursors with [] |
ctrl+alt+] | Replace the brackets around the cursors with [] |
ctrl+alt+shift+[ | Replace the brackets around the cursors with {} |
ctrl+alt+shift+] | Replace the brackets around the cursors with {} |
ctrl+alt+r | Remove the brackets around the cursors |
ctrl+alt+. | Remove the brackets around the cursors and select the text within the brackets |
ctrl+alt+, | Select the brackets around the cursors and the text within the brackets |
Screenshots
- Material color scheme, JSON file.
- Material color scheme, Scheme language
- Material lighter color scheme, Scheme language