<?xml version="1.0"?>
<action-recipes>
	
	<!-- Entities menu -->
	
	<action id="com.macrabbit.tea-for-two.text-actions.convert-to-named-entities" category="actions.text.html/tea.conversion/tea.featured/1">
		<script>encode_unicode.js</script>
		<key-equivalent>command &amp;</key-equivalent>
		<setup>
			<type>named</type>
		</setup>
	</action>
	
	<action id="com.macrabbit.tea-for-two.text-actions.convert-to-numeric-entities" category="actions.text.html/tea.conversion/tea.featured/2">
		<script>encode_unicode.js</script>
		<setup>
			<type>numeric</type>
		</setup>
	</action>
	
	<action id="com.macrabbit.tea-for-two.text-actions.insert-entity.nbsp" category="actions.text.html/tea.conversion/tea.entities/1">
		<script>insert_text.js</script>
		<key-equivalent>control shift space</key-equivalent>
		<setup>
			<snippet>&amp;nbsp;</snippet>
		</setup>
	</action>
	
	<action id="com.macrabbit.tea-for-two.text-actions.insert-entity.amp" category="actions.text.html/tea.conversion/tea.entities/2">
		<script>insert_text.js</script>
		<key-equivalent>control shift 7</key-equivalent>
		<setup>
			<snippet>&amp;amp;</snippet>
		</setup>
	</action>

	<action id="com.macrabbit.tea-for-two.text-actions.insert-entity.lt" category="actions.text.html/tea.conversion/tea.entities/3">
		<script>insert_text.js</script>
		
		<key-equivalent>control shift ,</key-equivalent>
		<setup>
			<snippet>&amp;lt;</snippet>
		</setup>
	</action>

	<action id="com.macrabbit.tea-for-two.text-actions.insert-entity.gt" category="actions.text.html/tea.conversion/tea.entities/4">
		<script>insert_text.js</script>
		
		<key-equivalent>control shift .</key-equivalent>
		<setup>
			<snippet>&amp;gt;</snippet>
		</setup>
	</action>
	
	<!-- Formatting actions -->
	
	<action id="com.macrabbit.tea-for-two.text-actions.wrap-em" category="actions.text.html/tea.insertion/1">
		<script>toggle_tag.js</script>
		<language-context>html, xml</language-context>
		<key-equivalent>command shift i</key-equivalent>
		<setup>
			<tag>em</tag>
		</setup>
	</action>
	
	<action id="com.macrabbit.tea-for-two.text-actions.wrap-strong" category="actions.text.html/tea.insertion/2">
		<script>toggle_tag.js</script>
		<language-context>html, xml</language-context>
		<key-equivalent>command shift b</key-equivalent>
		<setup>
			<tag>strong</tag>
		</setup>
	</action>
	
	<!-- Zen actions -->
	
	<action id="com.macrabbit.tea-for-two.text-actions.expand-abbreviation" category="actions.text.html/tea.zen/1">
		<script>zen_actions.js</script>
		
		<key-equivalent>control ,</key-equivalent>
		<setup>
			<action>expand_abbreviation</action>
		</setup>
	</action>
	
	<action id="com.macrabbit.tea-for-two.text-actions.wrap-with-abbreviation" category="actions.text.html/tea.zen/2">
		<script>zen_wrap.js</script>
		<class>TEAWrapWithAbbreviation</class>
		<key-equivalent>control shift a</key-equivalent>
	</action>
	
	<action id="com.macrabbit.tea-for-two.text-actions.remove-tag" category="actions.text.html/tea.zen/tea.tagmanipulation">
		<script>zen_actions.js</script>
		
		<key-equivalent>control shift k</key-equivalent>
		<setup>
			<action>remove_tag</action>
		</setup>
	</action>
	
	<action id="com.macrabbit.tea-for-two.text-actions.next-edit-point" category="actions.text.html/tea.zen/tea.tagmanipulation/tea.balance">
		<script>zen_actions.js</script>
		
		<key-equivalent>control option arrow-right</key-equivalent>
		<setup>
			<action>next_edit_point</action>
		</setup>
	</action>
	
	<action id="com.macrabbit.tea-for-two.text-actions.previous-edit-point" category="actions.text.html/tea.zen/tea.tagmanipulation/tea.balance">
		<script>zen_actions.js</script>
		
		<key-equivalent>control option arrow-left</key-equivalent>
		<setup>
			<action>prev_edit_point</action>
		</setup>
	</action>
	
	<!-- Wrapping actions -->
	
	<action id="com.macrabbit.tea-for-two.text-actions.wrap-in-snippet.tag" category="actions.text.html/tea.wrapping">
		<script>wrap_with_tag.js</script>
		
		<key-equivalent>control shift W</key-equivalent>
	</action>
	
	<action id="com.macrabbit.tea-for-two.text-actions.wrap-lines-in-snippet.tag" category="actions.text.html/tea.wrapping">
		<script>selected_lines_to_snippets.js</script>
		
		<key-equivalent>command control shift w</key-equivalent>
		<setup>
			<firstSnippet><![CDATA[<${1:li}>$EDITOR_SELECTION</${1/\s.*//}>]]></firstSnippet>
			<followingSnippet><![CDATA[<$1>$EDITOR_SELECTION</${1/\s.*//}>]]></followingSnippet>
			<finalAppend>$0</finalAppend>
		</setup>
	</action>
	
	<action id="com.macrabbit.tea-for-two.text-actions.wrap-selection-in-link" category="actions.text.html/tea.wrapping">
		<class>TEAInsertURLSnippet</class>
		<language-context>*:not(markdown)</language-context>
		<key-equivalent>control shift l</key-equivalent>
		<setup>
			<snippet><![CDATA[<a href="${1:$URL}">${EDITOR_SELECTION:$2}</a>]]></snippet>
		</setup>
	</action>
	
</action-recipes>
