Mplayer is able to display animated gifs, so *.gif and *.GIF files should be displayed as completion. Adding gif and GIF to the file /usr/share/bash-copletion/mplayer solved it for me: --- /usr/share/bash-completion/mplayer 2010-05-19 22:24:32.119591434 +0200 +++ /usr/share/bash-completion/mplayer 2010-05-19 22:36:37.211657980 +0200 @@ -224,7 +224,7 @@ -e "/^-\(Total\|.*\*\)\?$/!p" )' -- "$cur" ) ) ;; *) - _filedir '@(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|vob|VOB|bin|BIN|dat|DAT|vcd|VCD|ps|PS|pes|PES|fl[iv]|FL[IV]|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[234]|MP[234]|m4[av]|M4[AV]|og[gmavx]|OG[GMAVX]|w?(a)v|W?(A)V|dump|DUMP|mk[av]|MK[AV]|m4a|M4A|aac|AAC|m[24]v|M[24]V|dv|DV|rmvb|RMVB|mid|MID|ts|TS|3g[p2]|mpc|MPC|flac|FLAC|vro|VRO|divx|DIVX|aif?(f)|AIF?(F)|m2ts|M2TS|vdr|VDR|xvid|XVID|ape|APE)' + _filedir '@(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|vob|VOB|bin|BIN|dat|DAT|vcd|VCD|ps|PS|pes|PES|fl[iv]|FL[IV]|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[234]|MP[234]|m4[av]|M4[AV]|og[gmavx]|OG[GMAVX]|w?(a)v|W?(A)V|dump|DUMP|mk[av]|MK[AV]|m4a|M4A|aac|AAC|m[24]v|M[24]V|dv|DV|rmvb|RMVB|mid|MID|ts|TS|3g[p2]|mpc|MPC|flac|FLAC|vro|VRO|divx|DIVX|aif?(f)|AIF?(F)|m2ts|M2TS|vdr|VDR|xvid|XVID|ape|APE|gif|GIF)' ;; esac Reproducible: Always Steps to Reproduce: 1. directory with an animated gif 2. $ mplayer <tab> <tab> 3. gif files are not listed Actual Results: $ ls image.png movie.avi animation.gif $ mplayer <tab> <tab> movie.avi Expected Results: $ ls image.png movie.avi animation.gif $ mplayer <tab> <tab> animation.gif movie.avi
Also *.webm completion missing, didn't think filing a new bug for that was necessary.
+*bash-completion-1.3 (08 Feb 2011) + + 08 Feb 2011; Jeremy Olexa <darkside@gentoo.org> + +bash-completion-1.3.ebuild: + Upstream version bump, closes Gentoo bugs: 321241, 339059, 353216