zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <Peter.Stephenson@csr.com>
To: zsh-users@zsh.org
Subject: Re: Completion and double quotes
Date: Thu, 12 Aug 2010 12:03:56 +0100	[thread overview]
Message-ID: <20100812120356.517aec61@csr.com> (raw)
In-Reply-To: <201008121253.54918.joke@seiken.de>

On Thu, 12 Aug 2010 12:53:52 +0200
Joke de Buhr <joke@seiken.de> 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@seiken.de> 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@csr.com>            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


  reply	other threads:[~2010-08-12 11:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-11 19:30 Joke de Buhr
2010-08-11 21:51 ` Benjamin R. Haskell
2010-08-11 22:29   ` Joke de Buhr
2010-08-12  9:31 ` Peter Stephenson
2010-08-12 10:53   ` Joke de Buhr
2010-08-12 11:03     ` Peter Stephenson [this message]
2010-08-12 15:57   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100812120356.517aec61@csr.com \
    --to=peter.stephenson@csr.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).