From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27781 invoked by alias); 18 Feb 2014 16:08:26 -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: 18483 Received: (qmail 13639 invoked from network); 18 Feb 2014 16:08:09 -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=-0.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_NUMERIC_HELO,SPF_HELO_PASS autolearn=no version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Yuri D'Elia Subject: Re: widget special PREFIX variable and cursor position with complete_in_word Date: Tue, 18 Feb 2014 17:07:52 +0100 Message-ID: References: <140212214707.ZM25929@torch.brasslantern.com> <140213092531.ZM26966@torch.brasslantern.com> <140213223438.ZM27375@torch.brasslantern.com> <13128.1392379014@thecus.kiddle.eu> <13979.1392388765@thecus.kiddle.eu> <15748.1392413785@thecus.kiddle.eu> <12657.1392655814@thecus.kiddle.eu> <16810.1392737023@thecus.kiddle.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.106.183.18 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.3.0 In-Reply-To: <16810.1392737023@thecus.kiddle.eu> On 02/18/2014 04:23 PM, Oliver Kiddle wrote: > That's puzzling because all your examples work for me, at least > according to my expectations. That is both completion in general and the > _show_ambiguity function I posted. The files are added as matches with > backslash quoting for special characters. It isn't ideal if you use ' or > " in the middle of the word rather than the beginning or for completion > immediately after \ in the default configuration. Yes, but in the following case: mkdir x touch x/y x/z ls x/ the completion list for me is: y z while your original reply string will be: :=(#i)(x|)/(#b)(?|)*==4 this won't highlight anything in (y z) since you're matching a full path that starts with x/. Because if that works for you, I'm eager to understand how :P