[Bug 675987] Re: Add auto-complete support for various office file format zip files
Ken Sharp
675987 at bugs.launchpad.net
Fri Jul 6 15:39:34 UTC 2012
Can you submit a patch upstream?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/675987
Title:
Add auto-complete support for various office file format zip files
Status in “bash-completion” package in Ubuntu:
New
Bug description:
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]
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/675987/+subscriptions
More information about the foundations-bugs
mailing list