Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Anyone familiar with auto-fu.zsh project?
- X-seq: zsh-users 23459
- From: Eric Freese <ericdfreese@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Anyone familiar with auto-fu.zsh project?
- Date: Sat, 9 Jun 2018 18:58:31 -0600
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=afkxkxvh7nM/S4vgUhJ7Ez+8UAgvlsX5VrLQpR661DQ=; b=dbK9ayQqvWBeIirjZPLXxbMW0KM1nrCfphlUkaogEyC12+VxEAhCxkEgyIXsmTJOA9 RX3SC1oJnDHHTgqDxpY9anzloV3B2PWQnHjRwJs4XSgQSIu1wtJhJNeeYsJD5AzXNJqP H80vlyzjxEAMFwKt6zB2fhE9WTWYzeV1JHJM8zPZmkFSjs3TSktCXefu8137JeK944JK FzBQL+2WTS/wUxF5gBoTE3zdR50HEBwa+IOFQfhjWIOQhBXVAigFYbqcspaX4UPvH5tu ClnOhbel+yAHYuVRsLy5fztm/DlkdXubBpCwDOXqSIFd9MGWd1PMzb5OfwrKlO0TV3j5 2Mnw==
- In-reply-to: <CAKc7PVDe29JSCEeXU7F_dqG5a7TvfTz=sP3=4nDLOm1jQOxFnA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCu_L1Sgsp281KuvXUuMkkGvxs8D1dJAmVcBxm7RnJLwA@mail.gmail.com> <CAAikoA+iGXVQXGfRP-RepefEc+FAG0+brAVcPjp5p=969+j7Kg@mail.gmail.com> <CAKc7PVDe29JSCEeXU7F_dqG5a7TvfTz=sP3=4nDLOm1jQOxFnA@mail.gmail.com>
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@xxxxxxxxx>
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@xxxxxxxxx> 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@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author