Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Minor annoyance with slow completions
- X-seq: zsh-users 24001
- From: Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx>
- To: Mailing-list zsh-users <zsh-users@xxxxxxx>
- Subject: Minor annoyance with slow completions
- Date: Mon, 1 Jul 2019 18:44:39 +0200
- 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==
- 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
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<tab>",
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 <tab>, 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author