From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19853 invoked by alias); 24 Oct 2011 16:40:55 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16543 Received: (qmail 14320 invoked from network); 24 Oct 2011 16:40:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <111024094011.ZM7194@torch.brasslantern.com> Date: Mon, 24 Oct 2011 09:40:11 -0700 In-reply-to: <20111023173909.10b440b4@pws-pc.ntlworld.com> Comments: In reply to Peter Stephenson "Re: Completed filenames quoted instead of escaped?" (Oct 23, 5:39pm) References: <20111023173909.10b440b4@pws-pc.ntlworld.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Completed filenames quoted instead of escaped? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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 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.