From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14018 invoked from network); 16 Feb 2001 18:21:25 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Feb 2001 18:21:25 -0000 Received: (qmail 28938 invoked by alias); 16 Feb 2001 18:21:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3627 Received: (qmail 28923 invoked from network); 16 Feb 2001 18:21:07 -0000 Date: Fri, 16 Feb 2001 10:23:38 -0800 (PST) From: Wayne Davison X-Sender: wayne@phong.blorf.net To: Bart Schaefer Cc: Louis-David Mitterrand , zsh-users@sunsite.auc.dk Subject: Re: "rehash" each time a new program is installed? In-Reply-To: <1010215193109.ZM12208@candle.brasslantern.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 15 Feb 2001, Bart Schaefer wrote: > On Feb 15, 6:57pm, Louis-David Mitterrand wrote: > } Oh, and a last one ;) Is it possible to "fignore" a file except when > } it's the only completion candidate (considering the typed string e.g.)? > > That should happen already: There's a problem with this in the new completion system (which I complained about quite a while ago). Fignore works with the old completion code, but the new system will never complete a file name in the fignore list. An example of doing both: % zsh -f % fignore=( .bak ) % touch test1 test1.bak % ls test1. This results in the expected test1.bak. Now continue: % autoload -U compinit % compinit % zstyle ':completion:*' completer _expand _complete % bindkey '\t' complete-word % ls test1. It just beeps at you. Using a wildcard will cause _expand to list the file, but _complete totally ignores it. Is there an option that I'm missing? I've tried using: % zstyle ':completion:*:all-files' ignored-patterns \*.bak (instead of fignore) with the same results. ..wayne..