zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: completions quotation style
Date: Tue, 29 Mar 2016 20:06:44 -0700	[thread overview]
Message-ID: <CAH+w=7Z1BT4V-qoqMrS7G1AaE+9HTbcVBEPMogmaVTSnZxkFww@mail.gmail.com> (raw)
In-Reply-To: <56FB3F84.3010001@sergio.spb.ru>

On Tue, Mar 29, 2016 at 7:52 PM, sergio <mailbox@sergio.spb.ru> wrote:
>
>
> ok,
>
> % ls '/tmp/a/<TAB>
>
> works, but it's not what mean.

---------- Forwarded message ----------
From: Bart Schaefer <schaefer@brasslantern.com>
Date: Mon, Oct 24, 2011 at 9:40 AM
Subject: Re: Completed filenames quoted instead of escaped?
To: zsh-users@zsh.org


On Oct 23,  5:39pm, Peter Stephenson wrote:
} Subject: Re: Completed filenames quoted instead of escaped?
}
} On Sat, 22 Oct 2011 17:25:43 +0000 (UTC)
} Daniel <quite@hack.org> wrote:
} > I would like completed and expanded filenames to generally "be quoted"
} > instead\ of\ escaped. Would that be possible? If find that more readable.
}
} If you type " before a filename, it will be completed in double quotes
} and (when possible) another " added at the end.  It's not possible to
} configure it to add a double quote in front only when needed.

I seem to recall writing a widget that would insert a quote, then do
completion, and then if nothing changed remove the quote again.  Oh,
yes:

    Functions/Zle/quote-and-complete-word

Search the zsh-users archives for "completion;quote" and you should
find a couple of threads from 2010 discussing this.


  reply	other threads:[~2016-03-30  3:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29 22:46 sergio
2016-03-30  0:17 ` Bart Schaefer
2016-03-30  2:52   ` sergio
2016-03-30  3:06     ` Bart Schaefer [this message]
2016-03-30  2:38 sergio

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='CAH+w=7Z1BT4V-qoqMrS7G1AaE+9HTbcVBEPMogmaVTSnZxkFww@mail.gmail.com' \
    --to=schaefer@brasslantern.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).