romkatv / zsh4humans

A turnkey configuration for Zsh
MIT License
1.81k stars 116 forks source link

Completion list-dirs-first #311

Closed poslat-pismo closed 5 months ago

poslat-pismo commented 5 months ago

Hello, is it possible to make fzf completion show directories first?

zstyle ':z4h:fzf-complete' sort false
zstyle ':z4h:fzf-complete' list-dirs-first true

or

zstyle ':completion:*' sort false
zstyle ':completion:*' list-dirs-first true

Both options are not working. What am I doing wrong?

romkatv commented 5 months ago

This works for me: https://github.com/romkatv/dotfiles-public/blob/b6657778b5a30b7dcf413ae0604a148741b40b5d/.zshrc#L167-L168

poslat-pismo commented 5 months ago

OK, I found that zstyle ':completion:*' file-patterns '^codeium:directories' was the problem Thank You