Expand description
Right-pane viewer: cache full styled Text + viewport windowing for heavy paths (delimiter
tables, large markdown, large syntect-highlighted files). Lives under render with no layout
dependency so [UblxState] can hold cache fields via crate::render::cache.
Structs§
- Code
Viewer Cache Params - Snapshot + palette context for syntect viewer cache match and build (
contentmodule builds entries). - LruCache
- Least-recently-used by recency of use (get/insert move to MRU). Index
0is most recent. - Viewer
Table Cache Key - Viewer
Text Cache - Viewer
Text Cache Entry - One slot: path, layout width, theme, content identity, metrics, full rendered body.
Enums§
- Viewer
Content Identity - Whether a cached render still matches the live preview.
Constants§
- VIEWER_
TEXT_ CACHE - Thresholds for markdown / syntect viewer caching. Use this in
constcontexts;Defaultmatches.
Functions§
- viewer_
content_ identity - Derive identity for cache invalidation. Call with the current preview
rawand DB mtime. - viewer_
table_ cache_ key - viewer_
table_ cache_ key_ from_ entry