From 9117fe262f30d801a0ec75504d16fd20dfad88a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20=C2=B7=20Misaki=20Masa?= Date: Fri, 27 Dec 2024 23:09:45 +0800 Subject: [PATCH] fix: add Alacritty to the database as a terminal that doesn't support any image protocol (#2107) --- yazi-adapter/src/brand.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yazi-adapter/src/brand.rs b/yazi-adapter/src/brand.rs index 0a87e058..efa9331d 100644 --- a/yazi-adapter/src/brand.rs +++ b/yazi-adapter/src/brand.rs @@ -13,6 +13,7 @@ pub enum Brand { Ghostty, Microsoft, Rio, + Alacritty, BlackBox, VSCode, Tabby, @@ -38,6 +39,7 @@ impl Brand { ("WEZTERM_EXECUTABLE", B::WezTerm), ("GHOSTTY_RESOURCES_DIR", B::Ghostty), ("WT_Session", B::Microsoft), + ("ALACRITTY_WINDOW_ID", B::Alacritty), ("VSCODE_INJECTION", B::VSCode), ("TABBY_CONFIG_DIRECTORY", B::Tabby), ]; @@ -66,6 +68,7 @@ impl Brand { "foot-extra" => return Some(B::Foot), "xterm-ghostty" => return Some(B::Ghostty), "rio" => return Some(B::Rio), + "alacritty" => return Some(B::Alacritty), "rxvt-unicode-256color" => return Some(B::Urxvt), _ => warn!("[Adapter] Unknown TERM: {term}"), } @@ -98,6 +101,7 @@ impl Brand { B::Ghostty => &[A::Kgp], B::Microsoft => &[A::Sixel], B::Rio => &[A::Iip, A::Sixel], + B::Alacritty => &[], B::BlackBox => &[A::Sixel], B::VSCode => &[A::Iip, A::Sixel], B::Tabby => &[A::Iip, A::Sixel],