Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: known hosts tab completion
- X-seq: zsh-workers 30525
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: known hosts tab completion
- Date: Sun, 24 Jun 2012 17:49:00 +0100
- In-reply-to: <CAHYJk3Q5UhvykJ3D3JmaAE8v2DaYDi0jGYo2wX_dhdMuVzPuMA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAMcVnE1Q8DU-DhY+5mxOJi4FLD_T4oWajJ+ANoAy9a8GmEF3qQ@mail.gmail.com> <120623111812.ZM13306@torch.brasslantern.com> <CAHYJk3Q5UhvykJ3D3JmaAE8v2DaYDi0jGYo2wX_dhdMuVzPuMA@mail.gmail.com>
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