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

IO error NotFound when using fzf #52

Open
fortes opened this issue Feb 1, 2021 · 3 comments
Open

IO error NotFound when using fzf #52

fortes opened this issue Feb 1, 2021 · 3 comments

Comments

@fortes
Copy link

fortes commented Feb 1, 2021

Thanks for this package, it's awesome!

I'm unable to use sad with the fzf preview window, I always get an error like so:

image

Here's what my env looks like for fzf:

~/dotfiles debian-buster *% [1]  env | rg fzf
FZF_COMPLETION_OPTS=-i
FZF_DEFAULT_COMMAND=bash -c "fdfind --type file --follow . \$(git rev-parse --show-cdup 2>/dev/null && echo --hidden)"
FZF_CTRL_T_COMMAND=fd_with_git --color always
FZF_CTRL_T_OPTS=--ansi --preview-window 'right:50%' --preview 'bat --color always --style=grid,changes --line-range :300 {}'
FZF_DEFAULT_OPTS=--height 60% --extended --bind ctrl-alt-a:select-all,ctrl-alt-d:deselect-all,F1:toggle-preview
@dmerejkowsky
Copy link

I think this is caused by fzf being in PATH, but not as /usr/bin/fzf

For instance, on my machine I have fzf in ~/.fzf/bin/fzf and I got the same bug. It was solved by installing fzf with yay.

@ms-jpq
Copy link
Owner

ms-jpq commented May 13, 2021

hummmm, interesting, I think this is an easy fix, will just have to use the which package instead of just doingfzf

sad/src/fzf.rs

Line 41 in 8f423fc

program: "fzf".to_owned(),

this line seems to be the issue

its weird though, because some how fzf is found by which but not in the PATH. i guess it will be solved one way or another

@fortes-codaio
Copy link

I think this is caused by fzf being in PATH, but not as /usr/bin/fzf

In my case, FZF is at /usr/bin/fzf and as you can see in the screenshot it gets launched -- the issue is that the preview window doesn't work

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

No branches or pull requests

4 participants