junegunn / fzf.vim

fzf :heart: vim
MIT License
9.59k stars 582 forks source link

Troubleshooting suggestion: beware including bash aliases #1372

Open daveriedstra opened 2 years ago

daveriedstra commented 2 years ago

The fzf wiki suggests an alias to fd which might interfere with :FZF and :Files if vim is configured to include that alias and if $FZF_DEFAULT_COMMAND uses fd or fdfind (which is also suggested by the fzf readme).

The way this issue manifests is as the plugin working correctly but showing no file matches in the preview window / apparently finding no files. The quick fix is to remove or rename the alias.

I'm writing this issue to a) suggest that this be pointed out somewhere (only since some potential causes are suggested by fzf) and b) provide a search result for people who might run into the issue in the future.

Thanks for all your excellent work on this and other projects!