fmtview 0.4.0

Fast CLI viewer for highlighting, search, and diffs across JSON, JSONL, markup, Markdown, TOML, text, and Jinja
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::{
    breadcrumb::JsonBreadcrumbCache,
    markdown_modes::MarkdownModeCache,
    render::{LineWindowCache, RenderedLineCache, TailPositionCache},
};

#[derive(Default)]
pub(in crate::viewer) struct ViewerCaches {
    pub(in crate::viewer) line: LineWindowCache,
    pub(in crate::viewer) render: RenderedLineCache,
    pub(in crate::viewer) markdown: MarkdownModeCache,
    pub(in crate::viewer) tail: TailPositionCache,
    pub(in crate::viewer) breadcrumb: JsonBreadcrumbCache,
}