Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Completion matching from the left first, then fuzzy
- X-seq: zsh-users 23288
- From: Eric Nielsen <eric@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Completion matching from the left first, then fuzzy
- Date: Thu, 29 Mar 2018 00:12:24 +0000
- Accept-language: en-US, pt-BR
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
- Thread-index: AQHTxvJzBdkrG6m0f0O9InCa5bhr9Q==
- Thread-topic: Completion matching from the left first, then fuzzy
I have the following matcher-list configuration:
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' '+r:|?=**'
It's case-insensitive, but most importantly for what I want to discuss, it does
a (default) match from the left first, then a fuzzy match.
I'm getting the following behavior when trying to complete `ef`:
% touch abef abcdef
% vi ef
press <tab>
% vi abef
^ cursor here
press <tab>
% vi abef
^ cursor here
Behavior is the same as described above even if I `setopt COMPLETE_IN_WORD`.
I would expect the following behavior, at least when `COMPLETE_IN_WORD` is
enabled:
% touch abef abcdef
% vi ef
press <tab>
% vi abef
^ cursor here
press <tab>
% vi abef
^ cursor here, and menu is displayed below
-- file --
abcdef abef
What am I missing in my configuration?
As expected, I get the following behavior when completing `ab`:
% touch abef abcdef
% vi ab
press <tab>
% vi ab
^ cursor here, and menu is displayed below
-- file --
abcdef abef
Cheers,
Eric Nielsen
Messages sorted by:
Reverse Date,
Date,
Thread,
Author