You are not logged in.

#1 2008-09-16 17:52:26

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

[SOLVED]mplayer tab completion with *.divx files

Hi,
I have some *.divx files. mplayer plays them fine, but the tab completion in bash doesn't work. So I'll either have to type the filename or do something like vim <filename>, go back and write mplayer instead of vim. That's getting pretty annoying, so I hope someone can help me smile

Last edited by rine (2008-09-17 00:02:47)

Offline

#2 2008-09-16 23:21:35

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: [SOLVED]mplayer tab completion with *.divx files

I assume you use the bash_completition script.
The easy way is to rename the file to the actual container (avi, mkv, mp4, wmv, whatever)

The hard way is to patch bash_completition:
you should add the extensions you like to line 5895: for example

_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|fli|FLI|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[34]|MP[34]|og[gm]|OG[GM]|wav|WAV|dump|DUMP|mkv|MKV|m4a|M4A|aac|AAC|m2v|M2V|dv|DV|rmvb|RMVB|mid|MID|ts|TS|3gp|mpc|MPC|flac|FLAC|divx)'

Offline

#3 2008-09-17 00:02:23

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: [SOLVED]mplayer tab completion with *.divx files

Yes, I do use the script. Added divx and it works perfectly, thanks.

Offline

Board footer

Powered by FluxBB