On 10/11/07, <b class="gmail_sendername">Aaron C. de Bruyn</b> <<a href="mailto:ubuntu-devel-discuss@darkpixel.com">ubuntu-devel-discuss@darkpixel.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Today a website generated a PDF file for me automatically and firefox popped up and asked if I wanted to download it.  I hit 'OK' and it saved 'genpdf.asp' into my downloads folder.  I was surprised to find bash wouldn't tab-complete the filename.
<br><br>Apparently there is new (newer than dapper) bash completion code that restricts completed files based on the initial part of the command.  (/etc/bash_completion)<br><br>I think this sucks.  I spend a lot of time at the bash prompt and use tab-completion constantly.  When you are in bash, I would expect you sorta know what you are doing.
<br><br>One example of where I *will* have issues is if I upgrade my home media server from Dapper to Gutsy.<br>It stores all the video from my camcorder, copies of all my CDs and DVDs, pictures from digital cameras, etc...
<br>Most of the files don't have an extension because file extensions are sorta useless in Linux.<br><br>If I upgrade to Gutsy it appears I won't be able to type in 'mplayer StarTrek-Wrath<TAB>' and have it fill in 'StarTrek-Wrath_of_Kahn'.
<br><br><br>So I guess I have two questions<br><br>* Why does the tab-completion code that restricts based on command-names exist?  What benefit does this restriction have to power users??</blockquote><div><br>I don't see the point why filenames needs to be tab-completed on default, it does it when it's necessary.
<br>Filenames does tab-complete on certain tasks and applications, depending on what are you trying to accomplish?<br><br>For example, certain applications that require an input needs to tab-complete a filename on it's parameters (
i.e. rsync), and<br>executable files like python, perl, ruby & bash scripts would need tab-completion to execute.<br><br>If you really want to autocomplete your filenames, you might as well make your files executable,
<br>and lastly why do you think this is necessary?<br><br></div></div><br>-- <br>"object-oriented programming is really just a common sense extension of structured programming" - Roger Sessions