junegunn/fzf

FZF ignores nested files from $FZF_DEFAULT_COMMAND='fd' but not when piping fd into FZF

64-bitman opened this issue · 3 comments

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.52.0 (bcda25a)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

Download this source archive and extract test.tar.gz test.tar.gz.sig.gz

change directory to src/rxvt-unicode-9.31/

export FZF_DEFAULT_COMMAND=fd and run fzf
Enter something like xdefaults.c (located in the src/ directory)
There should be no matches

run fd | fzf
Do the same thing above
There should be matches

If you run fd alone it should list the files located in the src/ directory, but FZF for some reason ignores those files when using $FZF_DEFAULT_COMMAND.

The only thing that fixed this is by deleting .gitignore in the top level folder,
but I couldn't find anything about FZF handling .gitignore in the man page.