Request bash completion complete for application when file param has no extension, complete to unrecognised extension if only match.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash-completion (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bash-completion
I've repeatedly run into this irritating behaviour with bash-completion. Here's a common situation for me.
Flash player is being buggy and playing unreliably. I go to /tmp and try to tab-complete the Flash temp file in mplayer (or in /proc system for new flash which unlinks, whatever).
But that file has no extension so bash completion fails.
Another example. I try to mplayer -loop 0 -fs foo.gif
But bash completion is unaware that gif is playable by mplayer, and refuses to tab complete. inevitably the gif is from some web page and has a name that doesn't copy/paste well, and I could really use bash autoescaping and tab completion.
I'd appreciate it if bash-completion would:
1) complete for files with no extension regardless of app
2) if I tab complete for a file and there is only one match, complete it even if you are unaware of whether the app supports it.
(2) isn't solved by better maintenance of extensions. the gif might be called foo.php and I shouldn't have to rename it.
Thanks!
Oh. Alternatively, if the magic completion could get a mime/file type from file/gnome-vfs or something, that'd work too I guess, and allow completing on multiple recognised matches.
(assuming it could be done fast enough).
Or.
Just let me turn off that specific feature entirely (checking supported file types).
ssh/scp completion, that's nice. I'd rather not uninstall bash-completion.