zsh: Make _fzf_compgen_{path,dir} respect FZF_COMPLETION_{PATH,DIR}_OPTS

Authored by: @LangLangBart

Fix #4592
This commit is contained in:
Junegunn Choi
2026-02-20 10:29:08 +09:00
parent 385cccd362
commit fefea8d885
2 changed files with 3 additions and 2 deletions

View File

@@ -46,6 +46,7 @@ CHANGELOG
(`SHIFT-DELETE`)
- Added fish completion support (#4605) (@lalvarezt)
- zsh: Handle multi-line history selection (#4595) (@LangLangBart)
- zsh: Fixed `_fzf_compgen_{path,dir}` to respect `FZF_COMPLETION_{PATH,DIR}_OPTS` (#4592) (@LangLangBart)
- Bug fixes
- Fixed `--preview-window follow` not working correctly with wrapping (#3243, #4258)
- Fixed symlinks to directories being returned as files (#4676) (@skk64)

View File

@@ -204,12 +204,12 @@ __fzf_generic_path_completion() {
_fzf_path_completion() {
__fzf_generic_path_completion "$1" "$2" _fzf_compgen_path \
"-m" "" " "
"${FZF_COMPLETION_PATH_OPTS-} -m" "" " "
}
_fzf_dir_completion() {
__fzf_generic_path_completion "$1" "$2" _fzf_compgen_dir \
"" "/" ""
"${FZF_COMPLETION_DIR_OPTS-}" "/" ""
}
_fzf_feed_fifo() {