zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] update global completion to version 6.6.8
@ 2022-12-07 14:28 Shohei YOSHIDA
  0 siblings, 0 replies; only message in thread
From: Shohei YOSHIDA @ 2022-12-07 14:28 UTC (permalink / raw)
  To: zsh-workers; +Cc: Shohei YOSHIDA

- Add new options
  - '--print'
  - '--extended-regexp'
  - '--nearness'
  - '--invert-match'
- Fix bug
  - '--basic-regexp' option is a boolean flag and does not take an argument
- Fix typo
---
 Reference
 - https://manpages.ubuntu.com/manpages/kinetic/man1/global.1.html

 Completion/Unix/Command/_global | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Completion/Unix/Command/_global b/Completion/Unix/Command/_global
index ffd8c0dce..4ffd7f8ce 100644
--- a/Completion/Unix/Command/_global
+++ b/Completion/Unix/Command/_global
@@ -9,15 +9,18 @@ _arguments \
   "$cmds"{-I,--idutils}'[print all lines which match pattern using id-utils]:pattern' \
   "$cmds"{-p,--print-dbpath}'[print location of GTAGS]' \
   "$cmds"{-P,--path}'[print paths matching pattern]:pattern:' \
+  "$cmds"'--print[print locate of root/dbpath/conf]:name:(root dbpath conf)' \
   "$cmds"{-u,--update}'[locate tag files and update incrementally]' \
   '(-a --absolute)'{-a,--absolute}'[print absolute path names]' \
   '(--color)--color=-[color matches]::color:(always auto never)' \
+  '(-C --directory)'{-C,--directory}'[change the directory before doing all the work]:dir:_files -/' \
   '(-d --definition)'{-d,--definition}'[print locations of definitions]' \
   '(-e --regexp :)'{-e,--regexp}'[specify pattern]:pattern:_global_tags' \
+  '(-E --extended-regexp -G --basic-regexp)'{-E,--extended-regexp}'[interpret pattern as a extended regular expression]' \
   '(--encode-path)--encode-path=-[encode path characters in hexadecimal representation]:format' \
   '(-F --first-match)'{-f,--first-match}'[stop searching if tag is found in current tag file]' \
   '(--from-here)--from-here=-[decide tag type by context]:line_path:' \
-  '(-G --basic-regexp :)'{-G,--basic-regexp}'[specify basic regexp to use]:word:_global_tags' \
+  '(-E --extended-regexp -G --basic-regexp)'{-G,--basic-regexp}'[interpret pattern as a basic regular expression]' \
   '(--gtagsconf)--gtagsconf=-[set environment variable GTAGSCONF]:file:_files' \
   '(--gtagslabel)--gtagslabel=-[set environment variable GTAGSLABEL]:file:_files' \
   '(-i --ignore-case)'{-i,--ignore-case}'[ignore case in patterns]' \
@@ -27,6 +30,7 @@ _arguments \
   '(-M --match-case)'{-m,--match-case}'[enable case sensitive search]' \
   '(--match-part)--match-part=-[specify how path name completion should match]::part:(first last all)' \
   '(-n --nofilter)'{-n,--nofilter}'[suppress sort filter and path conversion filter]' \
+  '(-N --nearness)'{-N,--nearness=-}'[use nearness sort method for the output]:start:_files' \
   '(-O --only-other)'{-O,--only-other}'[search only text files]' \
   '(-o --other)'{-o,--other}'[search in other files, not just source files (with -g)]' \
   '(--path-style)--path-style=-[specify path style]::style:(relative absolute shorter abslib through)' \
@@ -34,11 +38,12 @@ _arguments \
   '(-q --quiet)'{-q,--quiet}'[quiet mode]' \
   '(-r --reference --rootdir)'{-r,--reference,--rootdir}'[find object references instead of definitions]' \
   '(--result)--result=-[specify result format]::format:(path ctags ctags-x grep cscope)' \
-  '(- :)--single-update=-[updata tag for specified file]:file:_files' \
+  '(- :)--single-update=-[update tag for specified file]:file:_files' \
   '(-s --symbol)'{-s,--symbol}'[find symbols instead of function names]:pattern' \
   '(-t --tags)'{-t,--tags}'[output in standard ctags format]' \
   '(-T --through -s -r -l)'{-T,--through}'[search through all tag files in GTAGSLIBPATH]' \
   '(-v --verbose)'{-v,--verbose}'[verbose mode]' \
+  '(-V --invert-match)'{-V,--invert-match}'[invert the sense of matching, to select non-matching lines]' \
   '(-x --cxref)'{-x,--cxref}'[additionally list line number and contents]' \
   '(- :)--version[display version information]' \
   '(- :)--help[display help information]' \
-- 
2.37.2



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-07 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07 14:28 [PATCH] update global completion to version 6.6.8 Shohei YOSHIDA

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).