From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4795 invoked by alias); 1 Mar 2014 22:54:32 -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: 32454 Received: (qmail 17001 invoked from network); 1 Mar 2014 22:54:26 -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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5i9Cf0vY3gTLZe3SWUdLN0jV0csJN8WGPm/WhPQtAIk=; b=IaH95nJKFrQ9Fj5JAQpcTjpjNXBYG5mkCKp10TLu7FXIgXzotxCUAxR+dhjpNC4HYy XPAf+Jh03ctXoR+EZi9lBQcyXGBEBwCdCEgnI9SVqZ+ITafuuc2YrTvC28u/Z9JKeb8o gNehFUyhmGF/DUIyo6QG0h/2kMy/L/FpeqPggc6SNC4kZZk4YVEYMDdbK73oQ1597Bqj UxVe4cXWCHgzuIKdy4jO4FqlME5QReSKakxhbcVPMU5i4wf2gh49osUQ7MQ4ZLGLRs7C H7sfc6vyxa4aJn/f4OEm6BA1jw1rPjC72mDDjSiSipqcmGPXmBr4ZaG07nS0nsp77rHc fXaw== MIME-Version: 1.0 X-Received: by 10.224.172.133 with SMTP id l5mr13716907qaz.25.1393714462251; Sat, 01 Mar 2014 14:54:22 -0800 (PST) In-Reply-To: <626.1393625311@thecus.kiddle.eu> References: <29011.1393594448@thecus.kiddle.eu> <626.1393625311@thecus.kiddle.eu> Date: Sat, 1 Mar 2014 23:54:22 +0100 Message-ID: Subject: Re: completer for file extensions From: Mikael Magnusson To: Oliver Kiddle Cc: Zsh workers Content-Type: text/plain; charset=UTF-8 On 28 February 2014 23:08, Oliver Kiddle wrote: > Mikael Magnusson wrote: >> This - needs to be a .. or BRACE_CCL needs to be set locally. Even > > Thanks. It also needs to be .. to work for a number greater than 9. > >> with this fix, the completer does nothing for me. I tried printing >> both $files and $mfiles and they contain more or less the correct list >> of extensions, but nothing shows up through the completion system. > > I checked and it works for me starting from zsh -f. > If even mfiles contains a list of more than one extension then I can't > see why the compadd would fail to add matches. Have you got any matching > controls specified? What's your full completer list? > > Oliver Okay, my problem was just that I have a stupid command_not_found_handler that tries to autoload and execute things, and of course that is run in a subshell so no completions were added in the parent shell. (eg, I forgot to rm .zcompdump). I have a number of screenshots with . in the name and it causes these completions to be added; .00.png .09.16.png .13580 .16.png .36.04.png .58.png .letter .wav .04.png .09.18.png .14.png .18.png .36.45.png .6.33.config .log .06.png .09.20.png .14460 .20.png .37.04.png .bin .log.13580 .09.11.png .11.png .14460-1 .27.00.png .37.06.png .cfg .log.14460 .09.12.png .12.png .14460-2 .32.18.png .45.png .conf .png .09.14.png .12863-1 .16.58.png .33.config .49.11.png .config .tar I guess you go for the first . to get stuff like .tar.gz? Tarballs often have . in the name for version numbers so I have the same issue in that directory; .0.1.zip .0.14.tar.gz .0.16.tar.gz .0.17-patches-0.1.tar.bz2 .0.2.tar.bz2 .0.2.tgz .0.21.tgz -- Mikael Magnusson