Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

directory navigation is very slow when using zsh + zsh-autosuggestions #101

@balta2ar

Description

@balta2ar

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions