Commit graph

1179 commits

Author SHA1 Message Date
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
Cattyman
49910fcfe7
feat: progress of each task (#3121)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2025-09-04 18:55:28 +08:00
三咲雅 misaki masa
b997e56a60
fix: Windows path length may exceed MAX_PATH (#3137) 2025-09-04 17:02:18 +08:00
三咲雅 misaki masa
cfc7238638
feat: port task manager to Lua (#3134) 2025-09-03 22:25:16 +08:00
三咲雅 misaki masa
d670da80d3
fix: make casefold work when ancestor directories are symbolic links (#3132) 2025-09-03 00:15:57 +08:00
三咲雅 misaki masa
d7df581b67
feat: tasks without progress (#3131) 2025-09-02 16:58:34 +08:00
Copilot
eb537733a2
fix: Darwin framework deprecation in Nix build (#3119)
Co-authored-by: sxyazi <17523360+sxyazi@users.noreply.github.com>
2025-08-28 23:26:01 +08:00
三咲雅 misaki masa
8a0265ad64
perf: zero-copy UrlBuf to Url conversion (#3117) 2025-08-28 23:06:04 +08:00
三咲雅 misaki masa
dd7afaa64a
refactor: Url::pair() without allocation (#3116) 2025-08-27 23:52:09 +08:00
三咲雅 misaki masa
c2a94daad6
feat: casefold (#3114) 2025-08-27 15:55:35 +08:00
三咲雅 misaki masa
12172b7301
feat: support VFS for the file watcher (#3108) 2025-08-25 21:40:38 +08:00
三咲雅 misaki masa
c27ef58116
feat: support VFS for join(), starts_with(), and ends_with() of Url (#3094) 2025-08-23 23:06:11 +08:00
三咲雅 misaki masa
0054cf0b87
perf: lock-free hashing for string interns (#3091) 2025-08-21 09:40:52 +08:00
三咲雅 misaki masa
84907297a0
perf: string interning to reduce memory usage of mimetype and URL domain (#3084) 2025-08-19 21:58:57 +08:00
三咲雅 misaki masa
7a9bfff95d
perf: switch to a higher-performance hash algorithm (#3083) 2025-08-19 15:58:39 +08:00
三咲雅 misaki masa
ae75fc0f7b
feat: make mimetype matching more robust (#3082) 2025-08-19 15:17:32 +08:00
三咲雅 misaki masa
fe9ce240b5
fix: respect URL covariance when updating mimetypes (#3079) 2025-08-18 23:20:03 +08:00
boydaihungst
a41931275c
fix: erase overlapping image portions when previewing errors (#3067)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2025-08-18 19:55:28 +08:00
三咲雅 misaki masa
3ca33c1f84
refactor: introduce UrlBuf (#3072) 2025-08-18 02:25:59 +08:00
三咲雅 misaki masa
9810196565
refactor: introduce LocBuf (#3062) 2025-08-17 16:25:04 +08:00
三咲雅 misaki masa
2ec3a6c645
fix: avoid appending a newline when reading clipboard contents (#3059) 2025-08-14 11:26:46 +08:00
三咲雅 misaki masa
1bfcbc1664
feat: introduce the concept of Uri (#3049) 2025-08-13 01:38:43 +08:00
Raphael Amorim
a9bfeeeaad
docs: update Rio image support status (#3052)
Co-authored-by: 三咲雅 misaki masa <sxyazi@gmail.com>
2025-08-13 00:53:00 +08:00
三咲雅 misaki masa
a109aa92e7
refactor: refine URN for archives (#3043) 2025-08-11 01:02:53 +08:00
三咲雅 misaki masa
292d37ccde
refactor: simplify cursor repositioning (#3040) 2025-08-08 02:41:41 +08:00
三咲雅 misaki masa
41b00c8d4e
feat: allow DDS events to change command arguments (#3037) 2025-08-06 22:23:22 +08:00
三咲雅 misaki masa
0b45ed868f
feat: VFS support for the enter and leave commands (#3035) 2025-08-05 20:45:23 +08:00
三咲雅 misaki masa
d5f225bc4a
feat: virtual file system (#3034) 2025-08-05 02:23:57 +08:00
三咲雅 misaki masa
da97e5a8b4
feat: URL covariance for the mimetype agency (#3030) 2025-07-31 00:48:54 +08:00
三咲雅 misaki masa
9adc00c3a9
fix: keep original scheme when expanding URLs (#3028) 2025-07-30 02:08:17 +08:00
三咲雅 misaki masa
9c1f303f2c
feat: URL covariance for selected and yanked files (#3025) 2025-07-29 15:03:22 +08:00
三咲雅 misaki masa
9535caad5b
fix: make URLs with invalid UTF-8 serializable (#3023) 2025-07-28 17:21:47 +08:00
三咲雅 misaki masa
0e3cd8545c
feat: URL schemas (#3019) 2025-07-27 18:06:13 +08:00
三咲雅 misaki masa
c2883f1e05
refactor: pull filesystem calls out into a designated yazi_fs crate (#3013) 2025-07-23 22:43:11 +08:00
Andrew Rabert
1f596a01fc
feat: new bulk_rename command always renames files with the editor (#2984)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2025-07-23 15:02:01 +08:00
三咲雅 misaki masa
bfe12c8052
fix: suspend only when there is a parent process (#3008) 2025-07-21 14:42:10 +08:00
三咲雅 misaki masa
74bd98031e
feat: key-* DDS events to allow canceling user key commands (#3005) 2025-07-20 14:11:57 +08:00
三咲雅 misaki masa
c28d2e8180
refactor: eliminate the tab conceptual hierarchy (#2999) 2025-07-18 14:31:16 +08:00
三咲雅 misaki masa
0fd74ae44c
perf!: cacheable iterator (#2997) 2025-07-18 07:48:00 +08:00
三咲雅 misaki masa
5f8a1496fe
refactor: invert the dependency relationship between yazi-parser and yazi-proxy (#2992) 2025-07-16 22:46:10 +08:00
三咲雅 misaki masa
548bb0d063
refactor: upgrade to mlua v0.11.0 (#2989) 2025-07-16 11:02:34 +08:00
三咲雅 misaki masa
60a2382087
refactor: switch to actor model (#2986) 2025-07-14 23:08:11 +08:00
三咲雅 misaki masa
6366e46c23
refactor: use term "core" instead of "context" (#2978) 2025-07-11 09:00:22 +08:00
三咲雅 misaki masa
c9c85130e1
refactor: pull DDS events out into a macro (#2977) 2025-07-11 08:55:56 +08:00
三咲雅 misaki masa
18795320bb
fix: stringify!(r#move) is "r#move" instead of "move" (#2973) 2025-07-10 10:33:43 +08:00
Euclid Ye
bc9dbd35e3
feat: new "Show media info" for play opener on Windows (#2962) 2025-07-10 00:38:59 +08:00
simonborje
559a46e399
feat: make ticket optional for cmp:trigger (#2968)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2025-07-10 00:12:51 +08:00
三咲雅 misaki masa
452b435b71
feat: allow dynamic adjustment of layout ratio via rt.mgr.ratio (#2964) 2025-07-08 23:59:50 +08:00
Euclid Ye
5f7c0e813f
fix: respect user's system media opener instead of hardcoding mpv (#2959)
Co-authored-by: sxyazi <sxyazi@gmail.com>
2025-07-07 21:44:55 +08:00
三咲雅 misaki masa
917e1f54a1
perf: do not listen for file changes in inactive tabs (#2958) 2025-07-06 22:27:56 +08:00