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

completion for pdf and python



Hi,

I try to add a completion for xpdf, acroread and python.
When typing xpdf|acroread I just want to see pdf files and
with python only *.py files.

zstyle ':completion:*:*:acroread:*' file-patterns \
  '*.(pdf):pdf\ files *(-/):directories'

zstyle ':completion:*:*:xpdf:*' file-patterns \
  '*.(pdf):pdf\ files *(-/):directories'

zstyle ':completion:*:*:python:*' file-patterns \
  '*.(py):py\ files *(-/):directories'

Unfortunately, my attempt does not work. I get:

`--> python
No matches for: `script file'
`--> xpdf
No matches for: `PDF' or `PDF file'

`--> acroread
No matches for: `PDF file'

Do you have any idea, what I am doing wrong?


Greetings!
 Fabian



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