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

Re: known hosts tab completion



On Sat, 23 Jun 2012 20:28:00 +0200
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> The default matcher-list for host completion does have the . in it, or
> rather it uses a hardcoded compadd -M 'm:{a-zA-Z}={A-Za-z} r:|.=*
> r:|=*', as do a couple of other completions. zsh -f gives me the
> "magic" behaviour with just compinit, and I don't think you can
> override compadd -M 'foo' provided stuff with styles.

(This bit moved to workers.)

That seems a bit of hole in the system.  I wonder what the neatest fix
is.  A function front-end to compadd for completions that supply
matchers is the obvious answer (I mean something specific like
compadd_match, not overriding compadd which is obscure and conflicts
with approximate matching).  We'd need it only to do that for specific
enough matches, i.e. not your standard matcher-list.  Not sure what
constitutes "specific enough".

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author