Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
trying to understand how the zsh completer works
- X-seq: zsh-workers 31087
- From: joe M <joe9mail@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: trying to understand how the zsh completer works
- Date: Thu, 28 Feb 2013 18:38:04 -0500
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type; bh=6Vl/5leUb6ZCm1uVnss9orw7DExUgzo/Fe1lAY+SPCg=; b=UQ1uuehaTl3GaJtRn5Mp6s329RENBP9s/YoLQz6vBEbEst0hfK7IY+t8WB5PJ6spOR Du5R4xTY4xb0oE9mMYrHypusOeWL+PQmD0rvE8z3o4aEjcMNCzCsVGtYglUwW2OF7ZfV aK65koDUvInh248Kyu6WL21AipA78wNmUwPoESwIc/kNGyxDQRTgECjTNpI4HUsmU6R1 Vn08I69vFNxXcpLkm17NH5frpz0AEw3usrLEiQh1/GednrGLCmT8nwtGKKdekp6RHmII h6DEHFW2yU1Sfa0jW3fOzE1NSkhHc0WKJ8h/xbOTtO1hW2hdqET+l23fSj7s863xu8R0 g1Uw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
I am trying to tell the completer to use a different completer based on context.
In this situation, I am trying to tell it to use the _approximate
completer when completing the argument-rest context of grep.
zstyle -L
zstyle -L
zstyle ':completion:*' accept-exact-dirs true
zstyle ':completion:*:options' auto-description %d
zstyle :auto-fu:var autoable-function/skiplines '[[:blank:]\\\\\"'\'']*'
zstyle :auto-fu:var autoable-function/skipwords '[\\\\]*'
zstyle ':completion::complete:*' cache-path /home/j/var/zsh/zcompcache
zstyle :completion::complete:grep:argument-rest: completer _approximate
zstyle ':completion:hist-complete:*' completer _history
zstyle ':completion::*' completer _complete
zstyle :auto-fu:highlight completion 'bold,fg=blue'
zstyle :auto-fu:highlight completion/one 'fg=blue'
zstyle ':completion:*:options' description yes
zstyle :auto-fu:var disable magic-space
zstyle :auto-fu:var enable all
zstyle :auto-fu:var eof-installed-p yes
zstyle ':completion:*:corrections' format ' %F{green}-- %d (errors: %e) --%f'
zstyle ':completion:*:descriptions' format ' %F{yellow}-- %d --%f'
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'
zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
zstyle ':completion:*' format ' %F{yellow}-- %d --%f'
zstyle ':completion:*:matches' group yes
zstyle ':completion:*' group-name ''
zstyle :auto-fu:highlight input
zstyle :auto-fu:var isearchmap-installed-p yes
zstyle ':completion:*:default' list-prompt '%S%M matches%s'
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=*
r:|=*' 'l:|=* r:|=*'
zstyle ':completion:predict:*' menu yes
zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion:*' menu 'select=1'
zstyle :auto-fu:var misc-installed-p yes
zstyle :auto-fu:var postdisplay
zstyle :auto-fu:var preexec-installed-p yes
zstyle ':completion:*' show-completer true
zstyle ':completion::complete:*' use-cache on
zstyle ':completion:*' use-compctl false
zstyle :predict verbose true
zstyle ':completion:*' verbose yes
--(~/etc/zsh)----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(pts/12@master)--
--(~/etc/zsh)----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(pts/12@master)--
zstyle ':completion::*' completer _complete
zstyle ':completion::*' completer _complete
--(~/etc/zsh)----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(pts/12@master)--
zstyle ':completion::complete:grep:argument-rest:' completer _approximate
zstyle ':completion::complete:grep:argument-rest:' completer _approximate
--(~/etc/zsh)----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(pts/12@master)--
grep test 44
tags in context :completion::complete:grep::
argument-rest options (_arguments _grep (eval))
tags in context :completion::complete:grep:argument-rest:
all-files (_files _arguments _grep (eval))
I do not see the approximate completer being used here.
Any thoughts on what I am missing please?
Thanks
Joe
Messages sorted by:
Reverse Date,
Date,
Thread,
Author