mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Use IIP instead of Sixel for Rio
This commit is contained in:
parent
9bc8219362
commit
853f507b96
2 changed files with 5 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ pub enum Emulator {
|
||||||
Foot,
|
Foot,
|
||||||
Ghostty,
|
Ghostty,
|
||||||
Microsoft,
|
Microsoft,
|
||||||
|
Rio,
|
||||||
BlackBox,
|
BlackBox,
|
||||||
VSCode,
|
VSCode,
|
||||||
Tabby,
|
Tabby,
|
||||||
|
|
@ -40,6 +41,7 @@ impl Emulator {
|
||||||
Self::Foot => vec![Adapter::Sixel],
|
Self::Foot => vec![Adapter::Sixel],
|
||||||
Self::Ghostty => vec![Adapter::Kitty],
|
Self::Ghostty => vec![Adapter::Kitty],
|
||||||
Self::Microsoft => vec![Adapter::Sixel],
|
Self::Microsoft => vec![Adapter::Sixel],
|
||||||
|
Self::Rio => vec![Adapter::Iip, Adapter::Sixel],
|
||||||
Self::BlackBox => vec![Adapter::Sixel],
|
Self::BlackBox => vec![Adapter::Sixel],
|
||||||
Self::VSCode => vec![Adapter::Iip, Adapter::Sixel],
|
Self::VSCode => vec![Adapter::Iip, Adapter::Sixel],
|
||||||
Self::Tabby => vec![Adapter::Iip, Adapter::Sixel],
|
Self::Tabby => vec![Adapter::Iip, Adapter::Sixel],
|
||||||
|
|
@ -78,6 +80,7 @@ impl Emulator {
|
||||||
"iTerm.app" => return Self::Iterm2,
|
"iTerm.app" => return Self::Iterm2,
|
||||||
"WezTerm" => return Self::WezTerm,
|
"WezTerm" => return Self::WezTerm,
|
||||||
"ghostty" => return Self::Ghostty,
|
"ghostty" => return Self::Ghostty,
|
||||||
|
"rio" => return Self::Rio,
|
||||||
"BlackBox" => return Self::BlackBox,
|
"BlackBox" => return Self::BlackBox,
|
||||||
"vscode" => return Self::VSCode,
|
"vscode" => return Self::VSCode,
|
||||||
"Tabby" => return Self::Tabby,
|
"Tabby" => return Self::Tabby,
|
||||||
|
|
@ -91,6 +94,7 @@ impl Emulator {
|
||||||
"foot" => return Self::Foot,
|
"foot" => return Self::Foot,
|
||||||
"foot-extra" => return Self::Foot,
|
"foot-extra" => return Self::Foot,
|
||||||
"xterm-ghostty" => return Self::Ghostty,
|
"xterm-ghostty" => return Self::Ghostty,
|
||||||
|
"rio" => return Self::Rio,
|
||||||
"rxvt-unicode-256color" => return Self::Urxvt,
|
"rxvt-unicode-256color" => return Self::Urxvt,
|
||||||
_ => warn!("[Adapter] Unknown TERM: {term}"),
|
_ => warn!("[Adapter] Unknown TERM: {term}"),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -263,6 +263,7 @@ keymap = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[confirm]
|
[confirm]
|
||||||
|
|
||||||
keymap = [
|
keymap = [
|
||||||
{ on = "<Esc>", run = "close", desc = "Cancel the confirm" },
|
{ on = "<Esc>", run = "close", desc = "Cancel the confirm" },
|
||||||
{ on = "<C-[>", run = "close", desc = "Cancel the confirm" },
|
{ on = "<C-[>", run = "close", desc = "Cancel the confirm" },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue