[zsh] completion system

[zsh] completion system

am 07.11.2007 12:20:10 von unknown

Post removed (X-No-Archive: yes)

Re: [zsh] completion system

am 07.11.2007 12:46:22 von parv

in message ,
wrote jimmij ...

> I have a program which takes as an argument file with extention "ext".
> How can I tell zsh that after typing this command completion should take
> into account only files with that extention?

I think you are looking for 'list-expand' & 'list-choice' commands,
which would behave the same if the input is like 'ls *ext' followed
by pressing the respective bound key(s).


- parv
--
Undo WhereElse from address for email.

Re: [zsh] completion system

am 07.11.2007 16:44:40 von Stephane CHAZELAS

2007-11-07, 12:20(+01), jimmij:
> I have a program which takes as an argument file with extention "ext".
> How can I tell zsh that after typing this command completion should take
> into account only files with that extention?

zstyle ':completion:*:*:your-cmd:*' file-patterns '*.ext'

--
Stéphane