Skip to content

Add delay before showing directory loading message #2407

@Limero

Description

@Limero

When navigating between uncached directories, lf will display "loading...". The problem is that most directories will load within milliseconds, so most of the time it will just cause the message to flicker before showing the actual content.

I've experimented with disabling the loading message completely and it looks much smoother navigating between directories without the flicker. However, the loading message would still be useful when loading takes longer, so I suggest we add a delay that the message won't show until x amount of milliseconds has passed.

There is a loadTime on the dir struct, but that isn't set until after the directory has been fully loaded. We could either change that to be populated when it begins loading, or add a timer, like in nav.

Related code:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions