Rust TUI markdown pager inspired by Glow and heavily modified on my personal needs with LaTeX math rendering via RaTeX.
- Dashboard, pager and plain mode
- Text/File search (
/,n,N) - Direct editing (
e) and reload (r) - Configurable behavior via
config.tomland colors viacolor.toml - Sticky title and distinct heading levels
- Code block rendering with syntax highlighting and title support
- LaTeX math (
$...$,$$...$$,math/latexcode blocks) drawn as images in kitty, with math font set withmath_font. - Images rendering via Kitty graphics protocol with width support, loaded in the background (remote images opt-in)
- Copy entire code block to clipboard with
yor mouse click, and inlinecodewith a click - Link opening with
oor mouse click - Task lists with checkbox icons that can be toggled with
xor a click (checkbox_toggle) - Markdown formatting support
- Typographic smart quotes
- Toggable mouse mode to allow text selection
- Hover feedback: link URL / copy / toggle hints in the status bar
cargo build --release# Pager mode (default)
calci README.md
# Non-pager mode (render to stdout)
calci --plain README.md
# Generate shell completion
calci -c zsh > _calciCompletion offers also positional tab suggestion of Markdown files and relative directories that contain Markdown files.
Defaults:
- app config is read from
~/.config/calci/config.tomlwhen present - colors are read from
~/.config/calci/color.tomlwhen present - dashboard open history:
~/.config/calci/dashboard_state.toml - dashboard file cache:
~/.config/calci/dashboard_cache.toml --color <FILE>overrides the palette file path for the current run
config.toml supports:
dashboard_sort = "last_open"(default) or"last_edited"dashboard_fuzzy_mode = "loose"(default) or"strict"dashboard_show_edited_age = false(default)mouse = trueenables dashboard click + wheel gestures and pager mouse actions by defaultremote_images = false(default):http(s)images are not fetched and show a clickable[file-name]placeholder; whentruethey are fetched with a 5s timeout and a 20 MB size captable_row_separator = "never"(default),"wrapped"(separator lines between body rows only in tables where a row wraps) or"always"; tables always shrink to the window width, wrapping cell text as neededcheckbox_toggle = false(default): whentrue,xor clicking a task checkbox rewrites[ ]↔[x]in the file (refused if the file changed on disk since it was loaded); checkboxes use Nerd Font glyphsheading_scale = false(default): whentrueand running in kitty 0.40+,##headings are drawn at 2x size (text sizing protocol); elsewhere headings are styled onlylink_confirmation = false(default):http,httpsandmailtolinks open directly; any other scheme or relative path always asks for confirmation- dashboard hotkey
stoggles sort mode (last_open/last_edited) at runtime
q: quitj/k,↓/↑: movePgDn/PgUp,Space: page scroll/: search moden/N: next / previous matchy: copy selected code blocko: open link on selected line (shows confirm popup)- mouse click on line with link: open link (when selection mode is off)
- mouse click on code line: copy code block (when selection mode is off)
e: open editor ($EDITOR, defaultvi)r: reload contentm: toggle selection mode (off by default)x/ click on a task checkbox: toggle[ ]↔[x]in the file (requirescheckbox_toggle = true)?: keybindings popup
loose(default): in-order fuzzy match with gaps allowed. Example:drmmatchesdocs/readme.md.strict: contiguous substring only. Example:readmatchesdocs/readme.md, butdrmdoes not.
Calci uses a [base16] color palette that auto-maps defaults for pager/search/code
For explicit overrides, the following sections can be adjusted:
[pager]withtext,heading,quote,list_marker,link,status_fg,status_bg,cursor_line_bg,line_number_fg[search]withhit_fg,hit_bg,current_fg,current_bg[code]withinline,black,grey,white,purple,pink,blue,cyan,green,red,yellow,orange
- Search ignores code/math
- Image decoding/fetching is pager-only and needs a terminal with the kitty graphics protocol (kitty, Ghostty); elsewhere the alt text is shown



