1  <bindings>
  2  	<!-- Node FindAll  -->
  3  	<binding key="ctrl+alt+c" command="pathSelect CSS">
  4  		<context name="selector" value="text.html, text.xml"/>
  5  	</binding>
  6  	<binding key="ctrl+alt+c" command="pathSelect CSS newlineInSelection">
  7  		<context name="selector" value="text.html, text.xml"/>
  8  		<context name="newlineInSelection" value="true"/>
  9  	</binding>
 10  	<binding key="ctrl+alt+x" command="pathSelect XPath">
 11  		<context name="selector" value="text.html, text.xml"/>
 12  	</binding>
 13  	<binding key="ctrl+alt+x" command="pathSelect XPath newlineInSelection">
 14  		<context name="selector" value="text.html, text.xml"/>
 15  		<context name="newlineInSelection" value="true"/>
 16  	</binding>
 17  	<!-- Miscellaneous -->
 18  	<binding key="ctrl+space" command="multiComplete"/>
 19  	<binding key="ctrl+f9" command="selectNodeTests"/>
 20  	<!-- Node manipulation  -->
 21  	<binding key="ctrl+shift+u" command="unwrapTag">
 22  		<context name="selector" value="text.html meta.tag, text.xml meta.tag"/>
 23  	</binding>
 24  	<binding key="ctrl+j" command="sequence selectNode prepareNodeForCollapse join">
 25  		<context name="selector" value="text.html, text.xml"/>
 26  	</binding>
 27  	<binding key="ctrl+j" command="sequence prepareNodeForCollapse join">
 28  		<context name="selector" value="text.html, text.xml"/>
 29  		<context name="allSelectionsEmpty" value="false"/>
 30  	</binding>
 31  	<!-- PrettyPrint Node -->
 32  	<binding key="ctrl+shift+f" command="prettyPrintNode">
 33  		<context name="selector" value="text.html, text.xml"/>
 34  	</binding>
 35  	<!-- Comment Node  -->
 36  	<binding key="ctrl+slash" command="sequence selectNode toggleComment">
 37  		<context name="selector" value="text.html meta.tag, text.xml meta.tag"/>
 38  		<context name="allSelectionsEmpty" value="true"/>
 39  	</binding>
 40  	<!-- Context Sensitive Help -->
 41  	<binding key="f1" command="help">
 42      </binding>
 43  	<!-- CSS & HTML Tidy -->
 44  	<binding key="ctrl+t" command="tidySelection">
 45  		<context name="selector" value="text.html"/>
 46  	</binding>
 47  	<binding key="ctrl+t" command="sequence selectNode tidySelection">
 48  		<context name="selector" value="text.html meta.tag"/>
 49  	</binding>
 50  	<binding key="ctrl+t" command="cSSTidySelection">
 51  		<context name="selector" value="text.html source.css.embedded.html"/>
 52  	</binding>
 53  	<binding key="ctrl+t" command="cSSTidySelection">
 54  		<context name="selector" value="source.css"/>
 55  	</binding>
 56  	<!-- Node / Element Select commands  -->
 57  	<binding key="ctrl+shift+n" command="selectNode">
 58  		<context name="selector" value="text.html, text.xml"/>
 59  	</binding>
 60  	<binding key="ctrl+shift+n" command="livePreview highlight select">
 61  		<context name="option" value="livePreviewVisible"/>
 62  		<context name="selector" value="text.html, text.xml"/>
 63  	</binding>
 64  	<binding key="ctrl+shift+equals" command="selectNode '..'">
 65  		<context name="selector" value="text.html - string, text.xml - string"/>
 66  	</binding>
 67  	<binding key="ctrl+shift+minus" command="selectNode './*'">
 68  		<context name="selector" value="text.html, text.xml"/>
 69  	</binding>
 70  	<binding key="ctrl+shift+up" command="selectNode './preceding-sibling::*[1]'">
 71  		<context name="selector" value="text.html, text.xml"/>
 72  	</binding>
 73  	<binding key="ctrl+shift+down" command="selectNode './following-sibling::*[1]'">
 74  		<context name="selector" value="text.html, text.xml"/>
 75  	</binding>
 76  	<binding key="ctrl+shift+a" command="selectElementName">
 77  		<context name="selector" value="text.html, text.xml"/>
 78  	</binding>
 79  	<binding key="ctrl+shift+t" command="selectInsideTag">
 80  		<context name="selector" value="text.html, text.xml"/>
 81  	</binding>
 82  	<!-- Node Movement commands  -->
 83  	<binding key="ctrl+alt+n" command="moveToNodeEnd">
 84  		<context name="selector" value="text.html, text.xml"/>
 85  	</binding>
 86  	<!-- eJ12ns indent tag macro -->
 87  	<binding key="enter" command="runMacroFileSilently 'Packages/WebDevelopment/indent-tag.sublime-macro'">
 88  		<context name="selector" value="punctuation.definition.tag.html, meta.scope.between-tag-pair.html, punctuation.definition.tag.begin.html"/>
 89  		<context name="option" value="autoMatchEnabled"/>
 90  		<context name="allSelectionsEmpty" value="true"/>
 91  		<context name="allFollowingCharacter" value="&lt;"/>
 92  		<context name="allPreceedingText" value="&gt;$"/>
 93  	</binding>
 94  	<!-- Navi Server -->
 95  	<binding key="ctrl+alt+f8" command="naviServer"/>
 96  	<binding key="ctrl+b" command="insertSnippet Packages/XML/tag.sublime-snippet strong'">
 97  		<context name="selector" value="text.html - source - string, meta.scope.between-tag-pair.html - string"/>
 98  	</binding>
 99  	<!-- Snippets -->
100  	<binding tab="img" uuid="0ec6febc-83d0-4d41-84ee-22d27e4d9957" command="insertSnippet 'Packages/WebDevelopment/Image.sublime-snippet'" key="i,m,g,tab">
101  		<context name="selector" value="text.html"/>
102  	</binding>
103  	<!-- HTML Tag Bindings -->
104  	<binding key="/(?i:abbr|acronym|address|applet|area|b|base|big|blockquote|caption|center|cite|col|colgroup|cote|dd|del|dfn|div|dl|dt|em|fieldset|font|form|frame|frameset|h1|h2|h3|h4|h5|h6|i|ins|kbd|label|legend|li|link|map|noframes|object|ol|optgroup|p|pre|q|samp|select|small|span|strong|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var)/,tab"
105  			command="insertSnippet Packages/XML/tag.sublime-snippet	$1'">
106  		<context name="selector" value="text.html -	source - string, meta.scope.between-tag-pair.html -	string"/>
107  	</binding>
108  	<binding key="/(?i:abbr|acronym|address|applet|area|b|base|big|blockquote|caption|center|cite|col|colgroup|cote|dd|del|dfn|div|dl|dt|em|fieldset|font|form|frame|frameset|h1|h2|h3|h4|h5|h6|i|ins|kbd|label|legend|li|link|map|noframes|object|ol|optgroup|p|pre|q|samp|select|small|span|strong|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var)/,tab"
109  			command="relativeIndentSnippet Packages/XML/indented-tag.sublime-snippet $1'">
110  		<context name="selector" value="text.html -	source - string, meta.scope.between-tag-pair.html -	string"/>
111  		<context name="noPreceedingText" value="\S"/>
112  	</binding>
113  	<binding key="/(?i:abbr|acronym|address|applet|area|b|base|big|blockquote|caption|center|cite|col|colgroup|cote|dd|del|dfn|div|dl|dt|em|fieldset|font|form|frame|frameset|h1|h2|h3|h4|h5|h6|i|ins|kbd|label|legend|li|link|map|noframes|object|ol|optgroup|p|pre|q|samp|select|small|span|strong|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var)/,tab"
114  				command="wrapNodeWithElement $1">
115  		<context name="selector" value="text.html meta.tag - meta.scope.between-tag-pair.html"/>
116  		<context name="noFollowingText"	value="^&lt;"/>
117  	</binding>
118  </bindings>