Closed osa1 closed 6 months ago
fzf doesn't know anything about .gitignore
. If you want CTRL-T binding to respect .gitignore
files, you need to install an external program such as fd or rg that understands them and set FZF_CTRL_T_COMMAND
.
See https://github.com/junegunn/fzf?tab=readme-ov-file#respecting-gitignore
man fzf
)Info
Problem / Steps to reproduce
The .gitignore pattern
**/foo
is not interpreted by fzf correctly. For example, in this repo https://github.com/zed-industries/zed,.gitignore
has this line:**/target
. However if I toctrl + t
and run the fzf from the master branch (1833670), the target directory is indexed.Relevant git documentation says: (https://git-scm.com/docs/gitignore#_pattern_format) (emphasis mine)
fzf does not interpret
**/foo
the same way asfoo
.