about summary refs log tree commit diff
path: root/Completion/Zsh/Command/_zstyle
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Zsh/Command/_zstyle')
-rw-r--r--Completion/Zsh/Command/_zstyle19
1 files changed, 18 insertions, 1 deletions
diff --git a/Completion/Zsh/Command/_zstyle b/Completion/Zsh/Command/_zstyle
index 6e34fcc4b..dcf30c083 100644
--- a/Completion/Zsh/Command/_zstyle
+++ b/Completion/Zsh/Command/_zstyle
@@ -23,6 +23,7 @@ _completers() {
 # Assoc array of styles; the values give the possible top-level
 # contexts:
 #   c   completion
+#   d   chpwd
 #   e   line editor
 #   z   zftp
 # or any combination of the above,
@@ -104,6 +105,7 @@ styles=(
   prefix-needed		 c:bool
   preserve-prefix        c:preserve-prefix
   range                  c:
+  recent-dirs-insert     c:recent-dirs-insert
   regular                c:bool
   remote-access		 c:bool
   remove-all-dups	 c:bool
@@ -131,6 +133,12 @@ styles=(
   verbose		 ce:bool
   word			 c:bool
 
+  recent-dirs-default    d:bool
+  recent-dirs-file       d:_files
+  recent-dirs-max        d:
+  recent-dirs-prune      d:
+  recent-dirs-pushd      d:bool
+
   auto-previous          e:bool
   break-keys             e:
   cursor                 e:
@@ -219,6 +227,10 @@ while (( $#state )); do
 	ctop=c
 	;;
 
+	(:chwpd:*)
+	ctop=d
+	;;
+
 	(:zftp:*)
 	ctop=z
 	;;
@@ -228,7 +240,7 @@ while (( $#state )); do
 	;;
 
 	(*)
-        ctop=cez
+        ctop=cdez
 	;;
       esac
       _wanted styles expl style \
@@ -422,6 +434,11 @@ while (( $#state )); do
       _message -e prefixes 'pattern matching prefix to keep'
       ;;
 
+    (recent-dirs-insert)
+      _wanted values expl 'inserting recent directories' \
+	compadd true false always fallback both
+      ;;
+
     (separator)
       _message -e separators 'separator string'
       ;;