From b90b1dea2de1d77587bd56ef734267700d2f1169 Mon Sep 17 00:00:00 2001 From: ismail-yilmaz Date: Sun, 26 Jan 2025 01:27:52 +0300 Subject: [PATCH] Add Bobcat to the list of VTEs with images support --- README.md | 1 + yazi-adapter/src/brand.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 1cc4eab8..508e1b9b 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ https://github.com/sxyazi/yazi/assets/17523360/92ff23fa-0cd5-4f04-b387-894c12265 | [Rio](https://github.com/raphamorim/rio) | [Inline images protocol][iip] | ❌ Rio doesn't correctly clear images [#709][rio-bug] | | [Black Box](https://gitlab.gnome.org/raggesilver/blackbox) | [Sixel graphics format][sixel] | ✅ Built-in | | [Hyper](https://github.com/vercel/hyper) | [Inline images protocol][iip] | ✅ Built-in | +| [Bobcat](https://github.com/ismail-yilmaz/Bobcat) | [Inline images protocol][iip] | ✅ Built-in | | X11 / Wayland | Window system protocol | ☑️ [Überzug++][ueberzug] required | | Fallback | [ASCII art (Unicode block)][ascii-art] | ☑️ [Chafa][chafa] required | diff --git a/yazi-adapter/src/brand.rs b/yazi-adapter/src/brand.rs index efa9331d..712f6066 100644 --- a/yazi-adapter/src/brand.rs +++ b/yazi-adapter/src/brand.rs @@ -22,6 +22,7 @@ pub enum Brand { Neovim, Apple, Urxvt, + Bobcat, } impl Brand { @@ -83,6 +84,7 @@ impl Brand { ("WezTerm", Self::WezTerm), ("foot", Self::Foot), ("ghostty", Self::Ghostty), + ("Bobcat", Self::Bobcat), ]; names.into_iter().find(|&(n, _)| resp.contains(n)).map(|(_, b)| b) } @@ -110,6 +112,7 @@ impl Brand { B::Neovim => &[], B::Apple => &[], B::Urxvt => &[], + B::Bobcat => &[A::Iip, A::Sixel], } }