mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
feat: image preview in Tabby terminal (#569)
This commit is contained in:
parent
3248dbd8bb
commit
a19e263242
2 changed files with 5 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ https://github.com/sxyazi/yazi/assets/17523360/92ff23fa-0cd5-4f04-b387-894c12265
|
||||||
| foot | [Sixel graphics format](https://www.vt100.net/docs/vt3xx-gp/chapter14.html) | ✅ Built-in |
|
| foot | [Sixel graphics format](https://www.vt100.net/docs/vt3xx-gp/chapter14.html) | ✅ Built-in |
|
||||||
| Ghostty | [Kitty old protocol](https://github.com/sxyazi/yazi/blob/main/yazi-adaptor/src/kitty_old.rs) | ✅ Built-in |
|
| Ghostty | [Kitty old protocol](https://github.com/sxyazi/yazi/blob/main/yazi-adaptor/src/kitty_old.rs) | ✅ Built-in |
|
||||||
| Black Box | [Sixel graphics format](https://www.vt100.net/docs/vt3xx-gp/chapter14.html) | ✅ Built-in |
|
| Black Box | [Sixel graphics format](https://www.vt100.net/docs/vt3xx-gp/chapter14.html) | ✅ Built-in |
|
||||||
|
| Tabby | [Sixel graphics format](https://www.vt100.net/docs/vt3xx-gp/chapter14.html) | ✅ Built-in |
|
||||||
| Hyper | [Sixel graphics format](https://www.vt100.net/docs/vt3xx-gp/chapter14.html) | ✅ Built-in |
|
| Hyper | [Sixel graphics format](https://www.vt100.net/docs/vt3xx-gp/chapter14.html) | ✅ Built-in |
|
||||||
| X11 / Wayland | Window system protocol | ☑️ Überzug++ required |
|
| X11 / Wayland | Window system protocol | ☑️ Überzug++ required |
|
||||||
| Fallback | [Chafa](https://hpjansson.org/chafa/) | ☑️ Überzug++ required |
|
| Fallback | [Chafa](https://hpjansson.org/chafa/) | ☑️ Überzug++ required |
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ enum Emulator {
|
||||||
Ghostty,
|
Ghostty,
|
||||||
BlackBox,
|
BlackBox,
|
||||||
VSCode,
|
VSCode,
|
||||||
|
Tabby,
|
||||||
Hyper,
|
Hyper,
|
||||||
Mintty,
|
Mintty,
|
||||||
Neovim,
|
Neovim,
|
||||||
|
|
@ -50,6 +51,7 @@ impl Adaptor {
|
||||||
("WEZTERM_EXECUTABLE", Emulator::WezTerm),
|
("WEZTERM_EXECUTABLE", Emulator::WezTerm),
|
||||||
("GHOSTTY_RESOURCES_DIR", Emulator::Ghostty),
|
("GHOSTTY_RESOURCES_DIR", Emulator::Ghostty),
|
||||||
("VSCODE_INJECTION", Emulator::VSCode),
|
("VSCODE_INJECTION", Emulator::VSCode),
|
||||||
|
("TABBY_CONFIG_DIRECTORY", Emulator::Tabby),
|
||||||
];
|
];
|
||||||
match vars.into_iter().find(|v| env_exists(v.0)) {
|
match vars.into_iter().find(|v| env_exists(v.0)) {
|
||||||
Some(var) => return var.1,
|
Some(var) => return var.1,
|
||||||
|
|
@ -63,6 +65,7 @@ impl Adaptor {
|
||||||
"ghostty" => return Emulator::Ghostty,
|
"ghostty" => return Emulator::Ghostty,
|
||||||
"BlackBox" => return Emulator::BlackBox,
|
"BlackBox" => return Emulator::BlackBox,
|
||||||
"vscode" => return Emulator::VSCode,
|
"vscode" => return Emulator::VSCode,
|
||||||
|
"Tabby" => return Emulator::Tabby,
|
||||||
"Hyper" => return Emulator::Hyper,
|
"Hyper" => return Emulator::Hyper,
|
||||||
"mintty" => return Emulator::Mintty,
|
"mintty" => return Emulator::Mintty,
|
||||||
_ => warn!("[Adaptor] Unknown TERM_PROGRAM: {program}"),
|
_ => warn!("[Adaptor] Unknown TERM_PROGRAM: {program}"),
|
||||||
|
|
@ -88,6 +91,7 @@ impl Adaptor {
|
||||||
Emulator::Ghostty => vec![Self::KittyOld],
|
Emulator::Ghostty => vec![Self::KittyOld],
|
||||||
Emulator::BlackBox => vec![Self::Sixel],
|
Emulator::BlackBox => vec![Self::Sixel],
|
||||||
Emulator::VSCode => vec![Self::Sixel],
|
Emulator::VSCode => vec![Self::Sixel],
|
||||||
|
Emulator::Tabby => vec![Self::Sixel],
|
||||||
Emulator::Hyper => vec![Self::Sixel],
|
Emulator::Hyper => vec![Self::Sixel],
|
||||||
Emulator::Mintty => vec![Self::Iterm2],
|
Emulator::Mintty => vec![Self::Iterm2],
|
||||||
Emulator::Neovim => vec![],
|
Emulator::Neovim => vec![],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue