From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20573 invoked by alias); 2 Feb 2015 15:09:43 -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: 34450 Received: (qmail 6516 invoked from network); 2 Feb 2015 15:09:40 -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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Biglobe-Sender: From: "Jun T." Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: zsh - dose not use menu completion Message-Id: Date: Mon, 2 Feb 2015 22:56:02 +0900 To: zsh-workers@zsh.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 53603 'zsh -' does not work as I expect. With this simplest settings: autoload -Uz compinit compinit if I type 'ls -' then it goes into the menu completion. But for 'zsh -' or 'zsh --a' automenu does not work. I've tried a few other settings but I couldn't enable menu completion for 'zsh -'. For example, with the following settings, zmodload zsh/complist autoload -Uz compinit compinit zstyle ':completion:*' menu on select zstyle ':completion:*' select-prompt '' # may not be necessary 'ls -' directly goes into the menu selection mode, but 'zsh -' still just list the options and never goes into the menu completion (or menu selection). 'zsh -^Xh' (_complete_help) gives tags in context :completion::complete:zsh:: all-files (_files _default _sh) argument-1 options (_arguments _sh) tags in context :completion::complete:zsh:argument-1: argument-1 (_message _arguments _sh) tags in context :completion::complete:zsh:options: options (_describe _arguments _sh It seems argument-1 options (_arguments _sh) is causing the trouble, and If I specify zstyle ':completion:*:zsh:*' tag-order options then 'zsh -' works as expected. Is this the only way to make menu completion work for 'zsh -'? If so, I feel it better to make it not necessary for a user to specify this zstyle, but I don't know how to. If I replace _arguments -S -s -- '*:' (line 27 of _sh) by _arguments -S -s -- then 'zsh -^Xh' gives options (_arguments _sh) # i.e., no argument-1 and 'zsh -' works as expected without the zstyle above. But I don't know why '*:' makes this difference. Jun