Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh autocompletion with no access to a parent directory
- X-seq: zsh-users 15010
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Zsh autocompletion with no access to a parent directory
- Date: Wed, 14 Apr 2010 10:14:25 +0100
- In-reply-to: <361816B9-75B6-4C88-8BE9-097B33CA2283@xxxxxxxxxxxx>
- 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: <3663DC29-7A8F-4A0C-8262-5FFE701C8E3A@xxxxxxxxxxxx> <20100413174533.5a15043a@news01> <361816B9-75B6-4C88-8BE9-097B33CA2283@xxxxxxxxxxxx>
Matt Wright wrote:
> > You can try telling completion to accept any directory that it knows exis=
> ts
> > without trying to expand the path:
> >=20
> > zstyle ':completion:*' accept-exact-dirs true
> >=20
> > I'm not sure if this will help in the case you're describing, however,
> > since it looks like it might not be able to tell if the directory exists.
> > You'll need zsh 4.3.
>
> Another thought, is it possible to get it to /never/ expand directories.
(i.e. directories up to the / before the cursor). That would make
perfect sense as an option, but unfortunately the file completion code
lives in one of the ditches in the eighth circle of hell ("Malecompo",
or something like that), and we're worried we won't be able to get back
from there. However, you might have imagined that it wouldn't be too
difficult to extend accept-exact-dirs, which in turn wasn't so difficult
to add.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author