-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preview delay #1824
Comments
The best thing I can think of is to add a small The way previewing works is that all the files being scrolled through are added to a queue, which is then processed by a separate thread. That thread runs in a while loop, and during each iteration it pops as many items from the queue as possible but only displays the last item, so slowing down that thread should cause more items to be bunched up together and skipped. |
@joelim-work I don't have a previewer. It's mainly directory previews & text previews that are not related to previewer at all. That's why lf needs a dedicated preview delay, because lf already does it on directories and text files. I could disable preview altogether. But that's like not going to school because I fail in exam. |
I had a look at the code - in the case of directories,
It looks like this is by design though, perhaps it was done that way so that every directory would get populated into the directory cache ( |
That's unfortunate. Currently I'm half jumping (ctrl+d/u) in order to avoid preview bombing. Then I find my needed selection with find (f) & the first charcter. |
Can we get preview delay in milliseconds? When I traverse through the directory list (by holding j or k),
lf
seems to speedrun previews of all directories. This is even worse when it's huge text files and database textual files. My CPU / GPU roars when I do this.The text was updated successfully, but these errors were encountered: