-
Notifications
You must be signed in to change notification settings - Fork 643
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
Kitty v0.31.0
Yazi version
yazi 0.1.5 (3fcc201 2024-01-05)
Did you try the latest main branch to see if the problem has already been fixed?
Tried, but the problem is still present
Describe the bug
If you have any cached images in the cache directory (/tmp/yazi in my case), browsing that folder within yazi will continually generate more files.
Expected Behavior
It would be optimal if yazi reused the cached files in the directory. If I understand the caching code correctly, it encodes the path in md5. If the current directory is the cache directory, you could just fetch the direct file by name, instead of re-encoding it.
To Reproduce
- Run
yazi --clear-cache - Run
yazi, preview at least one image - In yazi, navigate to
/tmp/yazi, and enter it - See amount of files skyrocket.
Configuration
No response
Anything else?
No response
dogknowsnx and hakan-demirli
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working