PatrickF1 / fzf.fish

🔍🐟 Fzf plugin for Fish
MIT License
1.96k stars 78 forks source link

Unknown command set -f file_paths_selected ($fd_cmd 2>/dev/null | _fzf_wrapper $fzf_arguments) #304

Closed Drew-Daniels closed 1 year ago

Drew-Daniels commented 1 year ago

Before proceeding...

Describe the bug

After installing fzf.fish, and updating theDirectory keybinding to CTRL + F, I get the following error:

❯ fish: Unknown command: fd
in command substitution
    called on line 25 of file ~/projects/dotfiles/fish/functions/_fzf_search_directory.fish
in function '_fzf_search_directory'
~/projects/dotfiles/fish/functions/_fzf_search_directory.fish (line 25): Unknown command
        set -f file_paths_selected ($fd_cmd 2>/dev/null | _fzf_wrapper $fzf_arguments)

I had to update this keybinding because the keybindings using the ALT key do not work on my Mac for some reason. I was able to update and use every one except for this one, where once I was able to update it to a keybinding that would work on my computer, I got the above error message.

If applicable, include screenshots here.

image

Steps to reproduce

Environment

Versions installed:

Which, if any, configuration variables such as fzf_preview_file_cmd are set?


# in my 'config.fish'

fzf_configure_bindings --processes=\cp --git_status=\cs --git_log=\cl --directory=\ce

## Additional context
PatrickF1 commented 1 year ago

Hi Drew, how did you install fd?

Drew-Daniels commented 1 year ago

Arg, sorry that was my mistake. Looks like it wasn't installed.

It was fixed as soon as I ran brew install fd.

Sorry about that, and thanks for the quick reply!

PatrickF1 commented 1 year ago

No problem, it happens :)