Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_tiff completion
- X-seq: zsh-workers 29465
- From: Manuel Presnitz <mail@xxxxxx>
- To: Zsh Workers <zsh-workers@xxxxxxx>
- Subject: _tiff completion
- Date: Mon, 6 Jun 2011 11:30:24 +0200
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Reply-to: mail@xxxxxx
Hi,
is there a reason, why in the _tiff completion function in the general
and ,,_wanted ... picture file'' part only *.tiff and not *.tif(|f) gets
completed -- like in the remaining function?
I've attached a tiny patch (hopefully in the correct format) to change this.
Best regards, and thanks for the Z Shell!
Manuel.
diff --git a/Completion/Unix/Command/_tiff b/Completion/Unix/Command/_tiff
index 588476d..c4e5c7c 100644
--- a/Completion/Unix/Command/_tiff
+++ b/Completion/Unix/Command/_tiff
@@ -5,7 +5,7 @@ local pat expl ret=1
if [[ "$service" = *2tiff ]]; then
pat="*.(#i)${service}(-.)"
else
- pat='*.(#i)tiff(-.)'
+ pat='*.(#i)tif(|f)(-.)'
fi
if [[ $# -ne 0 || $+_in_tiff -ne 0 ]]; then
@@ -14,7 +14,7 @@ if [[ $# -ne 0 || $+_in_tiff -ne 0 ]]; then
set -- "$expl[@]"
fi
_wanted files expl 'picture file' _path_files "$@" -g "$pat" - ||
- _files "$@" "$expl[@]" -g '*.(#i)tiff(-.)'
+ _files "$@" "$expl[@]" -g '*.(#i)tif(|f)(-.)'
return
fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author