yazi-proxy 26.5.6

Yazi event proxy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use yazi_core::app::{PluginOpt, QuitOpt};
use yazi_macro::{emit, relay};

pub struct AppProxy;

impl AppProxy {
	pub fn quit(opt: QuitOpt) {
		emit!(Call(relay!(app:quit).with_any("opt", opt)));
	}

	pub fn plugin_do(opt: PluginOpt) {
		emit!(Call(relay!(app:plugin_do).with_any("opt", opt)));
	}
}