Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Command-T is unable to open files that have names starting from the plus sign (+) #46

Closed
wants to merge 1 commit into from

2 participants

@IvanUkhov

Hi,

People who are working with, for instance, MATLAB would appreciate this patch since, according to the naming convension of MATLAB, package names have to start from '+', but Command-T (just like Vim inself) fails to open such names.

Regards,
Ivan

@wincent
Owner

Thanks for the pull request. Looks good, will apply.

@wincent
Owner

Applied to the next branch. Will graduate to master after testing.

@wincent wincent closed this
@blueyed blueyed referenced this pull request from a commit in blueyed/Command-T
Ivan Ukhov Make Command-T open files starting with + (plus)
People who are working with, for instance, MATLAB would appreciate this
patch since, according to the naming convension of MATLAB, package names
have to start with '+', but Command-T (just like Vim inself) fails to
open such names.

Tweaks from initial published version[1]:

- added rationale from pull request[2] to commit message

[1]: UVSoft/Command-T@69b0361
[2]: wincent#46

Signed-off-by: Wincent Colaiuta <win@wincent.com>
5c51bca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 21, 2012
  1. Make Command-T open files starting from + (plus)

    Ivan Ukhov authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  ruby/command-t/controller.rb
View
1  ruby/command-t/controller.rb
@@ -260,6 +260,7 @@ def open_selection selection, options = {}
selection = File.expand_path selection, @path
selection = relative_path_under_working_directory selection
selection = sanitize_path_string selection
+ selection = File.join('.', selection) if selection =~ /^\+/
ensure_appropriate_window_selection
@active_finder.open_selection command, selection, options
Something went wrong with that request. Please try again.