zsh-users
 help / color / mirror / code / Atom feed
From: Eric Freese <ericdfreese@gmail.com>
To: Sebastian Gniazdowski <sgniazdowski@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Anyone familiar with auto-fu.zsh project?
Date: Sat, 9 Jun 2018 18:58:31 -0600	[thread overview]
Message-ID: <CAAikoAK3SdfCmK=sEpfG=DP2dEvcVL1V-rw1hRiQLGzuvE=ZvA@mail.gmail.com> (raw)
In-Reply-To: <CAKc7PVDe29JSCEeXU7F_dqG5a7TvfTz=sP3=4nDLOm1jQOxFnA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2061 bytes --]

It seems to have worked so far, yes, though I'm not sure how many people
have actually tested it. I will be releasing it as an opt-in, experimental
feature in case some issues pop up once people really start using it

I did make some modifications to the zsh-capture-completion script to
better suit our needs. Instead of running `zsh -f` in the zpty, I just run
a function so that the user-defined functions and non-exported variables
are still completed. I also modified it not to print completion
descriptions and to only return the first generated completion since that's
all we need.

Some day I would like to look into how difficult it might be to define a
new builtin to fetch completion results for a given string. That would be
much nicer to work with than this pty trickery.

On Sat, Jun 9, 2018 at 9:30 AM Sebastian Gniazdowski <sgniazdowski@gmail.com>
wrote:

> New autosuggestions is on the way (reddit says), it looks like the
> capture-completion zpty-based solution worked?
>
> On 6 June 2018 at 20:35, Eric Freese <ericdfreese@gmail.com> wrote:
> > Check out https://github.com/Valodim/zsh-capture-completion.
> >
> > I referenced it recently to implement completion suggestions in
> > zsh-autosuggestions:
> > https://github.com/zsh-users/zsh-autosuggestions/pull/330
> >
> > On Wed, Jun 6, 2018 at 11:43 AM Sebastian Gniazdowski
> > <sgniazdowski@gmail.com> wrote:
> >>
> >> Hello,
> >> last commit to the project is from 2013 and I cannot get it up and
> >> running. Is anyone familiar with its method of functioning? A friend
> >> guesses it pretends <tab> key to be pressed after each character, is
> >> that true? It would then mean it constantly shows completions under
> >> prompt. Is using shell this way actually possible?
> >>
> >> In general, I'm looking for a method of calling completion functions
> >> manually and presenting the results in different form. Does someone
> >> know anything about this problem?
> >>
> >> --
> >> Best regards,
> >> Sebastian Gniazdowski
> >
> > --
> > Sent from my iPhone
>
-- 
Sent from my iPhone

  reply	other threads:[~2018-06-10  0:58 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-06 17:42 Sebastian Gniazdowski
2018-06-06 18:35 ` Eric Freese
2018-06-09 15:30   ` Sebastian Gniazdowski
2018-06-10  0:58     ` Eric Freese [this message]
2018-06-11  5:24       ` Sebastian Gniazdowski
2018-06-11  8:25         ` Eric Freese
2018-06-11  9:46           ` Sebastian Gniazdowski
2018-06-12  1:55             ` Eric Freese
2018-06-12 10:23               ` Sebastian Gniazdowski
2018-06-12 11:32               ` Peter Stephenson
2018-06-13  4:09                 ` Eric Freese
2018-06-13  7:26                   ` dana
2018-06-13  7:32                     ` Sebastian Gniazdowski
2018-06-13  8:28                       ` Sebastian Gniazdowski
2018-06-13  9:17                         ` dana
2018-06-13 10:48                           ` Sebastian Gniazdowski
2018-06-13 11:43                             ` dana
2018-06-14  8:55                           ` Peter Stephenson
2018-06-14  9:48                             ` dana
2018-06-14 10:00                               ` Peter Stephenson
2018-06-13  7:27                   ` Sebastian Gniazdowski
2018-06-06 23:45 ` Takeshi Banse

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='CAAikoAK3SdfCmK=sEpfG=DP2dEvcVL1V-rw1hRiQLGzuvE=ZvA@mail.gmail.com' \
    --to=ericdfreese@gmail.com \
    --cc=sgniazdowski@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).