* Minor annoyance with slow completions
@ 2019-07-01 16:44 Julien Nicoulaud
0 siblings, 0 replies; only message in thread
From: Julien Nicoulaud @ 2019-07-01 16:44 UTC (permalink / raw)
To: Mailing-list zsh-users
[-- Attachment #1: Type: text/plain, Size: 944 bytes --]
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-01 16:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-01 16:44 Minor annoyance with slow completions Julien Nicoulaud
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).