Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Complete with *part* not part*



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