From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28785 invoked by alias); 11 Jun 2018 08:26:04 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23468 Received: (qmail 16465 invoked by uid 1010); 11 Jun 2018 08:26:04 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f174.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.216.174):SA:0(-1.9/5.0):. Processed in 1.948695 secs); 11 Jun 2018 08:26:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: ericdfreese@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=39GY0FJAOR0UZw4s0Gc5gX7y5KTSWoUKU3aFR0rgeG8=; b=LS0iKffLpZWScwUAYY8rqCNSHWLVlakx7oQppFprIIhthcJGbWiiZaMTifbRMSNVl0 KYh9MeERbGfpvROM8EkowMyqYOwv0cI4QIeZX2EFPz0SmnFZHaxMy3A5shjSvVEQB1vn G57wdXiDvwip7ExCERZIarwo6FQQ3TVFW/0+PO84aWTeSsoDaDj7WHxMOriVWz+t2J+u AZ6PQWPowieOMkL61TNM5RTDKh5ol4uhMovCHgpKTVR4+44shHqmLc9EUsJ9OryTB3Es KPX44LOKUxNMcotRsiQlkE+WKV6x/Gx2c8okykDvprfXxTpyVtP2rsn4/Aihc5EYK9OR OmcQ== X-Gm-Message-State: APt69E0cqt848RTEk0MJUK41k2M94J3vqsdcuFzIl40H7naVkggmENO+ I35mRHBuL7VAU53ciskZeUGDvA/wbjcB9gp9E6Y= X-Google-Smtp-Source: ADUXVKI6iDWc7zgag4nmJIQ71OO0X0kQq6jhOW7tlgvN+ux7cC9AVxqoMIm1b0+UC2LcGyBXs8r/q5Xjqay3U2yT7f8= X-Received: by 2002:a0c:8c4a:: with SMTP id o10-v6mr13608900qvb.87.1528705559118; Mon, 11 Jun 2018 01:25:59 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Eric Freese Date: Mon, 11 Jun 2018 02:25:38 -0600 Message-ID: Subject: Re: Anyone familiar with auto-fu.zsh project? To: Sebastian Gniazdowski Cc: Zsh Users Content-Type: multipart/alternative; boundary="000000000000d1487a056e597f9a" --000000000000d1487a056e597f9a Content-Type: text/plain; charset="UTF-8" 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@gmail.com> 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 > --000000000000d1487a056e597f9a--