Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Anyone familiar with auto-fu.zsh project?
- X-seq: zsh-users 23468
- From: Eric Freese <ericdfreese@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Anyone familiar with auto-fu.zsh project?
- Date: Mon, 11 Jun 2018 02:25:38 -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:in-reply-to:references:from:date:message-id:subject:to :cc; bh=39GY0FJAOR0UZw4s0Gc5gX7y5KTSWoUKU3aFR0rgeG8=; b=qSY2vDoONh1nkUt0b0pvLg6jKW/LfNez01k3ZaxyKcVPUqnL7CxLhzAf8ykzAv5JX5 uUJbw9XYolYveecUY7DbZ9aH3b4TTJzs+bGOUSNbM+ipbl/Irfc8jmDpCIO6F/V3/KCk WBUsfWoiROSO6d+SuHpiXYFR/N2d/QsNswL22WZsiKYRdLfFDRkMAcwrXDcWli28bu5/ cA25m8U+Kc+tfbr4avc6mjRvQ53zurVPrWl1Yv0D+1/aZwYku6+OUv/twVAYSm22IVRu tRmFoFlGOWa813HnS+9e934kczTM41Wiv7xWWuIQbC0aMi+HsEa3oSTOj70u2c/EW31N Fshg==
- In-reply-to: <CAKc7PVDYO6qfraO_Xdgiu+CRemZPRMUnerThxNM9jx53KPGTRw@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> <CAAikoAK3SdfCmK=sEpfG=DP2dEvcVL1V-rw1hRiQLGzuvE=ZvA@mail.gmail.com> <CAKc7PVDYO6qfraO_Xdgiu+CRemZPRMUnerThxNM9jx53KPGTRw@mail.gmail.com>
Wow this is much nicer. I've implemented on `develop` branch of
zsh-autosuggestions.
Thank you!
Eric Freese
303 875 2359
On Sun, Jun 10, 2018 at 11:24 PM, Sebastian Gniazdowski <
sgniazdowski@xxxxxxxxx> wrote:
> Hello,
> I've just implemented async feature without using zpty. From what I
> saw zsh-autosuggestions uses zpty to look-up the suggestion. Maybe it
> has some drawbacks and you would be interested in using <( ) instead
> of zpty (it's probably still required to capture completions, though)?
> It's similar to using zpty:
>
> exec {PCFD}< <(-fast-highlight-check-path)
> zle -F -w "$PCFD" fast-highlight-check-path-handler
>
> -fast-highlight-check-path-handler() {
> if read -r -u "$PCFD" line; then
> ...
> fi
> zle -F ${PCFD}
> exec {PCFD}<&-
> }
>
> <( ) process is automatically disowned, I've used it in 2 projects and
> it works without problems, very robust. The effect:
>
> https://asciinema.org/a/V18uHIn2BR0OVfRsmxyqkVi7K
>
> --
> Best regards,
> Sebastian Gniazdowski
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author