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

Re: Completion and double quotes



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