yazi-proxy 26.5.6

Yazi event proxy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::time::Duration;

use yazi_core::notify::MessageOpt;
use yazi_macro::{emit, relay};

pub struct NotifyProxy;

impl NotifyProxy {
	pub fn push(opt: MessageOpt) {
		emit!(Call(relay!(notify:push).with_any("opt", opt)));
	}

	pub fn tick(dur: Duration) {
		emit!(Call(relay!(notify:tick, [dur.as_secs_f64()])));
	}
}