yazi-proxy 25.2.26

Yazi event proxy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use yazi_macro::emit;
use yazi_shared::event::Cmd;

pub struct CmpProxy;

impl CmpProxy {
	#[inline]
	pub fn close() {
		emit!(Call(Cmd::new("cmp:close")));
	}

	#[inline]
	pub fn trigger(word: &str, ticket: usize) {
		emit!(Call(Cmd::args("cmp:trigger", &[word]).with("ticket", ticket)));
	}
}