From e3f764d1ef4377ccec978a43051c36e15179a754 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 22 Jun 2010 11:00:31 +0000 Subject: 28047: attempt to make locking with fc command more useful --- Completion/Zsh/Command/_zstyle | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'Completion') 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' ;; -- cgit 1.4.1