Mikhail Kilin
|
8844c2953d
|
docs: add Phase 11 - image display in chat
Documented new feature for displaying images directly in terminal
instead of text placeholders like "[Фото]".
Documentation Changes:
- ROADMAP.md: Added Phase 11 with 6 stages
- Stage 1: Infrastructure (media module, ImageCache, dependencies)
- Stage 2: TDLib integration (PhotoInfo, download_photo)
- Stage 3: UI rendering (inline previews, scaling)
- Stage 4: Fullscreen viewer (new ViewImage mode)
- Stage 5: Configuration and UX (MediaConfig in config.toml)
- Stage 6: Error handling and fallback
- CONTEXT.md: Added PLANNED section for Phase 11
- Technical stack: ratatui-image 1.0, TDLib downloadFile
- Protocols: Sixel, Kitty Graphics, iTerm2, Unicode Halfblocks
- Architecture: src/media/ module with 3 submodules
- LRU cache (100 MB limit)
- Async loading, lazy loading for visible images
- Configuration options in config.toml
- HOTKEYS.md: Added new hotkeys
- `v` / `м` - open image in fullscreen (in selection mode)
- `←` / `→` - navigate between images (in viewer mode)
- `Esc` - close image viewer
- Added new "View Image Mode" section
- PROJECT_STRUCTURE.md: Added media/ module documentation
- image_cache.rs - LRU cache for downloaded images
- image_loader.rs - Async loading via TDLib
- image_renderer.rs - Rendering with protocol detection
- Updated dependencies section
- Updated App state with new fields
Technical Details:
- Terminal protocol auto-detection (Sixel/Kitty/iTerm2/Halfblocks)
- Cross-platform support (Linux, macOS, Windows)
- Graceful fallback to Unicode halfblocks for all terminals
- Async non-blocking image loading
- Smart caching with size limits
- Configurable quality and protocol settings
New Configuration (config.toml):
- show_images: bool - enable/disable image display
- image_cache_mb: usize - cache size limit in MB
- preview_quality: "low" | "medium" | "high"
- render_protocol: "auto" | "sixel" | "kitty" | "iterm2" | "halfblocks"
Status: PLANNED (documentation complete, implementation pending)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-02-05 02:43:04 +03:00 |
|