yazi-proxy 25.12.29

Yazi event proxy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use tokio::sync::oneshot;
use yazi_config::popup::PickCfg;
use yazi_macro::{emit, relay};

pub struct PickProxy;

impl PickProxy {
	pub async fn show(cfg: PickCfg) -> anyhow::Result<usize> {
		let (tx, rx) = oneshot::channel();
		emit!(Call(relay!(pick:show).with_any("tx", tx).with_any("cfg", cfg)));
		rx.await?
	}
}