Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Complete with *part* not part*
- X-seq: zsh-users 21272
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Complete with *part* not part*
- Date: Fri, 12 Feb 2016 16:39:39 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=ALsSXsHIJpqTkYxmDif8GYOUiDdTnKOzJwSR8eW45aI=; b=uACy3v6jzxqNBfowO37pU0gKa+apF72ceAAwdGEuiu27F0LHvXDBQNpTiKJBf2L7cM 96i5P+obibGU+zB3AaZYAbDHHbvJjuLOVFcqlLBzi2V9/JqtEw7ldT25mgd0Q3h361Vt ladkT8uAGeRb4da8JDJTmc8CJIoUeQE4WbTat/7NzpILfSF6HKXT6QUAgeJ6r4yZ1+oe 681DDoFctmlev6oaSng1hAr9bEbe+QHIzv/P6jDMwIlGjr3o5d+4UjioxEvHYQIeiEbx z45EDLde4rHLOU6Nmp98kfJXFZCSEERbYRv4rjGu4UrYWq/ipnbRMI/cLaNTUnP/fivT 2L2Q==
- In-reply-to: <CAKc7PVCbo2jTacSQC9VZHATgH+qoWYSgTvFyHA1p-7Uz+fj7SA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCbo2jTacSQC9VZHATgH+qoWYSgTvFyHA1p-7Uz+fj7SA@mail.gmail.com>
On Fri, Feb 12, 2016 at 12:48 PM, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> Hello,
> when completing, entering "l"<TAB> will complete say "ls", "lsof",
> etc.. How to make "s"<TAB> complete ls, lsof, etc. ?
>
> I'm completing long names – names of plugins:
> plugins=( "$ZPLG_PLUGINS_DIR"/*(N:t) )
> _wanted plugins expl "Plugins" \
> compadd "$@" -a - plugins && ret=0
>
> want it be that "part" of plugin names will be completed not only as
> part* but also as *part*.
That's something the user configures, not something you put in the
completer. (Which they do with the matcher-list style).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author