Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion and double quotes
- X-seq: zsh-users 15269
- From: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Completion and double quotes
- Date: Thu, 12 Aug 2010 12:03:56 +0100
- In-reply-to: <201008121253.54918.joke@xxxxxxxxx>
- 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
- Organization: Cambridge Silicon Radio
- References: <201008112130.10895.joke@xxxxxxxxx> <20100812103126.64aa5bce@xxxxxxx> <201008121253.54918.joke@xxxxxxxxx>
On Thu, 12 Aug 2010 12:53:52 +0200
Joke de Buhr <joke@xxxxxxxxx> wrote:
> On Thursday 12 August 2010 11:31:26 Peter Stephenson wrote:
> > On Wed, 11 Aug 2010 21:30:08 +0200
> >
> > Joke de Buhr <joke@xxxxxxxxx> wrote:
> > > Currently my completion is somehow configured to transform double
> > > quoted paths to backslash escaped paths.
> > >
> > > Example:
> > > ls /path/to/"file with"<TAB> -> /path/to/file\ with\ spaces
> > >
> > > I would like the completion not to touch the quotation.
> >
> > It's not configurable, but you can put the double quote right at
> > the start of the filename and it probably does what you want.
> >
>
> If put the double quote right at the start is there any way to get
> the completion to work paths beginning with "~" ?
Interesting case, and I think you're stuck there. Unless someone can see
an ingenious solution, the only way would be to expand the ~ first or use
variables. You could semi-automate converting the ~ to something starting
"/home/blah with some shell function magic, but without grungy changes deep
in the completion code I think that's as good as it's going to get.
--
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