-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Description
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.66.1 (brew)
OS
- Linux
- macOS
- Windows
- Etc.
Shell
- bash
- zsh
- fish
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"
}
Metadata
Metadata
Assignees
Labels
No labels