Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: updated find completion
- X-seq: zsh-workers 30802
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: updated find completion
- Date: Fri, 16 Nov 2012 23:27:10 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1353104831; bh=9E0KVXHAJ3XejySYRg0BfL6bS2AoLgmh4l5+ICGoqLk=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:From:To:Subject:Date:Message-ID; b=w4+P1AeWwTD9o+sBAevSVg47fDVp71C8zOVWGQLbcf0YFTn2adG6v0cFQxewJ1n2VqQh5pEitF3OY+Zet1FuRU7thSd+aRwD0zaWMr+haMIQCto7TNHJnSCMtuHNV8PIfTZlaeAvfis6PnmRVYVCgyBj56uRnTHL5D8sZDA659k=
- 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 just adds further new options from GNU findutils. There's plenty
more that could be improved.
Oliver
Index: Completion/Unix/Command/_find
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_find,v
retrieving revision 1.3
diff -u -r1.3 _find
--- Completion/Unix/Command/_find 30 Nov 2007 22:59:01 -0000 1.3
+++ Completion/Unix/Command/_find 16 Nov 2012 22:15:11 -0000
@@ -1,18 +1,23 @@
#compdef find
_arguments \
+ '(- *)-help' '(-)--help' \
+ '(- *)-version' '(-)--version' \
+ '(-L -P)-H[only follow symlinks when resolving command-line arguments]' \
+ '(-H -P)-L[follow symlinks]' \
+ '(-H -L)-P[never follow symlinks]' \
+ '-D[print diagnostics]:deb option:(help tree search stat rates opt exec)' \
+ '-O+[enable query optimisation]:level:(1 2 3)' \
'*-daystart' \
- '*-depth' \
+ '*-d' '*-depth' \
'*-follow' \
- '*-help' \
- '*-ignore_readdir_race' \
- '*-maxdepth:maximum search depth:' \
- '*-mindepth:minimum search depth:' \
+ '(-noignore_readdir_race)-ignore_readdir_race' \
+ '*-maxdepth:maximum search depth' \
+ '*-mindepth:minimum search depth' \
'*-mount' \
- '*-noignore_readdir_race' \
+ '(-ignore_readdir_race)-noignore_readdir_race' \
'*-noleaf' \
- '*-regextype:regexp syntax:(emacs posix-awk posix-basic posix-egrep posix-extended)' \
- '*-version' \
+ '-regextype:regexp syntax:(emacs posix-awk posix-basic posix-egrep posix-extended)' \
'*-warn' \
'*-nowarn' \
'*-xdev' \
@@ -27,6 +32,7 @@
'*-newer:file to compare (modification time):_files' \
'*-used:access after inode change (days):' \
'*-empty' \
+ '*-executable' \
'*-false' \
'*-fstype:file system type:_file_systems' \
'*-gid:numeric group ID:' \
@@ -48,6 +54,8 @@
'*-nouser' \
'*-nogroup' \
'*-perm:file permission bits:' \
+ '*-readable' \
+ '*-writable' \
'*-size:file size:' \
'*-samefile:same inode as:_files' \
'*-true' \
@@ -68,4 +76,7 @@
'*-prune' \
'*-quit' \
'*-ls' \
+ '*-and' '*-a' \
+ '*-or' '*-o' \
+ '*-not' \
'*:directory:_files -/'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author