-
Notifications
You must be signed in to change notification settings - Fork 361
Description
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:
- Loading message
- Loading new directory (can put
time.Sleep()here to simulate it taking longer to load)