Permalink
Browse files

Adding support for LaTeX to the Hyperlink Helper bundle. (Patch due t…

…o Matt

Foster: http://lists.macromates.com/textmate-dev/2009-January/013391.html)

git-svn-id: http://svn.textmate.org/trunk/Bundles/Hyperlink Helper.tmbundle@11214 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 9a5a0cb commit d135908046f772f7576957290a7819a71f193b79 @lasersox lasersox committed Feb 3, 2009
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
@@ -40,7 +40,7 @@ print ERB.new(ENV['TM_LINK_FORMAT']).result</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
- <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext</string>
+ <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext, text.tex.latex</string>
<key>uuid</key>
<string>71C47F5F-41FA-40E8-A13A-238BC30984D1</string>
</dict>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
@@ -42,7 +42,7 @@ print ERB.new(ENV['TM_LINK_FORMAT']).result</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
- <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext</string>
+ <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext, text.tex.latex</string>
<key>uuid</key>
<string>D2F3BE59-1349-4762-9B17-A6F79A7F81B9</string>
</dict>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
@@ -101,7 +101,7 @@ print ERB.new(ENV['TM_LINK_FORMAT']).result
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
- <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext</string>
+ <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext, text.tex.latex</string>
<key>uuid</key>
<string>B94A2DF9-FC40-4281-80FB-35FB2917CDE7</string>
</dict>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
@@ -54,7 +54,7 @@ print ERB.new(ENV['TM_LINK_FORMAT']).result
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
- <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext</string>
+ <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext, text.tex.latex</string>
<key>uuid</key>
<string>A42DC78E-6588-476F-8A00-40B8CCC6D2E0</string>
</dict>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
@@ -42,7 +42,7 @@ ysuggest = []
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
- <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext</string>
+ <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext, text.tex.latex</string>
<key>uuid</key>
<string>41D61EE6-B8A9-4C21-9ECE-E336588423DB</string>
</dict>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
@@ -37,7 +37,7 @@ ysuggest = []
<key>output</key>
<string>replaceSelectedText</string>
<key>scope</key>
- <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext</string>
+ <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext, text.tex.latex</string>
<key>uuid</key>
<string>6511380B-D4C7-408B-85FF-9E98C6AAEB4A</string>
</dict>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
@@ -42,7 +42,7 @@ ysuggest = []
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
- <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext</string>
+ <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext, text.tex.latex</string>
<key>uuid</key>
<string>50A08D59-18D6-48C1-938D-6644906F5C83</string>
</dict>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
@@ -42,7 +42,7 @@ ysuggest = []
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
- <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext</string>
+ <string>text.html, text.html.markdown, text.html.textile, text.bbcode, text.moinmoin, text.restructuredtext, text.tex.latex</string>
<key>uuid</key>
<string>2E03E8C8-DC99-4D15-AE46-0E8DCE6BBE6F</string>
</dict>
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>name</key>
+ <string>LaTeX</string>
+ <key>scope</key>
+ <string>text.tex.latex</string>
+ <key>settings</key>
+ <dict>
+ <key>shellVariables</key>
+ <array>
+ <dict>
+ <key>name</key>
+ <string>TM_LINK_FORMAT</string>
+ <key>value</key>
+ <string>\href{&lt;%= e_sn url %&gt;}{&lt;%= e_sn input %&gt;}</string>
+ </dict>
+ </array>
+ </dict>
+ <key>uuid</key>
+ <string>22EC4A8D-69B4-44D5-A029-EE67B144B53E</string>
+</dict>
+</plist>

0 comments on commit d135908

Please sign in to comment.