1#compdef okular
2local extns
3
4extns="{pdf,ps,eps,dvi}(.gz|.bz2)(#c,1)|djvu|tiff|chm|cbr|cbz"
5
6_arguments \
7  '(-p --page)'{-p,--page}'[page of the document to be shown]:page: ' \
8  '--presentation[start the document in presentation mode]' \
9  '--unique[unique instance control]' \
10  "*:Okular documents:_files -g '*.(#i)($extns)(-.)'"
11