From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1048 invoked by alias); 28 Feb 2013 23:38:11 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31087 Received: (qmail 5491 invoked from network); 28 Feb 2013 23:38:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.128.47 as permitted sender) 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== MIME-Version: 1.0 X-Received: by 10.229.78.80 with SMTP id j16mr2983336qck.87.1362094684357; Thu, 28 Feb 2013 15:38:04 -0800 (PST) Date: Thu, 28 Feb 2013 18:38:04 -0500 Message-ID: Subject: trying to understand how the zsh completer works From: joe M To: Oliver Kiddle Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=ISO-8859-1 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