Closed grappas closed 2 years ago
Are you running the latest version of the main repo?
Is this patch included in your copy? https://github.com/junegunn/fzf/commit/728f73528192a24e01f63fed3f4215125543c937
Are you running the latest version of the main repo?
Installed with vim-plug, so yes I think so.
Is this patch included in your copy?
It not seems to be there
It not seems to be there
Strange. Why git pull
is not fetching the latest commits?
https://github.com/junegunn/fzf/commits/master
What does git show-ref HEAD
show in plugged/fzf
directory?
What does git show-ref HEAD show in plugged/fzf directory?
Then you have the latest version. A few questions:
:echo &shell
?:echo fzf#exec()
:echo system(fzf#exec() . ' --version')
:echo system(shellescape(fzf#exec()) . ' --version')
:echo system('&' . shellescape(fzf#exec()) . ' --version')
:echo &shell?
:echo fzf#exec()
:echo system(fzf#exec() . ' --version')
:echo system(shellescape(fzf#exec()) . ' --version')
:echo system('&' . shellescape(fzf#exec()) . ' --version')
if has('win64') set shell=powershell.exe set shellxquote= let &shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command ' let &shellquote = '' let &shellpipe = '| Out-File -Encoding UTF8 %s' let &shellredir = '| Out-File -Encoding UTF8 %s' endif
in init.vim
Can you try applying this patch to the main fzf repo and see if it helps?
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 6fada6c..4dd7ece 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -164,7 +164,7 @@ function s:get_version(bin)
if has_key(s:versions, a:bin)
return s:versions[a:bin]
end
- let command = (&shell == 'powershell' ? '&' : '') . shellescape(a:bin) . ' --version --no-height'
+ let command = (&shell =~ 'powershell' ? '&' : '') . shellescape(a:bin) . ' --version --no-height'
let output = systemlist(command)
if v:shell_error || empty(output)
return ''
Yep - it done the trick.
Have a 🍺 :)
Thanks for the confirmation, I've pushed to fix to master.
man fzf
)I have recently got back on Windows, fired PlugInstall and all of the sudden I cannot run fzf anymore. Seems like plugin uses slashes in path instead of backslashes. Running neovim 0.7.2 on Windows 11.![obraz](https://user-images.githubusercontent.com/1036957/181834511-fb5b8ccd-818f-46dd-870d-091055f2b400.png)