Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: do not add a space after completion
- X-seq: zsh-users 14195
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: do not add a space after completion
- Date: Sun, 14 Jun 2009 09:03:24 -0700
- In-reply-to: <20090614072632.GA18736@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090614072632.GA18736@xxxxxxxxxxxxx>
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