feat: support Warp terminal image preview (#2571)

This commit is contained in:
三咲雅 · Misaki Masa 2025-04-04 08:02:51 +08:00 committed by GitHub
parent b725b86be1
commit 3c9f619b84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

4
Cargo.lock generated
View file

@ -1372,9 +1372,9 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]]
name = "miniz_oxide"
version = "0.8.5"
version = "0.8.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e3e04debbb59698c15bacbb6d93584a8c0ca9cc3213cb423d31f760d8843ce5"
checksum = "ff70ce3e48ae43fa075863cef62e8b43b71a4f2382229920e0df362592919430"
dependencies = [
"adler2",
"simd-adler32",

View file

@ -62,6 +62,7 @@ Yazi is currently in heavy development, expect breaking changes.
| [Ghostty](https://github.com/ghostty-org/ghostty) | [Kitty unicode placeholders][kgp] | ✅ Built-in |
| [Windows Terminal](https://github.com/microsoft/terminal) (>= v1.22.10352.0) | [Sixel graphics format][sixel] | ✅ Built-in |
| [st with Sixel patch](https://github.com/bakkeby/st-flexipatch) | [Sixel graphics format][sixel] | ✅ Built-in |
| [Warp](https://www.warp.dev) | [Inline images protocol][iip] | ✅ Built-in |
| [Tabby](https://github.com/Eugeny/tabby) | [Inline images protocol][iip] | ✅ Built-in |
| [VSCode](https://github.com/microsoft/vscode) | [Inline images protocol][iip] | ✅ Built-in |
| [Rio](https://github.com/raphamorim/rio) | [Inline images protocol][iip] | ❌ Rio doesn't correctly clear images [#709][rio-bug] |

View file

@ -101,7 +101,7 @@ impl Brand {
B::Foot => &[A::Sixel],
B::Ghostty => &[A::Kgp],
B::Microsoft => &[A::Sixel],
B::Warp => &[],
B::Warp => &[A::Iip, A::KgpOld],
B::Rio => &[A::Iip, A::Sixel],
B::BlackBox => &[A::Sixel],
B::VSCode => &[A::Iip, A::Sixel],

View file

@ -13,8 +13,8 @@ impl Unknown {
use Adapter as A;
match (self.kgp, self.sixel) {
(true, true) => &[A::Kgp, A::Sixel],
(true, false) => &[A::Kgp],
(true, true) => &[A::Sixel, A::KgpOld],
(true, false) => &[A::KgpOld],
(false, true) => &[A::Sixel],
(false, false) => &[],
}