From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Grant Taylor <gtaylor@tnetconsulting.net>
Cc: zsh-users@zsh.org
Subject: Re: Conditionally complete on space.
Date: Fri, 18 Aug 2017 05:07:05 +0000 [thread overview]
Message-ID: <1503032825.3842363.1077203224.3C85AD9F@webmail.messagingengine.com> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2017-08-18 5:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 22:34 Grant Taylor
2017-08-18 1:07 ` Daniel Shahaf
2017-08-18 4:32 ` Grant Taylor
2017-08-18 5:07 ` Daniel Shahaf [this message]
2017-08-18 17:13 ` Grant Taylor
2017-08-18 17:19 ` Grant Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1503032825.3842363.1077203224.3C85AD9F@webmail.messagingengine.com \
--to=d.s@daniel.shahaf.name \
--cc=gtaylor@tnetconsulting.net \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).