Permalink
Browse files

Change tm-file: → file:

  • Loading branch information...
1 parent 8ff10dd commit 75d073b3be2345e0ef657bd5a4f7687485d7b30f @infininight infininight committed Aug 26, 2012
Showing with 11 additions and 11 deletions.
  1. +9 −9 Commands/Doc Lookup.tmCommand
  2. +1 −1 Commands/qmake Manual.tmCommand
  3. +1 −1 Support/bin/search.rb
View
18 Commands/Doc Lookup.tmCommand
@@ -20,7 +20,7 @@ else
doc_file = "#{dir}/#{word.downcase}.html"
if File.exists? doc_file
- TextMate::exit_show_html "<meta http-equiv='Refresh' content='0;URL=tm-file://#{doc_file}'>"
+ TextMate::exit_show_html "<meta http-equiv='Refresh' content='0;URL=file://#{doc_file}'>"
else
spotted = `mdfind #{word}`
files = spotted.grep %r{^#{Regexp::escape dir}/.+\.html$}
@@ -44,13 +44,13 @@ else
<body>
<div class="navi">
- <img src="tm-file://#{dir}/images/qt-logo.png">
- <a href="tm-file://#{dir}/index.html">Home</a> ·
- <a href="tm-file://#{dir}/classes.html">All Classes</a> ·
- <a href="tm-file://#{dir}/mainclasses.html">Main Classes</a> ·
- <a href="tm-file://#{dir}/groups.html">Grouped Classes</a> ·
- <a href="tm-file://#{dir}/modules.html">Modules</a> ·
- <a href="tm-file://#{dir}/functions.html">Functions</a>
+ <img src="file://#{dir}/images/qt-logo.png">
+ <a href="file://#{dir}/index.html">Home</a> ·
+ <a href="file://#{dir}/classes.html">All Classes</a> ·
+ <a href="file://#{dir}/mainclasses.html">Main Classes</a> ·
+ <a href="file://#{dir}/groups.html">Grouped Classes</a> ·
+ <a href="file://#{dir}/modules.html">Modules</a> ·
+ <a href="file://#{dir}/functions.html">Functions</a>
</div>
<h1>Spotlight results for '#{word}'</h1><ul>}
@@ -64,7 +64,7 @@ else
intro = intro.first.gsub(/<.+?>/, '')[0..(107-title.size)]+'…'
end
- puts %{<li><a href="tm-file://#{file.chop}">#{title}</a>
+ puts %{<li><a href="file://#{file.chop}">#{title}</a>
<span class="intro">#{intro}</span></li>}
end
puts "</ul></body></html>"
View
2 Commands/qmake Manual.tmCommand
@@ -5,7 +5,7 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>echo "&lt;meta http-equiv='Refresh' content='0;URL=tm-file://${TM_QT_DOC_DIR:=/usr/local/Trolltech/Qt-4.2.0/doc/html}/qmake-manual.html'&gt;"</string>
+ <string>echo "&lt;meta http-equiv='Refresh' content='0;URL=file://${TM_QT_DOC_DIR:=/usr/local/Trolltech/Qt-4.2.0/doc/html}/qmake-manual.html'&gt;"</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
View
2 Support/bin/search.rb
@@ -31,7 +31,7 @@ def close_browser
end
def redirect(url)
- puts "<meta http-equiv='Refresh' content='0;URL=tm-file://#{url}'>"
+ puts "<meta http-equiv='Refresh' content='0;URL=file://#{url}'>"
end
do_fuzzy = ARGV.find { |a| a == "fuzzy" }

0 comments on commit 75d073b

Please sign in to comment.