about summary refs log tree commit diff
path: root/Completion/Zsh/Type
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2015-01-25 18:22:53 +0100
committerOliver Kiddle <opk@zsh.org>2015-01-25 18:23:03 +0100
commitf972b023a20e9fb67b2693ab7c5936d5c545fe55 (patch)
tree11ee0de39d7311948f870bb55b76f30c775e8e3a /Completion/Zsh/Type
parent5a1fdc0f1ca4f2a1de74d9c9a1ddd6e25c7643f7 (diff)
downloadzsh-f972b023a20e9fb67b2693ab7c5936d5c545fe55.tar.gz
zsh-f972b023a20e9fb67b2693ab7c5936d5c545fe55.tar.xz
zsh-f972b023a20e9fb67b2693ab7c5936d5c545fe55.zip
34373, 34374: update completion of builtin commands, modifiers,
parameter and globbing flags
Diffstat (limited to 'Completion/Zsh/Type')
-rw-r--r--Completion/Zsh/Type/_globflags11
-rw-r--r--Completion/Zsh/Type/_history_modifiers1
2 files changed, 11 insertions, 1 deletions
diff --git a/Completion/Zsh/Type/_globflags b/Completion/Zsh/Type/_globflags
index ca665466b..5833dc8f1 100644
--- a/Completion/Zsh/Type/_globflags
+++ b/Completion/Zsh/Type/_globflags
@@ -4,11 +4,17 @@ local ret=1
 local -a flags
 
 if compset -P a; then
-  _message -e numbers 'errors'
+  _message -e number 'errors'
   return
 elif compset -P q; then
   _globquals
   return
+elif compset -P 'c[0-9]##,'; then
+  _message -e number 'max repetitions'
+  return
+elif compset -P c; then
+  _message -e number 'repetitions (min or exact)'
+  return
 fi
 
 flags=(
@@ -17,6 +23,8 @@ flags=(
   'I:case sensitive matching'
   's:match start of string'
   'e:match end of string'
+  'U:consider all characters to be one byte'
+  'u:support multibyte characters in pattern'
 )
 [[ $compstate[context] = condition ]] && flags+=(
   'b:activate backreferences'
@@ -29,6 +37,7 @@ _describe -t globflags "glob flag" flags -Q -S ')' && ret=0
 flags=(
   'a:approximate matching'
   'q:introduce glob qualifier'
+  'c:match repetitions of preceding pattern'
 )
 _describe -t globflags "glob flag" flags -Q -S '' && ret=0
 
diff --git a/Completion/Zsh/Type/_history_modifiers b/Completion/Zsh/Type/_history_modifiers
index f8dcd45ae..658f9f346 100644
--- a/Completion/Zsh/Type/_history_modifiers
+++ b/Completion/Zsh/Type/_history_modifiers
@@ -66,6 +66,7 @@ while true; do
       list+=(
 	"a:absolute path"
 	"A:absolute path resolving symbolic links"
+	"c:PATH search for command"
 	"g:globally apply s or &"
 	"h:head - strip trailing path element"
 	"t:tail - strip directories"