Skip to content

Commit

Permalink
Adding support for LaTeX to the Hyperlink Helper bundle. (Patch due t…
Browse files Browse the repository at this point in the history
…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
Alex Ross committed Feb 3, 2009
1 parent 9a5a0cb commit d135908
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Commands/Basic Wikipedia.tmCommand
@@ -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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions Commands/Lookup Word : Selection on Google and Link.tmCommand
@@ -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>
Expand Down Expand Up @@ -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>
Expand Down
@@ -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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions Commands/Wrap Selection as Link.tmCommand
@@ -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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions Commands/Yahoo News Search.tmCommand
@@ -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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions Commands/Yahoo Related Suggestion.tmCommand
@@ -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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions Commands/Yahoo Video Search.tmCommand
@@ -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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions Commands/Yahoo Web Search.tmCommand
@@ -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>
Expand Down Expand Up @@ -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>
Expand Down
24 changes: 24 additions & 0 deletions Preferences/LaTeX.tmPreferences
@@ -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.