From: "Jun T." <takimoto-j@kba.biglobe.ne.jp>
To: zsh-workers@zsh.org
Subject: zsh -<TAB> dose not use menu completion
Date: Mon, 2 Feb 2015 22:56:02 +0900 [thread overview]
Message-ID: <A20405BC-2D04-4910-91F7-729F5EE423E2@kba.biglobe.ne.jp> (raw)
'zsh -<TAB>' does not work as I expect. With this simplest settings:
autoload -Uz compinit
compinit
if I type 'ls -<TAB><TAB>' then it goes into the menu completion. But
for 'zsh -<TAB><TAB>' or 'zsh --a<TAB><TAB>' automenu does not work.
I've tried a few other settings but I couldn't enable menu completion
for 'zsh -<TAB>'. 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 -<TAB>' directly goes into the menu selection mode, but
'zsh -<TAB>' 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 -<TAB>' works as expected. Is this the only way to make menu
completion work for 'zsh -<TAB>'? 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 -<TAB>' works as expected without the zstyle above.
But I don't know why '*:' makes this difference.
Jun
next reply other threads:[~2015-02-02 15:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-02 13:56 Jun T. [this message]
2015-02-02 17:15 ` Bart Schaefer
2015-02-03 12:02 ` Jun T.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A20405BC-2D04-4910-91F7-729F5EE423E2@kba.biglobe.ne.jp \
--to=takimoto-j@kba.biglobe.ne.jp \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).