From d355d23d97b8c306c4b0a6ca32238e1548dad90d Mon Sep 17 00:00:00 2001 From: Gaetan Semet Date: Thu, 7 Nov 2013 10:10:03 +0100 Subject: [PATCH] new plugin: grin Signed-off-by: Gaetan Semet --- plugins/grin/_grin | 62 +++++++++++++++++++++++++++++++++++++++++++++ plugins/grin/_grind | 36 ++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 plugins/grin/_grin create mode 100644 plugins/grin/_grind diff --git a/plugins/grin/_grin b/plugins/grin/_grin new file mode 100644 index 000000000..86d43cecc --- /dev/null +++ b/plugins/grin/_grin @@ -0,0 +1,62 @@ +#compdef grin +# +# this is zsh completion function file. +# generated by genzshcomp(ver: 0.5.1) +# + +typeset -A opt_args +local context state line + +_arguments -s -S \ + "-h[show this help message and exit]:" \ + "--help[show this help message and exit]:" \ + "--ignore-case[ignore case in the regex]" \ + "-i[ignore case in the regex]" \ + "--after-context[the number of lines of context to show after the match \[default=0\]]::AFTER_CONTEXT:_files" \ + "-A[the number of lines of context to show after the match \[default=0\]]::AFTER_CONTEXT:_files" \ + "--before-context[the number of lines of context to show before the match \[default=0\]]::BEFORE_CONTEXT:_files" \ + "-B[the number of lines of context to show before the match \[default=0\]]::BEFORE_CONTEXT:_files" \ + "--context[CONTEXT the number of lines of context to show on either side of the match]::CONTEXT:_files" \ + "-C[CONTEXT the number of lines of context to show on either side of the match]::CONTEXT:_files" \ + "--include[INCLUDE only search in files matching this glob \[default='*'\]]::INCLUDE:_files" \ + "-I[INCLUDE only search in files matching this glob \[default='*'\]]::INCLUDE:_files" \ + "--line-number[show the line numbers \[default\]]" \ + "-n[show the line numbers \[default\]]" \ + "--no-line-number[do not show the line numbers]" \ + "-N[do not show the line numbers]" \ + "--with-filename[show the filenames of files that match \[default\]]" \ + "-H[show the filenames of files that match \[default\]]" \ + "--without-filename[do not show the filenames of files that match]" \ + "--emacs[print the filename with every match for easier parsing by e.g. Emacs]" \ + "--files-with-matches[show only the filenames and not the texts of the matches]" \ + "-l[show only the filenames and not the texts of the matches]" \ + "--files-without-matches[show the matches with the filenames]" \ + "-L[show the matches with the filenames]" \ + "--no-color[do not use colorized output \[default if piping the output\]]" \ + "--use-color[use colorized output \[default if outputting to a terminal\]]" \ + "--force-color[always use colorized output even when piping to something that may not be able to handle it]" \ + "--no-skip-hidden-files[do not skip .hidden files]" \ + "-s[do not skip .hidden files]" \ + "--skip-hidden-files[do skip .hidden files \[default\]]" \ + "--no-skip-backup-files[do not skip backup~ files \[deprecated; edit --skip- exts\]]" \ + "-b[do not skip backup~ files \[deprecated; edit --skip- exts\]]" \ + "--skip-backup-files[do skip backup~ files \[default\] \[deprecated; edit --skip-exts\]]" \ + "--no-skip-hidden-dirs[do not skip .hidden directories]" \ + "-S[do not skip .hidden directories]" \ + "--skip-hidden-dirs[do skip .hidden directories \[default\]]" \ + "--skip-dirs[comma-separated list of directory names to skip \[default='CVS,RCS,.svn,.hg,.bzr,build,dist'\]]::SKIP_DIRS:_files" \ + "-d[comma-separated list of directory names to skip \[default='CVS,RCS,.svn,.hg,.bzr,build,dist'\]]::SKIP_DIRS:_files" \ + "--no-skip-dirs[do not skip any directories]" \ + "-D[do not skip any directories]" \ + "--skip-exts[comma-separated list of file extensions to skip \[defau lt='.pyc,.pyo,.so,.o,.a,.tgz,.tar.gz,.rar,.zip,~,#,.ba k,.png,.jpg,.gif,.bmp,.tif,.tiff,.pyd,.dll,.exe,.obj,. lib'\]]::SKIP_EXTS:_files" \ + "-e[comma-separated list of file extensions to skip \[defau lt='.pyc,.pyo,.so,.o,.a,.tgz,.tar.gz,.rar,.zip,~,#,.ba k,.png,.jpg,.gif,.bmp,.tif,.tiff,.pyd,.dll,.exe,.obj,. lib'\]]::SKIP_EXTS:_files" \ + "--no-skip-exts[do not skip any file extensions]" \ + "-E[do not skip any file extensions]" \ + "--no-follow[do not follow symlinks to directories and files \[default\]]" \ + "--follow[follow symlinks to directories and files]" \ + "--files-from-file[read files to search from a file, one per line; - for stdin]::FILE:_files" \ + "-f[read files to search from a file, one per line; - for stdin]::FILE:_files" \ + "--null-separated[filenames specified in --files-from-file are separated by NULs]" \ + "-0[filenames specified in --files-from-file are separated by NULs]" \ + "--sys-path[search the directories on sys.path t-dev@mail.enthought.com>.]" \ + "*::args:_files" diff --git a/plugins/grin/_grind b/plugins/grin/_grind new file mode 100644 index 000000000..ef7c2e68b --- /dev/null +++ b/plugins/grin/_grind @@ -0,0 +1,36 @@ +#compdef grind +# +# this is zsh completion function file. +# generated by genzshcomp(ver: 0.5.1) +# + +typeset -A opt_args +local context state line + +_arguments -s -S \ + "-h[show this help message and exit]:" \ + "--help[show this help message and exit]:" \ + "--no-skip-hidden-files[do not skip .hidden files]" \ + "-s[do not skip .hidden files]" \ + "--skip-hidden-files[do skip .hidden files]" \ + "--no-skip-backup-files[do not skip backup~ files \[deprecated; edit --skip- exts\]]" \ + "-b[do not skip backup~ files \[deprecated; edit --skip- exts\]]" \ + "--skip-backup-files[do skip backup~ files \[default\] \[deprecated; edit --skip-exts\]]" \ + "--no-skip-hidden-dirs[do not skip .hidden directories]" \ + "-S[do not skip .hidden directories]" \ + "--skip-hidden-dirs[do skip .hidden directories]" \ + "--skip-dirs[comma-separated list of directory names to skip \[default='CVS,RCS,.svn,.hg,.bzr,build,dist'\]]::SKIP_DIRS:_files" \ + "-d[comma-separated list of directory names to skip \[default='CVS,RCS,.svn,.hg,.bzr,build,dist'\]]::SKIP_DIRS:_files" \ + "--no-skip-dirs[do not skip any directories]" \ + "-D[do not skip any directories]" \ + "--skip-exts[comma-separated list of file extensions to skip \[defau lt='.pyc,.pyo,.so,.o,.a,.tgz,.tar.gz,.rar,.zip,~,#,.ba k,.png,.jpg,.gif,.bmp,.tif,.tiff,.pyd,.dll,.exe,.obj,. lib'\]]::SKIP_EXTS:_files" \ + "-e[comma-separated list of file extensions to skip \[defau lt='.pyc,.pyo,.so,.o,.a,.tgz,.tar.gz,.rar,.zip,~,#,.ba k,.png,.jpg,.gif,.bmp,.tif,.tiff,.pyd,.dll,.exe,.obj,. lib'\]]::SKIP_EXTS:_files" \ + "--no-skip-exts[do not skip any file extensions]" \ + "-E[do not skip any file extensions]" \ + "--no-follow[do not follow symlinks to directories and files \[default\]]" \ + "--follow[follow symlinks to directories and files]" \ + "--null-separated[print the filenames separated by NULs]" \ + "-0[print the filenames separated by NULs]" \ + "--dirs[the directories to start from]::DIRS:_files" \ + "--sys-path[search the directories on sys.path t-dev@mail.enthought.com>.]" \ + "*::args:_files"