Skip to content

Commit c2b89fa

Browse files
sxyaziLemi0002
authored andcommitted
feat: support Warp terminal image preview (sxyazi#2571)
1 parent 1d0b638 commit c2b89fa

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

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

yazi-adapter/src/brand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl Brand {
101101
B::Foot => &[A::Sixel],
102102
B::Ghostty => &[A::Kgp],
103103
B::Microsoft => &[A::Sixel],
104-
B::Warp => &[],
104+
B::Warp => &[A::Iip, A::KgpOld],
105105
B::Rio => &[A::Iip, A::Sixel],
106106
B::BlackBox => &[A::Sixel],
107107
B::VSCode => &[A::Iip, A::Sixel],

yazi-adapter/src/unknown.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ impl Unknown {
1313
use Adapter as A;
1414

1515
match (self.kgp, self.sixel) {
16-
(true, true) => &[A::Kgp, A::Sixel],
17-
(true, false) => &[A::Kgp],
16+
(true, true) => &[A::Sixel, A::KgpOld],
17+
(true, false) => &[A::KgpOld],
1818
(false, true) => &[A::Sixel],
1919
(false, false) => &[],
2020
}

0 commit comments

Comments
 (0)