[Bug 675987] Re: Add auto-complete support for various office file format zip files

Jeroen Hoek mail at jeroenhoek.nl
Mon Jul 30 16:23:31 UTC 2012


Ken:

The patch I sent has been applied upstream. I guess it will be available
from Ubuntu 12.10 onwards?

See:
http://lists.alioth.debian.org/pipermail/bash-completion-devel/2012-July/004524.html

-- 
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