mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-23 15:51:03 +00:00
16 lines
348 B
Rust
16 lines
348 B
Rust
use yazi_macro::emit;
|
|
use yazi_shared::{Layer, event::Cmd};
|
|
|
|
pub struct CompletionProxy;
|
|
|
|
impl CompletionProxy {
|
|
#[inline]
|
|
pub fn close() {
|
|
emit!(Call(Cmd::new("close"), Layer::Completion));
|
|
}
|
|
|
|
#[inline]
|
|
pub fn trigger(word: &str, ticket: usize) {
|
|
emit!(Call(Cmd::args("trigger", &[word]).with("ticket", ticket), Layer::Completion));
|
|
}
|
|
}
|