about summary refs log tree commit diff
path: root/Completion/X
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2005-05-13 19:00:30 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2005-05-13 19:00:30 +0000
commiteea8514302d9f0e85459023beee4248245f654dc (patch)
tree369977f7cba6201f20df0ab54d7d309dd9771e50 /Completion/X
parent9a819df9d7bf11359ee3c264138d651e9d68b3a2 (diff)
downloadzsh-eea8514302d9f0e85459023beee4248245f654dc.tar.gz
zsh-eea8514302d9f0e85459023beee4248245f654dc.tar.xz
zsh-eea8514302d9f0e85459023beee4248245f654dc.zip
new completion for qiv image viewer
Diffstat (limited to 'Completion/X')
-rw-r--r--Completion/X/Command/.distfiles12
-rw-r--r--Completion/X/Command/_qiv36
2 files changed, 43 insertions, 5 deletions
diff --git a/Completion/X/Command/.distfiles b/Completion/X/Command/.distfiles
index 97944964e..b66df29f8 100644
--- a/Completion/X/Command/.distfiles
+++ b/Completion/X/Command/.distfiles
@@ -1,8 +1,10 @@
 DISTFILES_SRC='
 .distfiles
-_gnome-gv
-_gv        _netscape  _xauth     _xfig      _mozilla   _xterm     _xwit
-_nedit     _vnc       _x_utils   _xdvi      _xmodmap   _xset      _xv
-_acroread  _dcop      _gqview    _xloadimage _mplayer
-_kfmclient
+_acroread       _dcop
+_gnome-gv       _gqview         _gv             _kfmclient
+_mozilla        _mplayer        _nedit          _netscape  
+_qiv            _vnc
+_x_utils        _xauth          _xdvi           _xfig           _xloadimage
+_xmodmap        _xpdf           _xset           _xterm          _xv
+_xwit
 '
diff --git a/Completion/X/Command/_qiv b/Completion/X/Command/_qiv
new file mode 100644
index 000000000..7917aca29
--- /dev/null
+++ b/Completion/X/Command/_qiv
@@ -0,0 +1,36 @@
+#compdef qiv
+
+_arguments -s \
+  '(- *)'{-h,--help}'[display help information]' \
+  '(- *)'{-v,--version}'[display version information]' \
+  '--display:display:_x_display' \
+  \*{-f,--file}'[read file names from file]:_files' \
+  '(-e --center)'{-e,--center}'[disable window centering]' \
+  '(-w --fixed_width -W --fixed_zoom)'{-w,--fixed_width}'[use window with specified width]:width' \
+  '(-w --fixed_width -W --fixed_zoom)'{-W,--fixed_zoom}'[use window with specified zoom factor]:zoom (percentage)' \
+  '(-x -y -z --root --root_t --root_s -f --file *)'{-x,--root}'[use image as the current desktop background, centered]:image file:_files' \
+  '(-x -y -z --root --root_t --root_s -f --file *)'{-y,--root_t}'[use image on the current desktop background, tiled]:image file:_files' \
+  '(-x -y -z --root --root_t --root_s -f --file *)'{-z,--root_s}'[use image as the current desktop background, stretched]:image file:_files' \
+  '(-m --maxpect)'{-m,--maxpect}'[expand image to fit screen size]' \
+  '(-t --scale_down)'{-t,--scale_down}'[shrink images to fit screen size]' \
+  '(-b --brightness)'{-b,--brightness}'[set brightness]:brightness (-32..32)' \
+  '(-c --contrast)'{-b,--contrast}'[set contrast]:contrast (-32..32)' \
+  '(-g --gamma)'{-b,--gamma}'[set gamma]:gamma (-32..32)' \
+  '(-n --no_filter)'{-n,--no_filter}'[disable filtering of images by extension]' \
+  '(-i --no_statusbar -I --statusbar)'{-i,--no_statusbar}'[disable statusbar]' \
+  '(-i --no_statusbar -I --statusbar)'{-I,--statusbar}'[enable statusbar]' \
+  '(-p --transparency)'{-p,--transparency}'[enable transparency]' \
+  '(-a --do_grab)'{-a,--do_grab}'[grab the pointer in windowed mode]' \
+  '(-G --disable_grab)'{-G,--disable_grab}'[disable pointer grabbing]' \
+  '(-o --bg_color)'{-o,--bg_color}'[set root background color]:color:_x_color' \
+  '(-s --slide)'{-s,--slide}'[start slideshow immediately]' \
+  '(-r --random)'{-r,--random}'[shuffle images for slideshow]' \
+  '(-R --readonly)'{-R,--readonly}'[disable delete feature]' \
+  '(-S --shuffle)'{-S,--shuffle}'[shuffle images for next/prev feature]' \
+  '(-d --delay)'{-d,--delay}'[set slideshow delay]:delay (seconds)' \
+  '(-f --fullscreen)'{-f,--fullscreen}'[use fullscreen window on startup]' \
+  '(-P --ignore_path_sort)'{-P,--ignore_path_sort}'[sort images by just the filename]' \
+  '(-M --merged_case_sort)'{-M,--merged_case_sort}'[sort images case-insensitively]' \
+  '(-N --numeric_sort)'{-N,--numeric_sort}'[numeric image sort]' \
+  '(-T --watch)'{-T,--watch}'[reload the image if it changes]' \
+  '*:image file:_files -g "*.(#i)(bmp|eim|gif|jp([eg]|eg)|pcx|png|p[pngb]m|tif(|f)|tga|x[pb]m)(-.)"'