From: Danek Duvall <duvall@comfychair.org>
To: zsh-workers@zsh.org
Subject: odd completion misbehavior?
Date: Thu, 20 Oct 2011 13:48:00 -0700 [thread overview]
Message-ID: <20111020204800.GA28174@lorien.comfychair.org> (raw)
With the following completion function:
_danek() {
_arguments \
"--zoo-name" \
"--zipple-zoo-name"
}
and running under zsh -f with only
autoload -Uz compinit
compinit -i
compdef _danek danek
if I type "danek --z<TAB>", I end up with "danek --z-name", with the cursor
on the dash between "z" and "name". If I hit tab again, I end up with
"danek --zoo-name ", with the cursor after the final space. If I setopt
menucomplete, I get reasonable behavior.
What have I done wrong with the completion function?
Thanks,
Danek
next reply other threads:[~2011-10-20 20:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-20 20:48 Danek Duvall [this message]
2011-10-20 21:44 ` Benjamin R. Haskell
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=20111020204800.GA28174@lorien.comfychair.org \
--to=duvall@comfychair.org \
--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).