public
Description: Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2]
Homepage: http://groups.google.com/group/rubyonrails-textmate
Clone URL: git://github.com/drnic/ruby-on-rails-tmbundle.git
Search Repo:
Click here to lend your support to: ruby-on-rails-tmbundle and make a donation at www.pledgie.com !
Allow "Go to File" to work on file system paths containing 
spaces by URI escaping the file path sent to txmt://open [Michael Klett]
drnic (author)
Sun May 11 17:54:17 -0700 2008
commit  6d8b3018df6021b6520f2c77d6ed7c05c952ecb6
tree    3d5235c97147d8c126be9aa2b10e826339ca404a
parent  6ef4ec14258457ccced05042330c5a12601223f9
...
5
6
7
 
8
9
10
...
15
16
17
18
 
19
20
21
...
5
6
7
8
9
10
11
...
16
17
18
 
19
20
21
22
0
@@ -5,6 +5,7 @@
0
 # Description:
0
 # Helper module for accesing TextMate facilities such as environment variables.
0
 
0
+require 'uri'
0
 module TextMate
0
   class <<self
0
     def open_url(url)
0
@@ -15,7 +16,7 @@
0
     def open(filename, line_number = nil, column_number = nil)
0
       filename = filename.filepath if filename.is_a? RailsPath
0
       options = []
0
- options << "url=file://#{filename}"
0
+ options << "url=file://#{URI.escape(filename)}"
0
       options << "line=#{line_number + 1}" if line_number
0
       options << "column=#{column_number + 1}" if column_number
0
       open_url "txmt://open?" + options.join("&")

Comments

    No one has commented yet.