Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Conditionally complete on space.
- X-seq: zsh-users 22839
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Grant Taylor <gtaylor@xxxxxxxxxxxxxxxxxx>
- Subject: Re: Conditionally complete on space.
- Date: Fri, 18 Aug 2017 05:07:05 +0000
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=8M+lui 2vpwfjJo4GhkOPb7LAoRqrG4U8gymE6d3Ismg=; b=R+mQKZ+Vaz2mk+ReVhrcRw rFhVUoOiIPbbfVTeVAfgEjTe1vBJ2661QMZYcXn9SmFP47Pr5rkyuT9AYcGGVnTZ j6SO/eKWMZdhxC8G8VQYDz1n9VIbq9n6JLQ6QCD0Yx53emjYrgCwv83+eN3iYLlm tEFDVuScTJtFiv6qVDIV0K2rgK4KkOniKti3yecs47UAbNYbhkq9osBVrU75fCif bS/DCuFDZ/xM07/EgBhUNXWGKZt2c6j61K/49kiH4SVFbIrQ4rjtgG2f26coV3k0 n5gOnR4MYFjMKDQRCvSLNv0//i+6mmKkmlQcyV4NAnGmmjRdRL51VHitHjSc3jIQ ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=8M+lui 2vpwfjJo4GhkOPb7LAoRqrG4U8gymE6d3Ismg=; b=LMdf0oefc26sCVPCYxPOQ3 vnoVCsFlT46M5ZKQ0YWXwrMG5PW3e5XG+tqvORN5r+UIK8ZenS8AwGUubVXQcWFh QJF2yKLbLdeMXto7MpVscrRTvC7Me+ZHEZWJYcWmOAOALUEAd3CWrkK1lZSLKSVi L8BC5ROwq4EVRn3NMuaD+jkB5Li5Awb2oOQIPppJHvZWrZnybOsjzzLwBd7gp0wl nRC7oTgxPL7m83UUnmE77w/tLh+cvj/xLaFo7ioS7NPVhtrBqZHEORZhVrMHuofF yfsZFVWkD+4/O7XVC1dWKPtPhpoIwnBL/czIjF2t0+8uHdhFbRVGXoOyWHtmsDWw ==
- In-reply-to: <6311d6fb-4de6-00b0-2e43-1ebbc65402fb@tnetconsulting.net>
- 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: <c4588344-b793-905c-61cc-ffdfbc623a97@tnetconsulting.net> <1503018440.3774801.1077066976.3967894E@webmail.messagingengine.com> <6311d6fb-4de6-00b0-2e43-1ebbc65402fb@tnetconsulting.net>
Grant Taylor wrote on Thu, 17 Aug 2017 22:32 -0600:
> 1) I need to hit space an extra time after completion. I.e. "sip "
> results in "sipcalc ". - It seems as if the second space is
> swallowed. (I do not consider this a problem and am happy to live with it.
That doesn't seem to have anything to do with the widget:
$ zsh -f
% autoload compinit
% compinit
% sipcalc(){}
% sipc<TAB><space>
results in BUFFER="sipcalc " with just one space.
> 2) I seem to be stuck in a loop if I try to complete "kil" into "kill"
> because "killall" is also matched.
You can always <Ctrl+V><Space> to enter a literal space.
The REC_EXACT option works if you change expand-or-complete
to complete-word. (In this case you may want to add _expand
to your 'completer' zstyle.)
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author