yazi/yazi-adapter
Yuval Spiegel 7259a116d6
fix(adapter): use unique foreground colors for Unicode placeholders in tmux
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>
2025-09-04 21:36:50 +08:00
..
src fix(adapter): use unique foreground colors for Unicode placeholders in tmux 2025-09-04 21:36:50 +08:00
Cargo.toml fix: Windows path length may exceed MAX_PATH (#3137) 2025-09-04 17:02:18 +08:00