Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "rehash" each time a new program is installed?



On Fri, Feb 16, 2001 at 10:23:38AM -0800,
Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx> wrote:
> 
> 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.<TAB>
> 
> This results in the expected test1.bak.  Now continue:
> 
>     % autoload -U compinit
>     % compinit
>     % zstyle ':completion:*' completer _expand _complete
>     % bindkey '\t' complete-word
>     % ls test1.<TAB>

Uhm.

% zsh -f
picard% fignore=( .bak )
picard% touch test1 test1.bak
picard% autoload -U compinit
picard% compinit
picard% ls test1.<TAB>
  -> leads to
  picard% ls test1.bak

Ah, here's the problem: complete-word! expand-or-complete works fine!
Why is this the case?

> ..wayne..

Ciao,
Thomas

-- 
 Thomas Köhler Email:   jean-luc@xxxxxxxxxxxxxxxxx     | LCARS - Linux
     <><        WWW:     http://jeanluc-picard.de      | for Computers
                IRC:             jeanluc               | on All Real
               PGP public key available from Homepage! | Starships

Attachment: pgpPlpdV7K5P9.pgp
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author