Skip to content
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

Precache images in the background #28

Closed
noctuid opened this issue Apr 30, 2022 · 3 comments
Closed

Precache images in the background #28

noctuid opened this issue Apr 30, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@noctuid
Copy link

noctuid commented Apr 30, 2022

Previously I was not using image preview with ranger.el (and the alternative packages) at all because it was too slow. Dirvish image preview is fast and instant once an image is cached. It might be nice if there was an option to cache the current directory in the background (maybe after a certain amount of idle time). Then it could be instant more of the time.

@noctuid noctuid mentioned this issue May 1, 2022
@alexluigit alexluigit added the enhancement New feature or request label May 3, 2022
@alexluigit
Copy link
Owner

After 4301888 this should work out of the box. You can play around with the dirvish-auto-cache-threshold variable if you feel the auto caching too aggressive.

@noctuid
Copy link
Author

noctuid commented May 10, 2022

Thanks, I may need to tweak that variable, but it seems to be working fairly well. Does it cache in any particular order, e.g. if I change the sorting will it cache around the current entry for the new sorting or does it not matter?

@noctuid noctuid closed this as completed May 10, 2022
@alexluigit
Copy link
Owner

For now it does not respect the sorting of directories, but we can definitely do that on buffer reverting to get a better experience.

tarsius pushed a commit to emacsmirror/dirvish that referenced this issue Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants