summaryrefslogtreecommitdiff
path: root/completion/_pdfgrep
diff options
context:
space:
mode:
Diffstat (limited to 'completion/_pdfgrep')
-rw-r--r--completion/_pdfgrep9
1 files changed, 7 insertions, 2 deletions
diff --git a/completion/_pdfgrep b/completion/_pdfgrep
index b1d6a3f..150092d 100644
--- a/completion/_pdfgrep
+++ b/completion/_pdfgrep
@@ -2,7 +2,7 @@
# Zsh completion for pdfgrep.
-# Copyright (C) 2017 by Hans-Peter Deifel (hpd@hpdeifel.de)
+# Copyright (C) 2012-2018 by Hans-Peter Deifel (hpd@hpdeifel.de)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -26,6 +26,8 @@ _arguments -s -S -A "-*" \
"(-F --fixed-strings -P --perl-regexp)"{-P,--perl-regexp}"[use Perl compatible regular expression syntax]" \
"(-H --with-filename -h --no-filename)"{-H,--with-filename}"[print filename for each match]" \
"(-h --no-filename -H --with-filename)"{-h,--no-filename}"[don't print filename]" \
+ "(-l --files-with-matches -L --files-without-match)"{-l,--files-with-matches}"[print only names of matching files]" \
+ "(-l --files-with-matches -L --files-without-match)"{-L,--files-without-match}"[print only names of non-matching files]" \
"(-c --count)"{-c,--count}"[print only a count of matches per file]" \
"(-p --page-count)"{-p,--page-count}"[count matches per page]" \
"(-C --context)"{-C,--context=}"[specify lines of context]:lines" \
@@ -37,6 +39,7 @@ _arguments -s -S -A "-*" \
"(-r -R --recursive --dereference-recursive)"{-R,--dereference-recursive}"[search directories recursively, follow symlinks]" \
"*--exclude=[skip files]:exclude" \
"*--include=[opposite of exclude]:include" \
+ "--page-range=[limit search to a set of pages]:page-range" \
"(- 1)--help[display help information]" \
"(- 1)"{-V,--version}"[display version information]" \
"(-q --quiet)"{-q,--quiet}"[suppress all normal output]" \
@@ -47,5 +50,7 @@ _arguments -s -S -A "-*" \
"--debug[enable debug output]" \
"--warn-empty[warn if a PDF file contains no text]" \
"--unac[remove accents and ligatures]" \
- '1: :_guard "^-*" pattern' \
+ "(-e --regexp 1)"{-e,--regexp}"[use argument as pattern]:pattern" \
+ "(-f --file 1)"{-f,--file}"[read patterns from file]:pattern" \
+ '(-e --regexp -f --file)1: :_guard "^-*" pattern' \
'*:pdf file:_files -g "*.pdf(-.)"'