From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25442 invoked by alias); 10 Jun 2018 00:58:47 -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: 23459 Received: (qmail 26143 invoked by uid 1010); 10 Jun 2018 00:58:47 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f181.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.181):SA:0(-1.9/5.0):. Processed in 1.098391 secs); 10 Jun 2018 00:58:47 -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: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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=afkxkxvh7nM/S4vgUhJ7Ez+8UAgvlsX5VrLQpR661DQ=; b=pc/56qdgbs01dq2+kvjAVCH+2pSJu4Yp7QcUw1U9dCXD3sH6v9cYSlRgE8m8aM8vGd 2SisG1C1vlKfWcphU/sD2Rim51fvXch97ioNFLZ8fWVVy88S5TiozER48JGP9FH67UpN MTjcFfVt74eFAT7aacakhpJROmqKWxb1nrf94En2pTOsotyv7yVr7Bal4a73dc1C5VHt 0xMNavkiWW/JbXDb1l/pHj1H3ido34pB/6YOKeNfExTWgc4+lkLH952cjBVCfY30ijGT tXVJfGCfRGWyqJ6kxJcJZXK6++3WXEYC6ef0cZqqS6A4m/WA2TFiCwvEYl3+wmYYx28Y ze7w== X-Gm-Message-State: APt69E3+Pi2rbOESf8as9CT0e0veYnlVLixHvQ4TdOl9soaC0Z1MRBDS D/DssxkC3ufhQYEwihwTnp+31S1I7jAY0YWUZVM= X-Google-Smtp-Source: ADUXVKJBd3L0cb/uDnkE85POzMjM/RFH3b/OilMIWdts6A1uoFe0a7StvIbOjx8byQysB34XjaVUkYVvIQBGDM72gZU= X-Received: by 2002:ac8:3d3:: with SMTP id z19-v6mr11229543qtg.351.1528592322786; Sat, 09 Jun 2018 17:58:42 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Eric Freese Date: Sat, 9 Jun 2018 18:58:31 -0600 Message-ID: Subject: Re: Anyone familiar with auto-fu.zsh project? To: Sebastian Gniazdowski Cc: Zsh Users Content-Type: multipart/alternative; boundary="00000000000067f8ea056e3f2267" --00000000000067f8ea056e3f2267 Content-Type: text/plain; charset="UTF-8" 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 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 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 > > 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 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 --00000000000067f8ea056e3f2267--