From: Mikael Magnusson <mikachu@gmail.com>
To: Eric Freese <ericdfreese@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Is it possible to disable cursor movement when running completion?
Date: Thu, 11 Apr 2019 00:53:02 +0200 [thread overview]
Message-ID: <CAHYJk3S82OxWqLdpZb54caJjLjy7NBHxVrn9L1z3AKdFzZDfqg@mail.gmail.com> (raw)
In-Reply-To: <CAAikoAL5bzm4-LSJoioGoTyger_SpeMbUX3FgJJA25jsNxmHBA@mail.gmail.com>
[sorry about replying privately before, the gmail interface is pretty
broken these days]
On 4/11/19, Eric Freese <ericdfreese@gmail.com> wrote:
>> If you don't want any completions offered, you can simply not press tab.
>
> Makes sense. Unfortunately I'm needing to apply the answer to this question
> to
> a more complex use case.
>
> I'm using a pty (via zpty module) to capture the first completion result to
> display as a suggestion in zsh-autosuggestions plugin. See the GitHub pull
> request here: https://github.com/zsh-users/zsh-autosuggestions/pull/401 and
> the
> issue that triggered this question here:
> https://github.com/zsh-users/zsh-autosuggestions/issues/354
>
> I'm wondering if there is a zstyle that I can set to avoid this
> cursor-moving
> behavior. I've scanned through the documentation and haven't seen anything,
> but
> I feel like I could easily be missing something.
This isn't really a supported usecase at all, but I think the state of
the art hack for it is still
https://github.com/Valodim/zsh-capture-completion
--
Mikael Magnusson
prev parent reply other threads:[~2019-04-10 22:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-09 21:15 Eric Freese
[not found] ` <CAHYJk3Q-Tpb9zGXoj_TFPH4BDhr9zHa4bPo0CambrenvmSLriQ@mail.gmail.com>
2019-04-10 22:22 ` Eric Freese
2019-04-10 22:53 ` Mikael Magnusson [this message]
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=CAHYJk3S82OxWqLdpZb54caJjLjy7NBHxVrn9L1z3AKdFzZDfqg@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=ericdfreese@gmail.com \
--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).