From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1416 invoked by alias); 5 Dec 2009 19:49:54 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27468 Received: (qmail 18947 invoked from network); 5 Dec 2009 19:49:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.219.220 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=USEXDSjBObAkHvNrUq59W61EJFi3V4Kq8wRvwXJj8g4=; b=hXY4hhfV5A/41v+btCjMSEOLxu0BVe2S3yd6jslAjU6Gfh3GwDhmGgaiyQZpSInneC UsW4jX/4GmFacvcs0zhZxR+b/XxcUSNR5z/PXwFHn9/ZcgQBEVo1rcs0B4Z6Y3Y/qsYi bQvCePunPTyU9H+rN8zifX/CcGRwChKN0aMPg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=UN471b0XRO9Dniqim4UoMPICM6Kzz7+F7cdRfqBjlI2o2iCQ2XYqeakPYqCR8OPuxv RjheRccl5IxWULUNDFRfuOVEVr5+skwLnXoQ235uWH47I8/n/YvBhyR5APrNHG4yTEkL 9ilPxgPyszOlY05KvISrK2mdxF5goY42ynpcU= MIME-Version: 1.0 In-Reply-To: <20091205193141.036672b7@pws-pc> References: <237967ef0912041353g2ff47fa8m9dd274ed8b37511@mail.gmail.com> <20091205193141.036672b7@pws-pc> Date: Sat, 5 Dec 2009 20:49:37 +0100 Message-ID: <237967ef0912051149v169754b4q26be5e6ce60952dd@mail.gmail.com> Subject: Re: Add completion suffix highlighting From: Mikael Magnusson To: Peter Stephenson Cc: zsh workers Content-Type: text/plain; charset=UTF-8 2009/12/5 Peter Stephenson : > On Fri, 4 Dec 2009 22:53:58 +0100 > Mikael Magnusson wrote: >> I have a friend who just started using zsh a while ago, and she >> complained about / being removed when she pressed enter after >> completing a directory to rsync. Apparently rsync behaves differently >> with and without the / in place. We tried setting >> ZLE_REMOVE_SUFFIX_CHARS to nothing and using zle auto-suffix-retain in >> an accept-line hook, but then we realized it would be better if you >> could tell more easily if the suffix would be removed or not. So I >> whipped this up and somehow it worked on the first try (no guarantees >> though :). Given my poor track record of posting patches via email, >> here is a link to the patch, and I'll just paste in the essence of the >> patch for reference. > > I'll commit this as it is with the following documentation and see > what happens---I think highlighting removable suffixes is actually quite > intuitive. Note, however, there are a lot of cases in which bold fonts > aren't supported. > > Thanks. Ah, I think I meant to add at least the example too, but obviously forgot, thanks. I also meant to ask if the variable I check for the suffix length was the correct one, I was somewhat confused when I discovered the suffix list. Is there any completion that actually uses the multiple suffix feature? -- Mikael Magnusson