mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
15 lines
343 B
Rust
15 lines
343 B
Rust
use yazi_macro::{emit, relay};
|
|
use yazi_parser::cmp::ShowOpt;
|
|
use yazi_shared::Id;
|
|
|
|
pub struct CmpProxy;
|
|
|
|
impl CmpProxy {
|
|
pub fn show(opt: ShowOpt) {
|
|
emit!(Call(relay!(cmp:show).with_any("opt", opt)));
|
|
}
|
|
|
|
pub fn trigger(word: impl Into<String>, ticket: Id) {
|
|
emit!(Call(relay!(cmp:trigger, [word.into()]).with("ticket", ticket)));
|
|
}
|
|
}
|