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

RE: Q about new completion (how to create several match sets)



Andrej Borsenkow wrote:

> ...
> 
> No, that's weird. I was able to make it running exactly once - and I
> have a feeling, this was after cvs update/make/make install in one
> window, sourcing styles in another one and trying there (that is, with
> *old* zsh+functions). What I get currently, is
> 
> bor@itsrm2% cd samba-2.0.7/source
> bor@itsrm2% ./configure --wi-swTAB
> bor@itsrm2% cd samba-2.0.7/source
> bor@itsrm2% ./configure --with-<CURSOR HERE>swatdir
> Completing with options
> --with-swatdir
> Completing other options
> --with-swatdir      --without-swatdir
> 
> with styles
> 
> ...
>
> zstyle ':completion:*:options-other' ignored-patterns '^--with(|out)-*'
> 
> (I added ``^'' to the last pattern - assuming, it is beginning-of-word
> anchor)

Nah. The `^' is the special glob character to negate the pattern,
remove it again, then `other options' will contain only options not
beginning with `--with' or `--without'.

Sometimes I get it right the first time... ;-)

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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