Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: do not add a space after completion
- X-seq: zsh-users 14200
- From: Eric Smith <es@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: do not add a space after completion
- Date: Sun, 21 Jun 2009 12:23:56 +0200
- In-reply-to: <090614090324.ZM28355@xxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090614072632.GA18736@xxxxxxxxxxxxx> <090614090324.ZM28355@xxxxxxxxxxxxxxxxxxxxxx>
Brilliant, thanks a lot Bart
--
- Eric Smith
Bart Schaefer said:
> On Jun 14, 9:26am, Eric Smith wrote:
> }
> } I have a completion function that when executed should supply
> } no extra space after the option is given (on pressing <tab>).
> }
> } Ideally it should append an underscore instead.
>
> When calling compadd, pass the -S option and possibly the -r option.
> There is a partial example under the -r option description in the
> manual. For your specific case, probably you want:
>
> compadd -S _ -r '_ \t\n' ...
>
> (replacing "..." with other options and potential matches, etc.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author