mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
When running multiple Yazi instances in tmux panes, all instances show the same image preview. This happens because the Unicode placeholder implementation uses a hardcoded foreground color RGB(0,0,1) for all instances. In the Kitty graphics protocol's Unicode placeholder system, the foreground color of the placeholder characters encodes the image ID. Since all instances used the same color, they all had the same image ID, causing tmux to display the same image in all panes. Changes: - Generate a unique image ID per Yazi instance based on process PID - Encode this ID in the RGB foreground color of Unicode placeholders - Each instance now has a unique color/ID, preventing image overlap - Delete only the instance's specific image by ID This properly implements the Unicode placeholder specification where the foreground color serves as the image identifier. Fixes the issue where multiple Yazi instances in tmux would display the same image. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||