Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: add (-.) to many completion _files globs
- X-seq: zsh-workers 30199
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: add (-.) to many completion _files globs
- Date: Fri, 10 Feb 2012 17:38:28 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1328891909; bh=Mt65uQ6Qq9acgxFiXuFXE+ojJvu78o5AdDoapzI0RCw=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:From:To:Subject:Date:Message-ID; b=VZpGrsJXggg0urw5Q1Jjplzb4XntXcIRaStg7tUOiH78CkPMdu8bK8XTJR4w2pl0vbcBsTte4XABjwsRSqvJIdO4ioIkJmVKhmc/C3Luu0YS+EbBFSviC6JvQO7Ku4gPhkRHr1aw8uSGIl1Q971sgNvnQfgv6g/aw6yxri96B4k=
- 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
This is easily missed when writing completion functions. There are
plenty more cases but I'm going through old changes in my repository so
am posting this to clear them out.
Oliver
Index: Completion/Darwin/Command/_defaults
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Darwin/Command/_defaults,v
retrieving revision 1.4
diff -u -r1.4 _defaults
--- Completion/Darwin/Command/_defaults 18 Feb 2005 16:05:55 -0000 1.4
+++ Completion/Darwin/Command/_defaults 10 Feb 2012 16:37:01 -0000
@@ -9,7 +9,7 @@
_wanted domains expl 'defaults database domain' \
compadd -M 'r:|.=* r:|=*' -a list
else
- _files -g '*.plist(e:"reply=\${REPLY%.plist}":)'
+ _files -g '*.plist(-.:r)'
fi
}
Index: Completion/Darwin/Command/_fink
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Darwin/Command/_fink,v
retrieving revision 1.2
diff -u -r1.2 _fink
--- Completion/Darwin/Command/_fink 2 Nov 2008 14:12:29 -0000 1.2
+++ Completion/Darwin/Command/_fink 10 Feb 2012 16:37:02 -0000
@@ -157,7 +157,7 @@
#configure)
#selfupdate)
validate|check)
- _wanted files expl 'finkinfo file' _files -g \*.info ;;
+ _wanted files expl 'finkinfo file' _files -g "*.info(-.)" ;;
#scanpackages)
#checksums)
#cleanup)
Index: Completion/Darwin/Command/_hdiutil
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Darwin/Command/_hdiutil,v
retrieving revision 1.2
diff -u -r1.2 _hdiutil
--- Completion/Darwin/Command/_hdiutil 3 Mar 2005 20:10:44 -0000 1.2
+++ Completion/Darwin/Command/_hdiutil 10 Feb 2012 16:37:02 -0000
@@ -79,7 +79,7 @@
local -A _common_usage_options
_common_usage_options=(
- -shadow "-shadow:shadow file:_files -g \*.shadow"
+ -shadow "-shadow:shadow file:_files -g '*.shadow(-.)'"
-encryption "-encryption:encryption method:(CEncryptedEncoding)"
-stdinpass "-stdinpass[specify password from standard input]"
-certificate "-certificate[secondary access certificate]:certificate file:_files"
@@ -89,7 +89,7 @@
-tgtimagekey "*-tgtimagekey[target image key]: :->keyvalue"
-insecurehttp "-insecurehttp[ignore SSL host validation failure]"
-plist "-plist[display output in plist format]"
- -recover "-recover[keychain to unlock]:keychain file:_files -g \*.keychain"
+ -recover "-recover[keychain to unlock]:keychain file:_files -g '*.keychain(-.)'"
)
local -a _1st_arguments
@@ -178,7 +178,7 @@
"(-autoopenro)-noautoopenro" \
"(-noautoopenrw)-autoopenrw[auto-open read/write volumes]" \
"(-autoopenrw)-noautoopenrw" \
- "1:disk image to attach:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:disk image to attach:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
;;
detach|eject)
@@ -195,7 +195,7 @@
"$_common_usage_options[-imagekey]" \
"$_common_usage_options[-srcimagekey]" \
"$_common_usage_options[-plist]" \
- "1:disk image to verify:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:disk image to verify:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
;;
create)
@@ -265,7 +265,7 @@
"-ov[overwrite an existing file]" \
"-format:format:_hdiutil_imageformat" \
"-o:target disk image:_files" \
- "1:source disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:source disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
if [[ $state = keyvalue ]]; then
@@ -302,7 +302,7 @@
"-erase[erase the media]" \
"-fullerase[erase all sectors of the disc]" \
"-list[list all burning devices with paths suitable for -device]" \
- "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
;;
makehybrid)
@@ -343,7 +343,7 @@
"(-nokernel)-nokernel[attach with a helper process]" \
"(-kernel)-kernel[attach without a helper process]" \
"-o:target disk image:_files" \
- "1:source disk image or directory:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:source disk image or directory:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
;;
compact)
@@ -356,7 +356,7 @@
"$_common_usage_options[-insecurehttp]" \
"$_common_usage_options[-cacert]" \
"$_common_usage_options[-plist]" \
- "1:sparse image:_files -g \*.sparseimage" && return 0
+ "1:sparse image:_files -g '*.sparseimage(-.)'" && return 0
;;
info)
_arguments "$_common_options[@]" \
@@ -376,7 +376,7 @@
"$_common_usage_options[-cacert]" \
"$_common_usage_options[-plist]" \
"-type:image type:(UDIF-CRC32 UDIF-MD5 DC42 CRC28 CRC32 MD5)" \
- "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
;;
chpass)
@@ -386,7 +386,7 @@
"$_common_usage_options[-srcimagekey]" \
"-oldstdinpass[specify old password from standard input]" \
"-newstdinpass[specify new password from standard input]" \
- "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
;;
unflatten)
@@ -395,7 +395,7 @@
"$_common_usage_options[-encryption]" \
"$_common_usage_options[-stdinpass]" \
"$_common_usage_options[-srcimagekey]" \
- "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
;;
flatten)
@@ -408,7 +408,7 @@
"(-noxml)-xml" \
"(-rsrcfork)-norsrcfork[don\'t embed resource fork data]" \
"(-norsrcfork)-rsrcfork" \
- "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
;;
hfsanalyze)
@@ -420,7 +420,7 @@
"$_common_usage_options[-shadow]" \
"$_common_usage_options[-insecurehttp]" \
"$_common_usage_options[-cacert]" \
- "1:disk image or device:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:disk image or device:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
;;
mountvol)
@@ -447,7 +447,7 @@
"$_common_usage_options[-plist]" \
"-format[just print out the image format]" \
"-checksum[just print out the image checksum]" \
- "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
;;
plugins)
@@ -462,7 +462,7 @@
"$_common_usage_options[-srcimagekey]" \
"$_common_usage_options[-plist]" \
"(-yes -no -query)"{-yes,-no,-query} \
- "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
;;
@@ -485,7 +485,7 @@
"-shrinkonly[only allow the image to shrink]" \
"-nofinalgap[allow elimination of trailing free partition]" \
"-limits[displays min/current/max size]" \
- "1:disk image:_files -g \*.dmg\(\|.bin\)" \
+ "1:disk image:_files -g \*.dmg\(\|.bin\)\(-.\)" \
&& return 0
;;
segment)
@@ -501,7 +501,7 @@
"-firstSegmentSize[first segment size]: :_hdiutil_imagesize" \
"-restricted[make restricted segments]" \
"-o[first segment name]:name" \
- "1:source disk image:_files -g \*.dmg\(\|.bin\)" \
+ "1:source disk image:_files -g \*.dmg\(\|.bin\)\(-.\)" \
&& return 0
;;
pmap)
@@ -514,7 +514,7 @@
"$_common_usage_options[-insecurehttp]" \
"$_common_usage_options[-cacert]" \
"-options[just print out the image checksum]: :->option" \
- "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)" \
+ "1:disk image:_files -g \*.\(dmg\|sparseimage\)\(\|.bin\)\(-.\)" \
&& return 0
case "$state" in
Index: Completion/Debian/Command/_dak
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_dak,v
retrieving revision 1.1
diff -u -r1.1 _dak
--- Completion/Debian/Command/_dak 11 Jun 2006 17:17:48 -0000 1.1
+++ Completion/Debian/Command/_dak 10 Feb 2012 16:37:02 -0000
@@ -137,7 +137,7 @@
(clean-proposed-updates)
args+=(
'(-v --verbose)'{-v,--verbose}'[be more verbose about what is being done]'
- '*:changes or admin file:_files -g "*.(changes|joey)"'
+ '*:changes or admin file:_files -g "*.(changes|joey)(-.)"'
)
;;
@@ -151,7 +151,7 @@
args+=(
'(-q --quiet)'{-q,--quiet}'[be quieter about what is being done]'
'(-v --verbose)'{-v,--verbose}'[be more verbose about what is being done]'
- '*:changes or deb or admin file:_files -g "*.(changes|deb|joey)"'
+ '*:changes or deb or admin file:_files -g "*.(changes|deb|joey)(-.)"'
)
;;
@@ -186,7 +186,7 @@
(decode-dot-dak)
args+=(
- '*:dot-dak file:_files -g "*.dak"'
+ '*:dot-dak file:_files -g "*.dak(-.)"'
)
;;
@@ -222,7 +222,7 @@
args+=(
'(-m --message)'{-m,--message=}'[use this message for rejection]:message:'
'(-s --no-mail)'{-s,--no-mail}'[do not send any mail]'
- '*:changes file:_files -g "*.changes"'
+ '*:changes file:_files -g "*.changes(-.)"'
)
;;
Index: Completion/Debian/Command/_debdiff
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_debdiff,v
retrieving revision 1.1
diff -u -r1.1 _debdiff
--- Completion/Debian/Command/_debdiff 10 Dec 2005 15:27:34 -0000 1.1
+++ Completion/Debian/Command/_debdiff 10 Feb 2012 16:37:02 -0000
@@ -17,6 +17,6 @@
'(-h --help)'{-h,--help}'[show help]' \
'(-v --version)'{-v,--version}'[show version]' \
'(-q --quiet)'{-q,--quiet}'[be quiet if no differences]' \
- '--from:debs:_files -g "*.deb"' \
- '--to:debs:_files -g "*.deb"' \
- '*:file to compare:_files -g "*.(deb|changes|dsc)"'
+ '--from:debs:_files -g "*.deb(-.)"' \
+ '--to:debs:_files -g "*.deb(-.)"' \
+ '*:file to compare:_files -g "*.(deb|changes|dsc)(-.)"'
Index: Completion/Debian/Command/_dpkg
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_dpkg,v
retrieving revision 1.16
diff -u -r1.16 _dpkg
--- Completion/Debian/Command/_dpkg 16 Sep 2010 01:02:27 -0000 1.16
+++ Completion/Debian/Command/_dpkg 10 Feb 2012 16:37:02 -0000
@@ -73,7 +73,7 @@
_dpkg_options_recursive=( '(--recursive -R)'{--recursive,-R}'[recursive]' )
_dpkg_deb_and_query_only_actions=(
- '(--show -W)'{--show,-W}'[show package info]:Debian package:_files -g \*.u\#deb'
+ '(--show -W)'{--show,-W}'[show package info]:Debian package:_files -g \*.u\#deb(-.)'
)
_dpkg_deb_and_query_only_options=(
Index: Completion/Debian/Command/_linda
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_linda,v
retrieving revision 1.1
diff -u -r1.1 _linda
--- Completion/Debian/Command/_linda 20 Feb 2006 05:19:30 -0000 1.1
+++ Completion/Debian/Command/_linda 10 Feb 2012 16:37:02 -0000
@@ -23,4 +23,4 @@
'(-U --unpack)'{-U,--unpack}':unpack level:' \
'(-v --verbose)'{-v,--verbose}'[verbose]' \
'(-V --version)'{-V,--version}'[version]' \
- ':package:_files -g "*.(changes|u#deb|dsc)"'
+ ':package:_files -g "*.(changes|u#deb|dsc)(-.)"'
Index: Completion/Debian/Command/_lintian
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_lintian,v
retrieving revision 1.5
diff -u -r1.5 _lintian
--- Completion/Debian/Command/_lintian 25 Feb 2009 02:42:00 -0000 1.5
+++ Completion/Debian/Command/_lintian 10 Feb 2012 16:37:02 -0000
@@ -38,7 +38,7 @@
'(-s --source)'{-s,--source}'[the following packages are source]' \
'--udeb[the following packages are udebs]' \
'(-p --packages-file)'{-p,--packages-file}'[process packages listed in file]:list:_files' \
- '*:package:_files -g "*.(changes|deb|dsc)"' && return 0
+ '*:package:_files -g "*.(changes|deb|dsc)(-.)"' && return 0
;;
(lintian-info)
Index: Completion/Debian/Command/_pbuilder
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_pbuilder,v
retrieving revision 1.1
diff -u -r1.1 _pbuilder
--- Completion/Debian/Command/_pbuilder 22 Feb 2010 00:35:36 -0000 1.1
+++ Completion/Debian/Command/_pbuilder 10 Feb 2012 16:37:02 -0000
@@ -9,7 +9,7 @@
else
compset -n 1
_arguments \
- '--basetgz:location:_files -g "*.tgz"' \
+ '--basetgz:location:_files -g "*.tgz(-.)"' \
'--buildplace:location:_files -/' \
'--buildresult:location:_files -/' \
'--mirror:URL:_urls' \
@@ -28,5 +28,5 @@
'--save-after-login' \
'--save-after-exec' \
'--autocleanaptcache' \
- '*:source package:_files -g "*.dsc"'
+ '*:source package:_files -g "*.dsc(-.)"'
fi
Index: Completion/Debian/Command/_piuparts
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_piuparts,v
retrieving revision 1.1
diff -u -r1.1 _piuparts
--- Completion/Debian/Command/_piuparts 28 Sep 2005 14:48:50 -0000 1.1
+++ Completion/Debian/Command/_piuparts 10 Feb 2012 16:37:02 -0000
@@ -24,7 +24,7 @@
if (( $+opt_args[-a] )); then
_deb_packages avail
else
- _files -g '*.deb'
+ _files -g '*.deb(-.)'
fi
;;
esac
Index: Completion/Linux/Command/_modutils
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Linux/Command/_modutils,v
retrieving revision 1.19
diff -u -r1.19 _modutils
--- Completion/Linux/Command/_modutils 10 Dec 2011 18:23:01 -0000 1.19
+++ Completion/Linux/Command/_modutils 10 Feb 2012 16:37:02 -0000
@@ -117,7 +117,7 @@
_tags files modules
while _tags; do
- _requested files expl "module file" _files -g '*.ko' && ret=0
+ _requested files expl "module file" _files -g '*.ko(-.)' && ret=0
_requested modules expl module compadd -a modules && ret=0
done
;;
Index: Completion/Mandriva/Command/_urpmi
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Mandriva/Command/_urpmi,v
retrieving revision 1.2
diff -u -r1.2 _urpmi
--- Completion/Mandriva/Command/_urpmi 7 Jun 2010 18:21:34 -0000 1.2
+++ Completion/Mandriva/Command/_urpmi 10 Feb 2012 16:37:02 -0000
@@ -303,7 +303,7 @@
"($help --all --interactive --name)--summary[print tag summary: summary]" \
"($help)--uniq[do not print identical lines]" \
"($help --all --interactive --name)--url[print tag url: url]" \
- "*:hdlist files:_files -g '*.cz'" \
+ "*:hdlist files:_files -g '*.cz(-.)'" \
&& ret=0
;;
esac
Index: Completion/Unix/Command/_bittorrent
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_bittorrent,v
retrieving revision 1.3
diff -u -r1.3 _bittorrent
--- Completion/Unix/Command/_bittorrent 3 Oct 2006 16:24:51 -0000 1.3
+++ Completion/Unix/Command/_bittorrent 10 Feb 2012 16:37:02 -0000
@@ -50,18 +50,18 @@
"--max_initiate+[specify peers needed before stopping initiating new connections]:peers:"\
"--report_hash_failures+[report hash failures to user]:enable:(0 1)"\
"--rarest_first_priority_cutoff+[specify peers which need to have a piece before other partials take priority over rarest first]:peers:"\
- ':torrent file:_files -g "*.torrent"' \
+ ':torrent file:_files -g "*.torrent(-.)"' \
&& return 0
;;
# Next up are the torrent file manipulation programs.
btshowmetainfo)
- _files -g "*.torrent" && return 0
+ _files -g "*.torrent(-.)" && return 0
;;
btrename)
- _files -g '*.torrent' && return 0
+ _files -g '*.torrent(-.)' && return 0
;;
btmakemetafile)
@@ -74,7 +74,7 @@
;;
btreannounce)
- _files -g '*.torrent' && return 0
+ _files -g '*.torrent(-.)' && return 0
;;
# Lastly the tracker.
Index: Completion/Unix/Command/_bogofilter
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_bogofilter,v
retrieving revision 1.7
diff -u -r1.7 _bogofilter
--- Completion/Unix/Command/_bogofilter 2 Nov 2008 14:12:30 -0000 1.7
+++ Completion/Unix/Command/_bogofilter 10 Feb 2012 16:37:02 -0000
@@ -29,16 +29,16 @@
{-y,--timestamp-date=}'[date for when unknown]:date in YYYYMMDD format' \
'(--input-file -I)'{-I,--input-file=}'[input file]:input file:_files' \
{-x,--debug-flags=}'[debug flags]:debug flags:' \
- "($_bogoutil_actions)"{-d,--dump=}'[print contents of db]:database file:_files -g "*.db"' \
+ "($_bogoutil_actions)"{-d,--dump=}'[print contents of db]:database file:_files -g "*.db(-.)"' \
"($_bogoutil_actions)"{-l,--load=}'[load file into db]:textfile:_files' \
- "($_bogoutil_actions)"{-u,--upgrade=}'[upgrade wordlist version]:database file:_files -g "*.db"' \
+ "($_bogoutil_actions)"{-u,--upgrade=}'[upgrade wordlist version]:database file:_files -g "*.db(-.)"' \
"($_bogoutil_actions)"'-m[perform maintenance functions]:file:_files' \
"($_bogoutil_actions)"'-w[display token information]:database file or directory:_files' \
"($_bogoutil_actions)"'-p[display token probability information]:database file or directory:_files' \
"($_bogoutil_actions)"'-H[print histogram]:database file or directory:_files' \
"($_bogoutil_actions)"'-r[recalculate ROBX]:database:_files -/' \
"($_bogoutil_actions)"'-R[recalculate and save ROBX]:database:_files -/' \
- "($_bogoutil_actions)"{-k,--db-cachesize=}'[set Berkeley DB cache size]:size in MB:' \
+ "($_bogoutil_actions)"{-k,--db-cachesize=}'[set Berkeley DB cache size]:size in MB' \
"($_bogoutil_actions)"'--db-verify[verify database]:database:_files -/' \
"($_bogoutil_actions)"'--db-recover[run regular recovery]:database:_files -/' \
"($_bogoutil_actions)"'--db-recover-harder[run catastrophic recovery]:database:_files -/' \
Index: Completion/Unix/Command/_cdrdao
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_cdrdao,v
retrieving revision 1.2
diff -u -r1.2 _cdrdao
--- Completion/Unix/Command/_cdrdao 30 Sep 2007 18:44:36 -0000 1.2
+++ Completion/Unix/Command/_cdrdao 10 Feb 2012 16:37:02 -0000
@@ -91,7 +91,7 @@
declare -ga common_toc_args
common_toc_args=(
$common_args
- ':TOC file:_files -g "*.toc"')
+ ':TOC file:_files -g "*.toc(-.)"')
declare -ga common_device_args
common_device_args=(
Index: Completion/Unix/Command/_cplay
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_cplay,v
retrieving revision 1.2
diff -u -r1.2 _cplay
--- Completion/Unix/Command/_cplay 29 Jan 2006 05:11:52 -0000 1.2
+++ Completion/Unix/Command/_cplay 10 Feb 2012 16:37:02 -0000
@@ -5,4 +5,4 @@
'-r[toggle playlist repeat mode]' \
'-R[toggle playlist random mode]' \
'-v[toggle PCM and MASTER volume control]' \
- '*:playlist or directory or audio file:_files -g "*.(mp3|mp2|ogg|669|amf|ams|dsm|far|it|med|mod|mt2|mtm|okt|s3m|stm|ult|gdm|xm|m3u|pls|spx|wav|au)"'
+ '*:playlist or directory or audio file:_files -g "*.(mp3|mp2|ogg|669|amf|ams|dsm|far|it|med|mod|mt2|mtm|okt|s3m|stm|ult|gdm|xm|m3u|pls|spx|wav|au)(-.)"'
Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.164
diff -u -r1.164 _git
--- Completion/Unix/Command/_git 13 Dec 2011 19:28:20 -0000 1.164
+++ Completion/Unix/Command/_git 10 Feb 2012 16:37:03 -0000
@@ -3636,7 +3636,7 @@
'--stdin[read pack from stdin and instead write to specified file]' \
$stdin_opts \
'--strict[die if the pack contains broken objects or links]' \
- ':pack file:_files -g "*.pack"'
+ ':pack file:_files -g "*.pack(-.)"'
}
(( $+functions[_git-merge-file] )) ||
@@ -4075,7 +4075,7 @@
'(:)--all[process all packs]' \
'--alt-odb[do not require objects to be present in local packs]' \
'--verbose[output some statistics to standard error]' \
- '(--all)*::packs:_files -g "*.pack"'
+ '(--all)*::packs:_files -g "*.pack(-.)"'
}
(( $+functions[_git-rev-list] )) ||
Index: Completion/Unix/Command/_hg
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_hg,v
retrieving revision 1.2
diff -u -r1.2 _hg
--- Completion/Unix/Command/_hg 15 Nov 2009 17:50:12 -0000 1.2
+++ Completion/Unix/Command/_hg 10 Feb 2012 16:37:03 -0000
@@ -420,8 +420,8 @@
'--parent[parent to choose when backing out merge]' \
'(--user -u)'{-u+,--user}'[record user as commiter]:user:' \
'(--rev -r)'{-r+,--rev}'[revision]:revision:_hg_tags' \
- '(--message -m)'{-m+,--message}'[use <text> as commit message]:text:' \
- '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files -g \*.txt'
+ '(--message -m)'{-m+,--message}'[specify commit message]:text' \
+ '(--logfile -l)'{-l+,--logfile}'[read commit message from specified file]:log file:_files'
}
_hg_cmd_bisect() {
@@ -472,8 +472,8 @@
_hg_cmd_commit() {
_arguments -s -w : $_hg_global_opts $_hg_pat_opts \
'(--addremove -A)'{-A,--addremove}'[mark new/missing files as added/removed before committing]' \
- '(--message -m)'{-m+,--message}'[use <text> as commit message]:text:' \
- '(--logfile -l)'{-l+,--logfile}'[read commit message from <file>]:log file:_files -g \*.txt' \
+ '(--message -m)'{-m+,--message}'[specify commit message]:text' \
+ '(--logfile -l)'{-l+,--logfile}'[read commit message from specified file]:log file:_files' \
'(--date -d)'{-d+,--date}'[record datecode as commit date]:date code:' \
'(--user -u)'{-u+,--user}'[record user as commiter]:user:' \
'*:file:_hg_files'
Index: Completion/Unix/Command/_ldd
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_ldd,v
retrieving revision 1.1
diff -u -r1.1 _ldd
--- Completion/Unix/Command/_ldd 29 Jun 2007 08:51:58 -0000 1.1
+++ Completion/Unix/Command/_ldd 10 Feb 2012 16:37:03 -0000
@@ -28,5 +28,5 @@
_arguments $args \
'*: : _alternative
- "executables:executable:_files -g \^\*.so\(\*\)"
- "shared-objects:shared object:_files -g \*.so"'
+ "executables:executable:_files -g \^\*.so\(\-*\)"
+ "shared-objects:shared object:_files -g \*.so\(-.\)"'
Index: Completion/Unix/Command/_metaflac
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_metaflac,v
retrieving revision 1.2
diff -u -r1.2 _metaflac
--- Completion/Unix/Command/_metaflac 4 Jan 2008 00:28:24 -0000 1.2
+++ Completion/Unix/Command/_metaflac 10 Feb 2012 16:37:03 -0000
@@ -50,7 +50,7 @@
)
_arguments "$_metaflac_opts[@]" \
- "*:FLAC file:_files -g \*.flac" \
+ "*:FLAC file:_files -g \*.flac\(-.\)" \
- "shortcuts" \
"$_metaflac_shorts[@]" \
- "(operations)" \
Index: Completion/Unix/Command/_pax
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_pax,v
retrieving revision 1.1
diff -u -r1.1 _pax
--- Completion/Unix/Command/_pax 2 May 2006 01:49:47 -0000 1.1
+++ Completion/Unix/Command/_pax 10 Feb 2012 16:37:03 -0000
@@ -19,7 +19,7 @@
123b 124b 125b 126b)' \
'-c[match all but specified]' \
'-d[match only directory but not contents]' \
- '-f:archive:_files -g "*.(tar|cpio)"' \
+ '-f:archive:_files -g "*.(tar|cpio)(-.)"' \
'-i[interactively rename files]' \
'-j[filter archive through bzip2]' \
'-k[do not overwrite existing files]' \
Index: Completion/Unix/Command/_rubber
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_rubber,v
retrieving revision 1.4
diff -u -r1.4 _rubber
--- Completion/Unix/Command/_rubber 13 Jul 2010 08:53:14 -0000 1.4
+++ Completion/Unix/Command/_rubber 10 Feb 2012 16:37:03 -0000
@@ -43,7 +43,7 @@
{-f,--force}'[force at least one compilation]' \
'--inplace[compile the documents from their source directory]' \
\*{-W,--warn}'=[report warnings of the given TYPE]:warnings:(all boxes misc refs)' \
- '*:LaTeX files:_files -g \*.\(tex\|dtx\|lhs\|w\)'
+ '*:LaTeX files:_files -g "*.(tex|dtx|lhs|w)(-.)"'
return 0
;;
@@ -64,7 +64,7 @@
'--errors[show all errors that occured during compilation]' \
'--refs[show the list of undefined references]' \
'--warnings[show all LaTeX warnings]' \
- ':LaTeX file:_files -g \*.\(tex\|dtx\|lhs\|w\)'
+ ':LaTeX file:_files -g "*.(tex|dtx|lhs|w)(-.)"'
return 0
;;
esac
Index: Completion/Unix/Command/_sisu
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_sisu,v
retrieving revision 1.2
diff -u -r1.2 _sisu
--- Completion/Unix/Command/_sisu 6 Jun 2010 13:44:12 -0000 1.2
+++ Completion/Unix/Command/_sisu 10 Feb 2012 16:37:03 -0000
@@ -59,4 +59,4 @@
'--to=dom[XML dom based input representation, experimental]' \
'--convert=footnotes[embedded footnotes]' \
'--to=current[current markup]' \
- '*:SiSU files:_files -g "*.(sst|ssm)(.)"'
+ '*:SiSU files:_files -g "*.(sst|ssm)(-.)"'
Index: Completion/Unix/Command/_texinfo
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_texinfo,v
retrieving revision 1.6
diff -u -r1.6 _texinfo
--- Completion/Unix/Command/_texinfo 7 Oct 2006 12:51:03 -0000 1.6
+++ Completion/Unix/Command/_texinfo 10 Feb 2012 16:37:03 -0000
@@ -157,7 +157,7 @@
_tags $tags
while _tags; do
if _requested files expl 'info file'; then
- _files "$expl[@]" $infopath -g '*.info' && ret=0
+ _files "$expl[@]" $infopath -g '*.info(-.)' && ret=0
fi
if _requested items; then
items=(${${(M)${${(f)"$(${info} --output - ${words[1,CURRENT-1]} 2>/dev/null)"}[1,(r)[[:space:]]#--- The Detailed Node Listing ---[[:space:]]#]}:#\* *~\* Menu:*}:/(#b)\*[[:space:]]##([^:]##):(#B)( \(?##\)[^.]#.|(:|))[[:space:]]#(#b)(*)[[:space:]]#/$match[1]${match[2]:+:}$match[2]})
Index: Completion/Unix/Command/_vim
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_vim,v
retrieving revision 1.10
diff -u -r1.10 _vim
--- Completion/Unix/Command/_vim 16 Jun 2011 06:23:33 -0000 1.10
+++ Completion/Unix/Command/_vim 10 Feb 2012 16:37:03 -0000
@@ -46,7 +46,7 @@
'-D[debugging mode]'
'-n[no swap file (memory only)]'
'-nb[start as NetBean server]'
- {-r,-L}'[list swap files and exit or recover from a swap file]::swap file:_vim_files -g \*.sw\?'
+ {-r,-L}'[list swap files and exit or recover from a swap file]::swap file:_vim_files -g "*.sw?(-.)"'
'( -H -F)-A[start in Arabic mode]'
'(-A -F)-H[start in Hebrew mode]'
'(-A -H )-F[start in Farsi mode]'
Index: Completion/Unix/Command/_vorbiscomment
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_vorbiscomment,v
retrieving revision 1.1
diff -u -r1.1 _vorbiscomment
--- Completion/Unix/Command/_vorbiscomment 19 Jul 2006 23:46:16 -0000 1.1
+++ Completion/Unix/Command/_vorbiscomment 10 Feb 2012 16:37:03 -0000
@@ -13,6 +13,6 @@
'(-l)-w[overwrite comments]' \
'(-l -c)-t[tag and value]:: ' \
'(-l -t)-c[tag file]::_files' \
- '1:OGG file:_files -g \*.ogg' \
- '(-l)2:output OGG file:_files -g \*.ogg' \
+ '1:OGG file:_files -g "*.ogg(-.)"' \
+ '(-l)2:output OGG file:_files -g "*.ogg(-.)"' \
&& return 0
Index: Completion/Unix/Command/_xmms2
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_xmms2,v
retrieving revision 1.3
diff -u -r1.3 _xmms2
--- Completion/Unix/Command/_xmms2 22 May 2009 02:03:19 -0000 1.3
+++ Completion/Unix/Command/_xmms2 10 Feb 2012 16:37:03 -0000
@@ -198,7 +198,7 @@
_xmms2_addpls() {
local expl
_description files expl 'playlist'
- _files "$expl[@]" -g '*.([mM]3[uU]|[pP][lL][sS])'
+ _files "$expl[@]" -g '*.([mM]3[uU]|[pP][lL][sS])(-.)'
}
_xmms2() {
Messages sorted by:
Reverse Date,
Date,
Thread,
Author