github Epistates/treemd v0.4.1

latest releases: v0.6.0, v0.5.12, v0.5.11...
8 months ago

[0.4.1] - 2025-12-01

Fixed

  • Config file color_mode setting ignored - The color_mode setting in config.toml is now properly respected (#5)

    • Priority order: CLI flags > config file > auto-detection
    • Set color_mode = "rgb" or color_mode = "256" in config to override auto-detection
    • color_mode = "auto" (default) uses improved auto-detection
  • RGB auto-detection fails for truecolor terminals - Improved terminal color detection for Kitty, Alacritty, WezTerm, and other RGB-capable terminals (#5)

    • Now checks COLORTERM environment variable for truecolor or 24bit (primary standard per termstandard/colors)
    • Checks TERM for known truecolor terminals (kitty, alacritty, wezterm) and suffixes (-truecolor, -direct)
    • Checks TERM_PROGRAM for known apps (iTerm, Kitty, VS Code, Hyper, etc.)
    • Falls back to supports_color crate detection

Technical

  • Enhanced color detection (src/tui/terminal_compat.rs)

    • New detect_truecolor_support() method with multi-method detection
    • Environment variable checks before crate-based detection
    • Better compatibility with terminals that set COLORTERM=truecolor
  • Config priority in main (src/main.rs)

    • Color mode selection now checks config file before auto-detection
    • Clear priority: CLI args (highest) > config file > auto-detection (lowest)

Acknowledgements

Full Changelog: v0.4.0...v0.4.1

Don't miss a new treemd release

NewReleases is sending notifications on new releases.