Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Remove space added by completion
- X-seq: zsh-users 18454
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Remove space added by completion
- Date: Fri, 14 Feb 2014 23:11:25 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1392415886; bh=pcQxwQOqXyc9XJTOgrxqgRe5L/5EdbYERB/st5yol+w=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=IVXQcb374PaElPLfgGalp0YffAE+Qm5p5i9hxzSCb9FUnLixnwwjR3BWDcrbRwtrrw922+kmT+4lwc18R2nFiHozUriCiiI5xnWWT9fT2RURMU3qY5uYZBCcSLV71514rZfvAt7pmNrnodvKBYiOQo7AU8vwdaxSnAHVeu9Gh34=
- In-reply-to: <XnsA2D4DCC6C1E4Bdavidrayninfocouk@80.91.229.13>
- 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: <XnsA2D4DCC6C1E4Bdavidrayninfocouk@80.91.229.13>
zzapper wrote:
>
> When you tab complete you get a trailing space for free which is mostly
> what you want but is there a flag etc which can remove it?
See the -q, -r and -R options to compadd in the documentation.
I assume you don't want to disable it completely given that it is
"mostly what you want". You should actually find that it gets removed if
the next key you type is something that would imply the suffix wasn't
wanted. I can't think of an example with a space but typing space after
a / suffix from a completed directory will usually remove the trailing
/.
It might be useful to have a specific example of an unwanted space.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author