Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completing nothing
- X-seq: zsh-users 17344
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Micah Elliott <mde@xxxxxxxxxxxxxxxx>
- Subject: Re: completing nothing
- Date: Fri, 26 Oct 2012 01:00:29 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1351206030; bh=sXEikf2uVzfc/sj05+ymhuToGMSHw/cwygyTK/dF818=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:cc:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=x+gDm0aLyKwdIUTwEvXDtxpEs5yTafjkLTH2/xd18VX/yV1dDSi1eNGsS+4S3wbJOn7JwvH+ZrCmXQj0UbV9GgnNnA1k4EstwWj7cSMokNGnqhz2kEkKv72Erz31V+hK7dPfz9uWSfyOsN2/y+Ji0o7eBuoDNkewjiFF2LXl2IQ=
- In-reply-to: <CAELbujqF+A4AMugz_e51i2VXk0we-wRa1==fzw7Dg0mw8QsgtQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAELbujqF+A4AMugz_e51i2VXk0we-wRa1==fzw7Dg0mw8QsgtQ@mail.gmail.com>
Micah Elliott wrote:
> I'm wondering if it's possible to do a tab-completion at the very
> start of the command line, with a custom completion (of the empty
> command). I see that there's already some special (non-)behavior in
> that no completion is attempted, but an actual tab is inserted; the
Yes, try:
zstyle -e ':completion:*:*:-command-:*' tag-order '
[[ -n $PREFIX$SUFFIX || $1 = messages ]] ||
{ reply=( - ); compadd a b c }'
If that works, write your own completion function to replace the compadd
command in there to complete your list of aliases.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author