Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to accept a completion?
- X-seq: zsh-users 14075
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: How to accept a completion?
- Date: Wed, 29 Apr 2009 20:36:21 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=31Hy0dod9ghWRLVTZr1G2hp30db2PLfCaz1zqbsVtIo=; b=QjhLJcB1I0aaNVy7g4OKV/2t2NGcehsd0wo/1Mm1AGVVXGGIWkPxhxITXQLegwoVXa sCnrmT/cKIL+0f79R3qzeri/3KYg2EvLjO1tuzWFIx64gYiWXkgzx2fDWR/dchyHqroP msv79f7k15GCyGeF6kiSFVjfdmOSMkK3f18rk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=rvhCiAmE/D90g86TdTMd+E1/5e40ewKx+nDjpQkidDdBrCQ1IXKtF0JGwxF79/IObn MqKcE/VHg5G48Tvxda0YrjMyCdozAFsDE2MtTcZiFjG3SBHDs/o6AV5tnJenX8qyIGQH BpFamYlx0YOJUu/T1HX126mZTRB/fpGCWsPE4=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
2009/3/19 Peter Stephenson <pws@xxxxxxx>:
> Mikael Magnusson wrote:
>
>> As an aside, after i write $PWD(:<tab> to get the s, how do i "accept"
>> the completion to make tab complete the - instead of cycling to the
>> next completer? The only way i found is typing something and deleting
>> it... When completing directories i usually just type a /.
>
> Just type the string that's got to come next; it always does, or the s
> is useless: there's no point typing anything you need to delete, just
> use what you don't need to delete. Actually, why don't you just type
> "s-"? The "completion" is really only there as a mnemonic of what can
> go at that point, it doesn't save you any typing even in the optimal
> case.
Okay, finally encountered a real example of this being annoying now.
% scp file lt<tab>
---- file
lth/
---- remote host name
lth
tabbing to the remote host name gives me
% scp file lth:
Now how do i complete files on the remote end? If i press tab again i just get
% scp file lth/
And if i type a : i get
% scp file lth::
the only way that works is typing something and backspacing, then
pressing tab again...
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author