Checklist
Output of fzf --version
0.66.1 (brew)
OS
Shell
Problem / Steps to reproduce
Hi!
I was running into an issue where my FZF_COMPLETION_DIR_OPTS and FZF_COMPLETION_PATH_OPTS were not being respected. After much troubleshooting, it seems the issue only occurs when _fzf_compgen_path and _fzf_compgen_dir are defined.
Is there a way to fix this?
If it matters, here's the part of my .zshrc:
export FZF_DEFAULT_COMMAND='fd --hidden --follow'
export FZF_DEFAULT_OPTS='--style full'
export FZF_COMPLETION_OPTS='--style full'
export FZF_COMPLETION_DIR_OPTS='--preview="ls {}"'
export FZF_COMPLETION_PATH_OPTS='--preview="bat --color=always --style=numbers --line-range=:250 {}"'
_fzf_compgen_path() {
fd -d 1 --type f --hidden --follow "$1"
}
_fzf_compgen_dir() {
fd -d 1 --type d --hidden --follow "$1"
}
Checklist
man fzf)Output of
fzf --version0.66.1 (brew)
OS
Shell
Problem / Steps to reproduce
Hi!
I was running into an issue where my
FZF_COMPLETION_DIR_OPTSandFZF_COMPLETION_PATH_OPTSwere not being respected. After much troubleshooting, it seems the issue only occurs when_fzf_compgen_pathand_fzf_compgen_dirare defined.Is there a way to fix this?
If it matters, here's the part of my .zshrc: