Permalink
Browse files

- rework how styles are assinged to brackets

- update bh_core.sublime-settings to handle new style changes and other
changes
- fix Scope Bracket mapping issue
- change "invalid" setting to "unmatched"
- make sure always storing selections
- tab stop shortcut is now defined in Default.sublime-keymap instead of
in Example.sulbime-keymap
- due to rework change tag example shortcuts to refrence "angle" type
brackets instead of "tag"
- update bracket plugins references to "angle" type brackets instead of
"tag" where applicable
- make small fixes and adjustments to bh_wrapping.sublime-settings
- update rubykeywords.py to reflect changes in bracket plugins in
regards to styles
- tags.py now gets tag style from bh_core.sublime-settings
- provide command palette command file for bracket plugin commands
- provide menu under Preferences->Packages to access preference files
and keymap files
- provide menu under Tools->Packages for BracketHighlighter plugin
commands
- update readme
  • Loading branch information...
1 parent 6e49ba5 commit a9ad520d1d12f47b3a99efec7c063631624f6699 @facelessuser committed Oct 28, 2012
View
@@ -0,0 +1,143 @@
+[
+ // Search to end of file for bracket
+ {
+ "caption": "BracketHighlighter: Match Brackets (ignore threshold)",
+ "command": "bh_key",
+ "args": {"lines" : true}
+ },
+ // Remove brackets
+ {
+ "caption": "BracketHighlighter: Remove Brackets",
+ "command": "bh_remove_brackets"
+ },
+ // Go to left bracket
+ {
+ "caption": "BracketHighlighter: Jump to Left Bracket",
+ "command": "bh_key",
+ "args":
+ {
+ "lines" : true,
+ "plugin":
+ {
+ "type": ["__all__"],
+ "command": "bh_modules.bracketselect",
+ "args": {"select": "left"}
+ }
+ }
+ },
+ // Go to right bracket
+ {
+ "caption": "BracketHighlighter: Jump to Right Bracket",
+ "command": "bh_key",
+ "args":
+ {
+ "lines" : true,
+ "plugin":
+ {
+ "type": ["__all__"],
+ "command": "bh_modules.bracketselect",
+ "args": {"select": "right"}
+ }
+ }
+ },
+ // Select text between brackets
+ {
+ "keys": "BracketHighlighter: Select Bracket Content",
+ "command": "bh_key",
+ "args":
+ {
+ "lines" : true,
+ "plugin":
+ {
+ "type": ["__all__"],
+ "command": "bh_modules.bracketselect"
+ }
+ }
+ },
+ // Fold contents between brackets
+ {
+ "caption": "BracketHighlighter: Fold Bracket Content",
+ "command": "bh_key",
+ "args":
+ {
+ "plugin": {
+ "type": ["__all__"],
+ "command" : "bh_modules.foldbracket"
+ }
+ }
+ },
+ { "caption": "-" },
+ // Toggle between string and regex escape mode for string brackets
+ {
+ "caption": "BracketHighlighter: Toggle String Bracket Escape Mode",
+ "command": "bh_toggle_string_escape_mode"
+ },
+ { "caption": "-" },
+ // Select tag name of HTML/XML tag (both opening name and closing)
+ {
+ "caption": "BracketHighlighter: Select Tag Name (closing and opening)",
+ "command": "bh_key",
+ "args":
+ {
+ "plugin":
+ {
+ "type": ["angle"],
+ "command": "bh_modules.tagnameselect"
+ }
+ }
+ },
+ // Select the attribute to the right of the cursor (will wrap inside the tag)
+ {
+ "caption": "BracketHighlighter: Select Next Attribute (right)",
+ "command": "bh_key",
+ "args":
+ {
+ "plugin":
+ {
+ "type": ["angle"],
+ "command": "bh_modules.tagattrselect",
+ "args": {"direction": "right"}
+ }
+ }
+ },
+ // Select the attribute to the left of the cursor (will wrap inside the tag)
+ {
+ "caption": "BracketHighlighter: Select Next Attribute (left)",
+ "command": "bh_key",
+ "args":
+ {
+ "plugin":
+ {
+ "type": ["angle"],
+ "command": "bh_modules.tagattrselect",
+ "args": {"direction": "left"}
+ }
+ }
+ },
+ { "caption": "-" },
+ // Convert single quote string to double quoted string and vice versa
+ // Will handle escaping or unescaping quotes within the string
+ {
+ "caption": "BracketHighlighter: Swap Quotes",
+ "command": "bh_key",
+ "args":
+ {
+ "lines" : true,
+ "plugin":
+ {
+ "type": ["single_quote", "double_quote", "py_single_quote", "py_double_quote"],
+ "command": "bh_modules.swapquotes"
+ }
+ }
+ },
+ // Not implemented yet
+ {
+ "caption": "BracketHighlighter: Swap Brackets (NOT IMPLEMENTED)",
+ "command": "swap_brackets"
+ },
+ // Surround selection with brackets from quick panel
+ {
+ "caption": "BracketHighlighter: Wrap Selections with Brackets",
+ "command": "wrap_brackets"
+ }
+]
View
@@ -0,0 +1,16 @@
+[
+ // Navigate tabstops in wrapped selection
+ {
+ "keys": ["tab"],
+ "command": "bh_next_wrap_sel",
+ "context":
+ [
+ {
+ "operand": true,
+ "operator": "equal",
+ "match_all": true,
+ "key": "bh_wrapping"
+ }
+ ]
+ }
+]
View
@@ -70,7 +70,7 @@
{
"plugin":
{
- "type": ["tag"],
+ "type": ["angle"],
"command": "bh_modules.tagnameselect"
}
}
@@ -83,7 +83,7 @@
{
"plugin":
{
- "type": ["tag"],
+ "type": ["angle"],
"command": "bh_modules.tagattrselect",
"args": {"direction": "right"}
}
@@ -97,7 +97,7 @@
{
"plugin":
{
- "type": ["tag"],
+ "type": ["angle"],
"command": "bh_modules.tagattrselect",
"args": {"direction": "left"}
}
@@ -139,19 +139,5 @@
{
"keys": ["ctrl+alt+super+w"],
"command": "wrap_brackets"
- },
- // Navigate tabstops in wrapped selection
- {
- "keys": ["tab"],
- "command": "bh_next_wrap_sel",
- "context":
- [
- {
- "operand": true,
- "operator": "equal",
- "match_all": true,
- "key": "bh_wrapping"
- }
- ]
}
]
Oops, something went wrong.

0 comments on commit a9ad520

Please sign in to comment.