From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20794 invoked by alias); 30 Mar 2016 03:06:51 -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: 21418 Received: (qmail 18960 invoked from network); 30 Mar 2016 03:06:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=mTd1WPkW6umMCkIjFCoEyjJswoB0Dj4A4PyS83JBMIU=; b=As+3ii69wSvMIG2zg6SeAInXbL4rHTX2RNIxd8mWryK7mXeUOkIxNT+vS/CZrK4y// ZMQACsWW0123DxocEyFDikbwezozl12e+pwkiCFRqWaPIegQnAC2esQJRLMRxeqSx3cP ehoZf6+L0vvTPMfdBilnDV/yo5xK4vSZhTDjUFJzjyMQcfH7wr87HjSMpU6OHR3H6A17 AGElQOiY4SLJtkfpL4e/XF1AdK2lWOc3aAeTWl77NdxEbmwA9xO2Cf6fuK1Eoi8jxDtt xVASiMgpKw8Zpe/No/GQ6WISRFUQ2e7sHn7Zjk5dJFB8lLV/VQ3F50XLmffDjP8KqHA6 BcsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=mTd1WPkW6umMCkIjFCoEyjJswoB0Dj4A4PyS83JBMIU=; b=Dksni+PHRrRzuEHp3dM0WGrnt2NXLAYgGNOH1teJux0v/fYkpXaeYEHd2gV6wexyPY OyL/AmWCe4LtG6Uwy4PMdQCfeT0INADLgb0nE10cy2m9fB0dxlUst/ZsFGDONg7qzcKX 65/1vY/hiNW3vcBm1ZlAV9K8aHTdpFnlug3U6RPhsucHG6p3iTG762LFfaNxvj2b2eRk H+9bOn6ZiuXUTGj0RCpUVHhhjbGLNyQSQ+SwNxms+YIAyrXtUPW2paR1iRfLiWvSmYyp OK9pd49LOL+ysKiH4OElEktSoRGIT1YQPas5l78YpWq5DSj4gLViL90fk5ktt2MVBTSz 0QQw== X-Gm-Message-State: AD7BkJIfJO7lYpkcp0KQLF81HsLpPuUuiSRg+ssrrxQfnQgd4poxicrsyCvuV+w6MY4O7+w9OtmBQU21nhzIdw== MIME-Version: 1.0 X-Received: by 10.112.124.137 with SMTP id mi9mr2696889lbb.112.1459307204974; Tue, 29 Mar 2016 20:06:44 -0700 (PDT) In-Reply-To: <56FB3F84.3010001@sergio.spb.ru> References: <56FB05B2.8000202@sergio.spb.ru> <160329171758.ZM31095@torch.brasslantern.com> <56FB3F84.3010001@sergio.spb.ru> Date: Tue, 29 Mar 2016 20:06:44 -0700 Message-ID: Subject: Re: completions quotation style From: Bart Schaefer To: Zsh Users Content-Type: text/plain; charset=UTF-8 On Tue, Mar 29, 2016 at 7:52 PM, sergio wrote: > > > ok, > > % ls '/tmp/a/ > > works, but it's not what mean. ---------- Forwarded message ---------- From: Bart Schaefer 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 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.