Public bug reported:

Binary package hint: bash-completion

Background:

I am working on a project which involves processing OOXML (Microsoft
Office zipped XML fileformat) and ODF (OpenDocument zipped XML
fileformat) documents. Often, to debug, or to directly alter files
inside of these files, I unzip them somewhere to work on the XML-files
inside of these zip-archives.


Problem:

>From the command line, unzip doe not autocomplete some of these files
because the auto-complete file doesn't know they are valid zip-files.


Missing file extensions:

Presently, bash-completion uses this line for unzip and zipinfo:

complete -f -X
'!*.@(zip|ZIP|[ejw]ar|[EJW]AR|exe|EXE|pk3|wsz|zargo|xpi|sxw|o[tx]t|od[fgpst]|epub)'
unzip zipinfo

Some of the ODF extensions are already present. I would like to extend
this list with all of the more common ODF and OOXML file extensions:

docx
dotx
docm
dotm
pptx
potx
pptm
potm
xlsx
xltx
xlsm
xltm

odt
ott
ods
ots
odp
otp
odc
otc
odg
otg
odf
otf
odm


The above can combined for use in that combine string:

ot[tspgfc]
od[tspgfcm]
dot[xm]
doc[xm]
p[op]tx
p[op]tm
xlt[xm]
xls[xm]

Or even more compact if more than one [] section is possible:

o[dt][tspgfc]
odm
do[tc][xm]
p[op]t[xm]
xl[ts][xm]

** Affects: bash-completion (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Add auto-complete support for various office file format zip files
https://bugs.launchpad.net/bugs/675987
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to