[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-64-gb5dce1c
Igor Murzov
e-mail at date.by
Sun Nov 4 11:56:12 UTC 2012
The following commit has been merged in the master branch:
commit f3e10798e68d9b714a0f527179c48b22ab5c16ce
Author: Igor Murzov <e-mail at date.by>
Date: Sun Nov 4 15:09:15 2012 +0400
mplayer: Add some new option argument completions.
This changeset contains:
* New bluray related options.
* -channels argument completion.
* -aspect got the same completion as -monitoraspect. Also the list
of available aspects is now the same as one in smplayer.
diff --git a/completions/mplayer b/completions/mplayer
index e3279fc..19a6556 100644
--- a/completions/mplayer
+++ b/completions/mplayer
@@ -103,6 +103,10 @@ _mplayer()
_filedir
return 0
;;
+ -bluray-device)
+ _filedir -d
+ return 0
+ ;;
-mixer|-dvdauth|-fb|-zrdev)
cur=${cur:=/dev/}
_filedir
@@ -115,16 +119,16 @@ _mplayer()
return 0
;;
-autoq|-autosync|-loop|-menu-root|-speed|-sstep|-aid|-alang| \
- -bandwidth|-cache|-chapter| \
- -dvd|-dvdangle|-fps|-frames|-mc|-passwd|-user|-sb|-srate|-ss|-vcd| \
+ -bandwidth|-bluray-angle|-bluray-chapter|-cache|-chapter|-dvd-speed| \
+ -dvdangle|-fps|-frames|-mc|-passwd|-user|-sb|-srate|-ss|-vcd| \
-vi|-vid|-vivo|-ffactor|-sid|-slang|-spualign|-spuaa|-spugauss| \
-vobsubid|-delay|-bpp|-brightness|-contrast|-dfbopts|-display| \
-fbmode|-geometry|-guiwid|-hue|-icelayer|-screen[wh]|-wid| \
-monitor-dotclock|-monitor-[hv]freq|-panscan| \
-saturation|-xineramascreen|-zrcrop|-zrnorm|-zrquality| \
- -zr[xy]doff|-zr[vh]dec|-aspect|-pp|-x|-y|-xy|-z|-stereo| \
+ -zr[xy]doff|-zr[vh]dec|-pp|-x|-y|-xy|-z|-stereo| \
-audio-density|-audio-delay|-audio-preload|-endpos|-osdlevel| \
- -ffourcc|-sws|-channels|-skiplimit|-format|-ofps|-aadriver| \
+ -ffourcc|-sws|-skiplimit|-format|-ofps|-aadriver| \
-aaosdcolor|-aasubcolor|-vobsubout|-vobsuboutid|-vobsuboutindex| \
-sub-bg-alpha|-sub-bg-color|-subdelay|-subfps|-subpos| \
-subalign|-subwidth|-subfont-blur|-subfont-outline| \
@@ -132,8 +136,13 @@ _mplayer()
-subfont-text-scale)
return 0
;;
- -monitoraspect)
- COMPREPLY=( $( compgen -W '4:3 16:9 16:10' -- "$cur" ) )
+ -channels)
+ COMPREPLY=( $( compgen -W '2 4 6 8' -- "$cur" ) )
+ return 0
+ ;;
+ -aspect|-monitoraspect)
+ COMPREPLY=( $( compgen -W '1:1 3:2 4:3 5:4 14:9 14:10 16:9 16:10
+ 2.35:1' -- "$cur" ) )
__ltrim_colon_completions "$cur"
return 0
;;
--
bash-completion
More information about the Bash-completion-commits
mailing list