kitty/tools/disk_cache
Kovid Goyal 517f418f9c
Cleanup previous PR
Drop the redundant v2 prefix from the disk cache key, as the key format
already changed when the inode was added.

Render the file the cache key was computed from, so that retargeting a
symlink while rendering, even if it is restored before AddPath() checks
the key again, cannot store the preview of one file under the key of
another. Renderers that need the selected path, custom preview commands
and calibre, opt out via NeedsSelectedPath(). The selected path is also
used when the target has a different extension, as renderers may detect
the format from it.
2026-11-17 19:11:40 +05:30
..
api.go Cleanup previous PR 2026-11-17 19:11:40 +05:30
implementation.go Cleanup previous PR 2026-11-17 19:11:40 +05:30
implementation_test.go choose-files: Reject stale preview cache writes 2026-11-17 20:47:47 +08:00