summary refs log tree commit diff
path: root/Completion/Zsh/Command
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-06-22 11:00:31 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-06-22 11:00:31 +0000
commite3f764d1ef4377ccec978a43051c36e15179a754 (patch)
tree71ef93d4f6f2b12710b0a6c3e2a9be1e404eb4f0 /Completion/Zsh/Command
parentd455c70fde2db67ad27c83fb7241f335a5058590 (diff)
downloadzsh-e3f764d1ef4377ccec978a43051c36e15179a754.tar.gz
zsh-e3f764d1ef4377ccec978a43051c36e15179a754.tar.xz
zsh-e3f764d1ef4377ccec978a43051c36e15179a754.zip
28047: attempt to make locking with fc command more useful
Diffstat (limited to 'Completion/Zsh/Command')
-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'
       ;;