-
Notifications
You must be signed in to change notification settings - Fork 520
directory navigation is very slow when using zsh + zsh-autosuggestions #101
Description
Hello! A combination of mc + zsh + zsh-autosuggestions plugin makes changedir in mc terribly slow. It appears that zsh plugin does some work on every new keystroke. This is fine if you're working in a command line as it takes only about 0.001 of a second. However, it looks as if when mc sends long strings to the subshell, the same pattern applies: the plugin does it job on every new character. For long paths like /tmp/1/notsolongdirnametotestnested_1/notsolongdirnametotestnested_2/notsolongdirnametotestnested_3/notsolongdirnametotestnested_4/notsolongdirnametotestnested_5/notsolongdirnametotestnested_6/notsolongdirnametotestnested_7/notsolongdirnametotestnested_8/notsolongdirnametotestnested_9/notsolongdirnametotestnested_10/notsolongdirnametotestnested_11/notsolongdirnametotestnested_12/notsolongdirnametotestnested_13/notsolongdirnametotestnested_14/notsolongdirnametotestnested_15/notsolongdirnametotestnested_16/notsolongdirnametotestnested_17/notsolongdirnametotestnested_18 the delay accumulates and it becomes a nightmare.
I'm not totally sure whether mc could solve this issue. Initially, investigations started here: zsh-users/zsh-autosuggestions#136 Please take a look at it to know what's been found out so far.
As of suggested solutions, at the moment I can think of investigating how data is delivered to tty slave. Maybe there is no caching (or byte caching). Maybe line caching could be used instead? I'm not sure that's a tty property, maybe these is an adjustment that needs to be done on zsh side.
Thank you!