How to specify timeout for tab completion in zsh

autocompletezsh

Zsh's completion feature is great except for this one. When I try to complete in a folder with lots of files/network folder, it takes a couple of minutes and prints this error.

example.com:~$ ls /path/to/some/bigFolder/[TAB]
zsh: do you wish to see all 620 possibilities (124 lines)?

Instead Is there a way to specify a timeout after which zsh should not try to auto-complete? I am not able to cancel its search too.

Best Answer

Ctrl-C should cancel the completion. If it doesn't, then there's little chance anything else would.

Related Question