* PATCH: updated find completion
@ 2012-11-16 22:27 Oliver Kiddle
0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2012-11-16 22:27 UTC (permalink / raw)
To: Zsh workers
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 -/'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-16 22:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-16 22:27 PATCH: updated find completion Oliver Kiddle
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).