zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@zsh.org>
Subject: PATCH: updated find completion
Date: Fri, 16 Nov 2012 23:27:10 +0100	[thread overview]
Message-ID: <7150.1353104830@thecus.kiddle.eu> (raw)

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 -/'


                 reply	other threads:[~2012-11-16 22:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7150.1353104830@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).