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 dffdd1a7 for ; Mon, 1 Jul 2019 16:45:58 +0000 (UTC) Received: (qmail 5276 invoked by alias); 1 Jul 2019 16:45:50 -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: 24001 Received: (qmail 3013 invoked by uid 1010); 1 Jul 2019 16:45:50 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f48.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25496. spamassassin: 3.4.2. Clear:RC:0(209.85.166.48):SA:0(-2.1/5.0):. Processed in 0.754641 secs); 01 Jul 2019 16:45:50 -0000 X-Envelope-From: julien.nicoulaud@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.166.48 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8e3a53gt6ddWo2CuzADzmKY/Y/3fmyyp8mfdIEANZWw=; b=RcmWvP/GCszp0xgIfiYAYNGIsSqhby/qVEalCbtJwcpkvQWURvFrOHB+Tf6zPondEo XMWcWxovFM5SYnnP52DHFQ9rV25UhY577n8HASW0yZ5sVHdo40nZ7ayumzgg6mAzekeg ps9ayTEp4h2FN4onkH0vdjoT4XQ1AUI/LDHMYIs1sFMJCQC/mH/pc0PFdRsaBZTNVEm6 jXHXUDnDacXIVOIkNJpEwhNneKmwrVgOauVg79NTdoUO8580W4VSEMgtGaEJj5vvIWWQ hwQ7dK+wLIhRIybIN+yxTP7L2cwDmT7MJn7EXDhCXPkhG0br1xRwXXlAK7BV1qOYC9jG qpBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8e3a53gt6ddWo2CuzADzmKY/Y/3fmyyp8mfdIEANZWw=; b=dwcI3WXVKNneNer5W4Hi3xPywMsPmKvFbDXpwWQ+dOZW6pg2/BmJzIBL5p0EWKyx+P T22/1OOhhbIcu+BNP+MKbGZCSKbluNlkWf5uzUefTY1pYk9rdfuG6Nfc2du1vS50WomG QlhQdzRgt4wPOv3oAJDg/gJxwstdcaGA99JXWLtOyUL53TcNAdgi/4kCuMff0cgw4VKR 1WoXqAQ4HrKmXuiEdfjhAwrn5hcYkzHEXYb8l6NhRJw/f6VxmS0vJDlaRcvOwxuWnbt4 l8U/4bBvmjprpkT+2Ku05zOjTtTm5wOe+aBhiEdTuUVRX3guS4++qX0E/4pyXxzr9bbn 3+IQ== X-Gm-Message-State: APjAAAWBzd3y3hIJZEtr+vqVsU1wkoLC5oU2ehqFA9GMlmSEm3s0rVmV oHsk/tfRwjkXTFmyhvJdMP1KuvzsMbapr/3blOptpA== X-Google-Smtp-Source: APXvYqxeCPgCTKqGF8/CXDK/4g+kKAUwI4tq2wR2QmScpNquQ0jZ0YH5FGbxBHbVqI1OqP0Er2VCKlHG9xnLf2PJ3Vg= X-Received: by 2002:a02:b10b:: with SMTP id r11mr28721844jah.140.1561999516807; Mon, 01 Jul 2019 09:45:16 -0700 (PDT) MIME-Version: 1.0 From: Julien Nicoulaud Date: Mon, 1 Jul 2019 18:44:39 +0200 Message-ID: Subject: Minor annoyance with slow completions To: Mailing-list zsh-users Content-Type: multipart/alternative; boundary="00000000000056b819058ca15a29" --00000000000056b819058ca15a29 Content-Type: text/plain; charset="UTF-8" I have this (bad) habit of spamming the tab key more often than necessary, and this leads to issues with slow completions (eg: systemd completion, did not dig into that but sometimes completing services takes several seconds). So sometimes I start typing something like "sudo systemctl status d", completion hangs, I continue typing it by hand, and after a few seconds the completion match is inserted followed by everything I typed in the meanwhile. In a similar way, hitting tab several times after completion is triggered produces unwished results... I would prefer this kind of behaviour, in order of preference: a) any keystroke after completion is started cancels completion. special case for , which is ignored b) any keystroke after completion is started is ignored Did I miss something ? How would you implement that, define a new expand-or-complete widget that unbinds keys before triggering completion ? Cheers, Julien --00000000000056b819058ca15a29--