I changed the shell from bash to zsh, and I was wondering if this is possible for fuzzy complete commands, like using the Sublime Text palette. I think this concept of search, completion should be everywhere. It saves time.
An example :
cd dcmts -> cd Documents
cd dwnls/mnf -> cd Downloads/MyNewFolder
I saw the following project, and it is not very convincing.
zsh-fuzzy-match
And it seems you can define some settings or algorithms for setting the behavior of zsh on completion.
zstyle ':completion:*' completer _complete _match _approximate
zstyle ':completion:*:match:*' original only
zstyle ':completion:*:approximate:*' max-errors 10 numeric
The problem of the two previous solutions is that folders do not appear on top of the list when filling, when often what the user wants is required.
If you have some interesting .zshrc that doesn't allow for fuzzy searches, it would be interesting.
Thank you for your help.
source share