1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-08-11 15:01:16 +02:00

33284: Completion/Unix/Command/_*magick: Add JPEG 2000 file extensions

This commit is contained in:
Axel Beckert 2014-10-02 02:51:34 +02:00
parent 5e516898d7
commit 3aa5544638
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2014-10-02 Axel Beckert <abe@deuxchevaux.org>
* 33284: Mathieu Malaterre: Completion/Unix/Command/_{graphics,
image}magick: Add missing JPEG 2000 file extensions.
2014-10-01 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 33312: Doc/Zsh/builtins.yo, Doc/Zsh/grammar.yo: document

View file

@ -3,7 +3,7 @@
local state line expl formats curcontext="$curcontext"
typeset -A opt_args
formats=jpg:jpeg:tiff:miff:ras:bmp:cgm:dcx:ps:eps:fig:fits:fpx:gif:mpeg:pbm:pgm:ppm:pcd:pcl:pdf:pcx:png:rad:rgb:rgba:rle:sgi:html:shtml:tga:ttf:uil:xcf:xwd:xbm:xpm:yuv
formats=jpg:jpeg:jp2:j2k:jpc:jpx:jpf:tiff:miff:ras:bmp:cgm:dcx:ps:eps:fig:fits:fpx:gif:mpeg:pbm:pgm:ppm:pcd:pcl:pdf:pcx:png:rad:rgb:rgba:rle:sgi:html:shtml:tga:ttf:uil:xcf:xwd:xbm:xpm:yuv
if (( $# )); then
_files "$@" -g "*.(#i)(${~formats//:/|})(-.)"

View file

@ -11,7 +11,7 @@ typeset -A opt_args
#
# and certainly many other things...
formats=jpg:jpeg:tiff:miff:ras:bmp:cgm:dcx:ps:eps:fig:fits:fpx:gif:mpeg:pbm:pgm:ppm:pcd:pcl:pdf:pcx:png:rad:rgb:rgba:rle:sgi:html:shtml:tga:ttf:uil:xcf:xwd:xbm:xpm:yuv
formats=jpg:jpeg:jp2:j2k:jpc:jpx:jpf:tiff:miff:ras:bmp:cgm:dcx:ps:eps:fig:fits:fpx:gif:mpeg:pbm:pgm:ppm:pcd:pcl:pdf:pcx:png:rad:rgb:rgba:rle:sgi:html:shtml:tga:ttf:uil:xcf:xwd:xbm:xpm:yuv
if (( $# )); then
_files "$@" -g "*.(#i)(${~formats//:/|})(-.)"