yazi-proxy 25.5.28

Yazi event proxy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::{ffi::OsString, path::MAIN_SEPARATOR_STR};

#[derive(Debug, Clone)]
pub struct CmpItem {
	pub name:   OsString,
	pub is_dir: bool,
}

impl CmpItem {
	pub fn completable(&self) -> String {
		format!("{}{}", self.name.to_string_lossy(), if self.is_dir { MAIN_SEPARATOR_STR } else { "" })
	}
}