help / color / Atom feed
* 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 ?


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

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


Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-users

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git