mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
feat: adapt for image preview in the Rio terminal (#1690)
Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
parent
e2816716a0
commit
9f8109e02e
3 changed files with 6 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ https://github.com/sxyazi/yazi/assets/17523360/92ff23fa-0cd5-4f04-b387-894c12265
|
|||
| [VSCode](https://github.com/microsoft/vscode) | [Inline images protocol](https://iterm2.com/documentation-images.html) | ✅ Built-in |
|
||||
| [Tabby](https://github.com/Eugeny/tabby) | [Inline images protocol](https://iterm2.com/documentation-images.html) | ✅ Built-in |
|
||||
| [Hyper](https://github.com/vercel/hyper) | [Inline images protocol](https://iterm2.com/documentation-images.html) | ✅ Built-in |
|
||||
| [Rio](https://github.com/raphamorim/rio) | [Inline images protocol](https://iterm2.com/documentation-images.html) | ✅ Built-in |
|
||||
| X11 / Wayland | Window system protocol | ☑️ [Überzug++](https://github.com/jstkdng/ueberzugpp) required |
|
||||
| Fallback | [ASCII art (Unicode block)](https://en.wikipedia.org/wiki/ASCII_art) | ☑️ [Chafa](https://hpjansson.org/chafa/) required |
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ pub enum Emulator {
|
|||
Foot,
|
||||
Ghostty,
|
||||
Microsoft,
|
||||
Rio,
|
||||
BlackBox,
|
||||
VSCode,
|
||||
Tabby,
|
||||
|
|
@ -40,6 +41,7 @@ impl Emulator {
|
|||
Self::Foot => vec![Adapter::Sixel],
|
||||
Self::Ghostty => vec![Adapter::Kitty],
|
||||
Self::Microsoft => vec![Adapter::Sixel],
|
||||
Self::Rio => vec![Adapter::Iip, Adapter::Sixel],
|
||||
Self::BlackBox => vec![Adapter::Sixel],
|
||||
Self::VSCode => vec![Adapter::Iip, Adapter::Sixel],
|
||||
Self::Tabby => vec![Adapter::Iip, Adapter::Sixel],
|
||||
|
|
@ -78,6 +80,7 @@ impl Emulator {
|
|||
"iTerm.app" => return Self::Iterm2,
|
||||
"WezTerm" => return Self::WezTerm,
|
||||
"ghostty" => return Self::Ghostty,
|
||||
"rio" => return Self::Rio,
|
||||
"BlackBox" => return Self::BlackBox,
|
||||
"vscode" => return Self::VSCode,
|
||||
"Tabby" => return Self::Tabby,
|
||||
|
|
@ -91,6 +94,7 @@ impl Emulator {
|
|||
"foot" => return Self::Foot,
|
||||
"foot-extra" => return Self::Foot,
|
||||
"xterm-ghostty" => return Self::Ghostty,
|
||||
"rio" => return Self::Rio,
|
||||
"rxvt-unicode-256color" => return Self::Urxvt,
|
||||
_ => warn!("[Adapter] Unknown TERM: {term}"),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -263,6 +263,7 @@ keymap = [
|
|||
]
|
||||
|
||||
[confirm]
|
||||
|
||||
keymap = [
|
||||
{ on = "<Esc>", run = "close", desc = "Cancel the confirm" },
|
||||
{ on = "<C-[>", run = "close", desc = "Cancel the confirm" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue