Skip to content
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

vim $(fzf) empty file #2561

Closed
10 tasks
lifeike opened this issue Jul 18, 2021 · 4 comments
Closed
10 tasks

vim $(fzf) empty file #2561

lifeike opened this issue Jul 18, 2021 · 4 comments
Labels

Comments

@lifeike
Copy link

lifeike commented Jul 18, 2021

  • I have read through the manual page (man fzf)
  • I have the latest version of fzf
  • I have searched through the existing issues

Info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Shell
    • bash
    • zsh
    • fish

Problem / Steps to reproduce

I selected the second search result in the interactive prompt console. There is content in the preview, when I open it. It's empty. And give me an error: "2 more files to edit" after I quit this empty file.

vim

@lifeike lifeike closed this as completed Jul 18, 2021
@lifeike lifeike reopened this Jul 18, 2021
@christian-schulze
Copy link

@lifeike i just tried this and it worked correctly. What output do you get when you run fzf directly and select a file?

@junegunn
Copy link
Owner

You should quote the command substitution if a path can contain whitespaces i.e. vim "$(fzf)"

Related #1667

@lifeike
Copy link
Author

lifeike commented Jul 20, 2021

You should quote the command substitution if a path can contain whitespaces i.e. vim "$(fzf)"

Related #1667

Hi junegunn, you know what. I Love you !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
thanks, solved !!!

@lifeike
Copy link
Author

lifeike commented Jul 20, 2021

@lifeike i just tried this and it worked correctly. What output do you get when you run fzf directly and select a file?

hi christian, thanks you as well. have a great day my pal~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants