Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Add completion suffix highlighting
- X-seq: zsh-workers 27468
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: Add completion suffix highlighting
- Date: Sat, 5 Dec 2009 20:49:37 +0100
- Cc: zsh workers <zsh-workers@xxxxxxx>
- 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=
- In-reply-to: <20091205193141.036672b7@pws-pc>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <237967ef0912041353g2ff47fa8m9dd274ed8b37511@xxxxxxxxxxxxxx> <20091205193141.036672b7@pws-pc>
2009/12/5 Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>:
> On Fri, 4 Dec 2009 22:53:58 +0100
> Mikael Magnusson <mikachu@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author