Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
String partial match from both left and right.
- X-seq: zsh-workers 43354
- From: Abhijeet Rastogi <abhijeet.1989@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: String partial match from both left and right.
- Date: Fri, 31 Aug 2018 15:54:02 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=14a+UjSucDAhOIP/J5ZHds0W91DEH6qY81rppRqJAaQ=; b=PmKEjOtaulxwT7aJQ1Lvzxjd6+UAm6j39C2j2Jr3SGtWGYKm/i8lFZNyfRSDjZmFab stCi7zosaXZtI94vPs3OpXtP74+9eKFbfjYI9/vzeOXr5BvNSqPsP8KwMACAhwyPpIeA 0rhY00u5TaAIzOgoKqP+afEG4iPqE9CMvIgu3yTOlRArtO6p3satCQcQUiu7Jjs4f3vH NtGPQJBcPIrjyTu3659QVKvJZTBGH5QCd22mvyXzEGHBZcV9r1WzhLXN5PlplTChwibh koRsuLF61Kdx833gGECUze+ZjYI8ZrLAa+uGeQOSdCPfNMOKNjfwJJB3juCK+NrKZUbF ONeg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi everyone,
I have this super simple zsh completion function.
function hello() {
arg=${@[1]}
echo $arg
}
function _hello {
_values -s ' ' 'dashboards' foo bar foo-bar
}
compdef _hello hello
And what I want is, if I do:-
$hello bar<TAB>
I want `foo-bar` to come in the completion menu. I figured that it has
something to do with mater-list but I can't seem to get it working.
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'l:|=* r:|=*'
Let me know if you guys need any more debugging info. I've been scratching
my head on this one but can't get it to work.
--
Cheers,
Abhijeet Rastogi (shadyabhi)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author