From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15428 invoked by alias); 11 Apr 2015 20:03:11 -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: 20135 Received: (qmail 22743 invoked from network); 11 Apr 2015 20:02:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=Tmt1zZ8rZ9cFS2nLlIk2NySyBuJsek1zLkQ/dJf8yuM=; b=fLRfQU7R6JnixvsF2Mx68gy1bCnHRDCf4uPanVfPTqux1JYTP7jjzDfc2qloOAbMkB dKDS7tqPUSbSsNoRYzdz7AbDtgIP47mtpS/Eevc11dJQKuk5I7DLtS764gzQLMG7VRpK tkJt4ds/oEJ+laAwqoaIQNlXTYnk0eQl4yUncqzfNqCRvGZu6Urp+WhiOy5U+CZ8c4Sa 4fJLENG1f931gojeQKiozPKCpmzpFqgPUZNU1ui0WbuFQhx6PxlWMn03+Bi9b3cqhzBw filY17nfvdEpEygrzlcBzN3iaJREL79fVD6V2PJyOALmAAqQSyQHe0fU0/oFeNzxAgeF JwAw== X-Gm-Message-State: ALoCoQmzHoUEbm//yPXpHOncqar0tYwziNRPqOh/5G3BbMxa7y1MmheiabmqyYKxc8OpJD21Fc4n X-Received: by 10.182.165.4 with SMTP id yu4mr7009019obb.74.1428782573164; Sat, 11 Apr 2015 13:02:53 -0700 (PDT) From: Bart Schaefer Message-Id: <150411130249.ZM27498@torch.brasslantern.com> Date: Sat, 11 Apr 2015 13:02:49 -0700 In-Reply-To: Comments: In reply to Vadim Zeitlin "Re: show-ambiguity style" (Apr 11, 6:33pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: show-ambiguity style MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 11, 6:33pm, Vadim Zeitlin wrote: } } YDE> http://www.thregr.org/~wavexx/rnd/20141010-zsh_show_ambiguity/ } } Thanks for the post, this definitely was unknown to me. One question } though: is it possible to change the highlighting to use something other } than underlining? Zsh manual: show-ambiguity If the zsh/complist module is loaded, this style can be used to highlight the first ambiguous character in completion lists. The value is either a color indication such as those supported by the list-colors style or, with a value of true, a default of underlining is selected. The highlighting is only applied if the completion display strings correspond to the actual matches. So for example: autoload colors colors zstyle ':completion:*' show-ambiguity $color[bg-red] Completion gets screwed up if show-ambiguity is not an ANSI term color attribute or one of the "true" strings (which by the way means you can't use boldface because "1" means "true" and is therefore replaced with "4" for underlining, but you can use e.g. "1;7" for "bold reverse video"). Anyway, the point is there could be more internal sanity checking that the string that is output is going to make sense, but there currently is not, so use caution.