From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id a7bcac6a for ; Wed, 10 Apr 2019 22:23:52 +0000 (UTC) Received: (qmail 2164 invoked by alias); 10 Apr 2019 22:23:34 -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: 23926 Received: (qmail 9880 invoked by uid 1010); 10 Apr 2019 22:23:34 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk1-f193.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.1/25412. spamassassin: 3.4.2. Clear:RC:0(209.85.222.193):SA:0(-2.3/5.0):. Processed in 1.935881 secs); 10 Apr 2019 22:23:34 -0000 X-Envelope-From: ericdfreese@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.222.193 as permitted sender) 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=/uoq6+0RkVhwO6NumiuIXSFwHWvcXwF7OT1q2P/eTHw=; b=RM32IF41pxKlxkJyZSEbdT8oWlOwQD/5QL3rV5kuMpF/PRpsOxH74OiSh/cm32sMeX 93KddfCJcp0dD14Cl7Wl8WWbRlvutDZbBukOwG/Es7PPzni3hZKRg5sDwir7+1W5Pt3X ba0vjW38ZFUwrQAExgOrzWSi/OvmTL3xbwucFTpokKlaKkdWrV56K7oyKpwee6HvbuQF G2ja/1JSO6ZGt8EnsLdo9pq1T4UYl061zPm4xkfAUdqImxzoTD1xGNq9+gqTYw3ls/mn 4dcdysQ/rFl7H4Ak2FWCfanaWZvNlqvBGBPOyxnJxmhh2JiLp35aqavW/HEn7at1TnRD cAJg== 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=/uoq6+0RkVhwO6NumiuIXSFwHWvcXwF7OT1q2P/eTHw=; b=d2tLJHuPGGMrKwDu9ivkeRO/ctSKvl+4snaH36SJ5cDysQ16H9WR4EPqEk/LXWrSkg HleqN4rbAuKjr2cacNfRwnXucE6p/Z5uDEyUomg4WHDIo29meaZOeTb+/+K4f/7P/KYH FdZ9CwE3bDpPcCEzLQ5Rv12voG5TiZtkqad4/NaW35WpnoP/JpKEiUOCgfKZ88emyACn QI553hJO6iYPWLeLQEWCnaSnKe88WwTz7Jyhza7TnunSMq3TEuC7Mygw+berqRGFb2XZ ODAZTHoWzQ69++94W6mBsl1p8EqsIJ2MgxTzdSSZHuAIFQggZVPFHK9YyfG9jBJx4axf Ficw== X-Gm-Message-State: APjAAAWFMwZE+B8jRbAqSG7KpQZyJ22b8UO9QH8cCN2MZuXQ7LJ/0I9t k2e/20bJXHF8mftE32OWjUyYnats+YF+OjMD2pc= X-Google-Smtp-Source: APXvYqxkuDuBp4OTXrifH77f3mZgu1EvSRruhbUada3cWZ9RIBY2ynd8pJ5kHwcGckqjdkKLfajW9JUDkkNA2XpSCi8= X-Received: by 2002:ae9:e005:: with SMTP id m5mr35707282qkk.313.1554934978270; Wed, 10 Apr 2019 15:22:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Eric Freese Date: Wed, 10 Apr 2019 16:22:46 -0600 Message-ID: Subject: Re: Is it possible to disable cursor movement when running completion? To: Mikael Magnusson Cc: Zsh Users Content-Type: multipart/alternative; boundary="000000000000075a9105863483fd" --000000000000075a9105863483fd Content-Type: text/plain; charset="UTF-8" > If you don't want any completions offered, you can simply not press tab. Makes sense. Unfortunately I'm needing to apply the answer to this question to a more complex use case. I'm using a pty (via zpty module) to capture the first completion result to display as a suggestion in zsh-autosuggestions plugin. See the GitHub pull request here: https://github.com/zsh-users/zsh-autosuggestions/pull/401 and the issue that triggered this question here: https://github.com/zsh-users/zsh-autosuggestions/issues/354 I'm wondering if there is a zstyle that I can set to avoid this cursor-moving behavior. I've scanned through the documentation and haven't seen anything, but I feel like I could easily be missing something. Eric Freese On Wed, Apr 10, 2019 at 2:21 PM Mikael Magnusson wrote: > On 4/9/19, Eric Freese wrote: > > Hi all, > > > > When I run `zsh -f`, type `ls "/"`, and hit tab, zsh moves the cursor > back > > to just before the closing quote and offers completions from there. If I > > hit tab again, the buffer is expanded to `ls "/bin/"` (the first > completion > > match). > > > > Is it possible to disable this behavior, such that when I press tab at > the > > end of a quoted string it does not move the cursor back and instead > offers > > no completion? > > If you don't want any completions offered, you can simply not press tab. > > -- > Mikael Magnusson > --000000000000075a9105863483fd--