-
-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working with MATLAB folders with special symbols #404
Comments
Thanks for the report, it's a bug of vim plugin and is a fairly easy one to fix, except I have to make sure that the fix also works on Windows. @janlazo Hi, I just realized that we should be using Related: vim/vim#541 diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 24427be..adb0822 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -149,13 +149,7 @@ function! s:tmux_enabled()
endfunction
function! s:escape(path)
- let escaped_chars = '$%#''"'
-
- if has('unix')
- let escaped_chars .= ' \'
- endif
-
- return escape(a:path, escaped_chars)
+ return fnameescape(a:path)
endfunction
" Upgrade legacy options |
let path = fnameescape(a:path)
return s:is_win ? escape(path, '$') : path |
@janlazo Thanks. So that's all we need? Good to know that the solution is simple. |
I have recently had to work a lot on MATLAB codes and MATLAB follows a very weird structure to construct namespaces and classes. To create namespaces, the folder has to be prefixed by the character
+
, like+foo
, and classes have to be preceded by the character@
, like@bar
. When I try to use:GFiles
to navigate this project (with such special characters in folder names), and access a file such as+foo/@bar/baz.m
, I get the following error message.I get the same error when I use
:Files
or even just:FZF
. I'm not sure how to handle this error. I am able to reproduce this with the minimal configuration. To reproduce you need a file with structure+foo/@bar/baz.m
under a git controlled repository.The text was updated successfully, but these errors were encountered: