Fuzzy fish-like filename completion #503
-
Hello, I'm converting from fish to zsh, and I'm trying to get my configuration to replicate the fuzzy filename completion after the last Do you know how I'm supposed to change zstyle to fix that? I suppose that I should be using the fuzzy completer style, but I didn't really find which zstyle incantation to use to target file completions, and to tell it to use that fuzzy (or loose) style. I don't understand how the common substring is chosen, I thought it would just be FTR, my .zshrc: # Set the zsh home and data path variables
DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
##################################
# Ensure zsh-snap
## Download Znap, if it's not there yet.
[[ -f "${DATA_HOME}/zsh-snap/znap.zsh" ]] ||
git clone --depth 1 -- \
https://github.com/marlonrichert/zsh-snap.git "${DATA_HOME}/zsh-snap"
source "${DATA_HOME}/zsh-snap/znap.zsh" # Start zsh-snap
## Znap plugins
znap source romkatv/powerlevel10k
### zsh-autocomplete config
zstyle ':autocomplete:*' widget-style menu-complete
zstyle ':completion:*:paths' path-completion yes
znap source marlonrichert/zsh-autocomplete
znap source zsh-users/zsh-autosuggestions
znap source zsh-users/zsh-syntax-highlighting
znap install zsh-users/zsh-completions
znap install Emiller88/guix-zsh-completions
# To customize prompt, run `p10k configure` or edit ${ZDOTDIR}/.p10k.zsh.
[[ ! -f "${ZDOTDIR}/.p10k.zsh" ]] || source "${ZDOTDIR}/.p10k.zsh" (I removed my path hacks and powerlevel10k config because I don't think they are relevant, but the full config is on Sourcehut) Thanks for this plugin and your time, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Try adding the following after sourcing Autocomplete: zstyle ':completion:*' completer \
_expand _complete _complete:-loose _complete:-fuzzy _ignored
zstyle ':autocomplete:*' min-input 1 |
Beta Was this translation helpful? Give feedback.
Try adding the following after sourcing Autocomplete: