repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/help/toggle.rs | yazi-parser/src/help/toggle.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{Layer, event::CmdCow};
#[derive(Debug)]
pub struct ToggleOpt {
pub layer: Layer,
}
impl TryFrom<CmdCow> for ToggleOpt {
type Error = anyhow::Error;
fn try_from(c: CmdCow) -> Result<Self, Self::Error> { Ok(Self { layer: c.str(0).parse()? })... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/help/mod.rs | yazi-parser/src/help/mod.rs | yazi_macro::mod_flat!(toggle);
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/open.rs | yazi-parser/src/mgr/open.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{event::CmdCow, url::UrlCow};
#[derive(Debug)]
pub struct OpenOpt {
pub cwd: Option<UrlCow<'static>>,
pub targets: Vec<UrlCow<'static>>,
pub interactive: bool,
pub hovered: bool,
}
impl TryFrom<CmdCow> for OpenOpt {
type Er... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/stash.rs | yazi-parser/src/mgr/stash.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, LuaSerdeExt, Value};
use serde::{Deserialize, Serialize};
use yazi_binding::Url;
use yazi_shared::{event::CmdCow, url::UrlBuf};
use crate::mgr::{CdOpt, CdSource};
#[derive(Debug, Deserialize, Serialize)]
pub struct StashOpt {
pub target: UrlBuf,
pub... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/update_mimes.rs | yazi-parser/src/mgr/update_mimes.rs | use anyhow::bail;
use hashbrown::HashMap;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{data::{Data, DataKey}, event::CmdCow};
#[derive(Debug)]
pub struct UpdateMimesOpt {
pub updates: HashMap<DataKey, Data>,
}
impl TryFrom<CmdCow> for UpdateMimesOpt {
type Error = anyhow::Error;
fn t... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/link.rs | yazi-parser/src/mgr/link.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct LinkOpt {
pub relative: bool,
pub force: bool,
}
impl From<CmdCow> for LinkOpt {
fn from(c: CmdCow) -> Self { Self { relative: c.bool("relative"), force: c.bool("force") } }
}
impl FromLua for L... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/download.rs | yazi-parser/src/mgr/download.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{event::CmdCow, url::UrlCow};
#[derive(Debug, Default)]
pub struct DownloadOpt {
pub urls: Vec<UrlCow<'static>>,
pub open: bool,
}
impl From<CmdCow> for DownloadOpt {
fn from(mut c: CmdCow) -> Self { Self { urls: c.take_seq(), open: c.bool("... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/yank.rs | yazi-parser/src/mgr/yank.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct YankOpt {
pub cut: bool,
}
impl From<CmdCow> for YankOpt {
fn from(c: CmdCow) -> Self { Self { cut: c.bool("cut") } }
}
impl FromLua for YankOpt {
fn from_lua(_: Value, _: &Lua) -> mlua::Result<Sel... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/hardlink.rs | yazi-parser/src/mgr/hardlink.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct HardlinkOpt {
pub force: bool,
pub follow: bool,
}
impl From<CmdCow> for HardlinkOpt {
fn from(c: CmdCow) -> Self { Self { force: c.bool("force"), follow: c.bool("follow") } }
}
impl FromLua for H... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/cd.rs | yazi-parser/src/mgr/cd.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use serde::{Deserialize, Serialize};
use yazi_fs::path::{clean_url, expand_url};
use yazi_shared::{event::CmdCow, url::{Url, UrlBuf}};
use yazi_vfs::provider;
#[derive(Debug)]
pub struct CdOpt {
pub target: UrlBuf,
pub interactive: bool,
pub source: ... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/filter.rs | yazi-parser/src/mgr/filter.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_fs::FilterCase;
use yazi_shared::{SStr, event::CmdCow};
#[derive(Debug, Default)]
pub struct FilterOpt {
pub query: SStr,
pub case: FilterCase,
pub done: bool,
}
impl TryFrom<CmdCow> for FilterOpt {
type Error = anyhow::Error;
fn try_from(mut c... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/update_spotted.rs | yazi-parser/src/mgr/update_spotted.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Table, Value};
use yazi_binding::{FileRef, elements::Renderable};
use yazi_shared::{Id, event::CmdCow};
#[derive(Debug)]
pub struct UpdateSpottedOpt {
pub lock: SpotLock,
}
impl TryFrom<CmdCow> for UpdateSpottedOpt {
type Error = anyhow::Error;
fn... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/sort.rs | yazi-parser/src/mgr/sort.rs | use mlua::{FromLua, IntoLua, Lua, LuaSerdeExt, Value};
use serde::{Deserialize, Serialize};
use yazi_fs::SortBy;
use yazi_shared::event::CmdCow;
#[derive(Debug, Default, Deserialize, Serialize)]
pub struct SortOpt {
pub by: Option<SortBy>,
pub reverse: Option<bool>,
pub dir_first: Option<bool>,
pub sensit... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/rename.rs | yazi-parser/src/mgr/rename.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{SStr, event::CmdCow};
#[derive(Debug)]
pub struct RenameOpt {
pub hovered: bool,
pub force: bool,
pub empty: SStr,
pub cursor: SStr,
}
impl From<CmdCow> for RenameOpt {
fn from(mut c: CmdCow) -> Self {
Self {
hovered: c.bool("ho... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/toggle_all.rs | yazi-parser/src/mgr/toggle_all.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{event::CmdCow, url::UrlCow};
#[derive(Debug)]
pub struct ToggleAllOpt {
pub urls: Vec<UrlCow<'static>>,
pub state: Option<bool>,
}
impl From<CmdCow> for ToggleAllOpt {
fn from(mut c: CmdCow) -> Self {
Self {
urls: c.take_seq(),
st... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/tab_close.rs | yazi-parser/src/mgr/tab_close.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct TabCloseOpt {
pub idx: usize,
}
impl From<CmdCow> for TabCloseOpt {
fn from(c: CmdCow) -> Self { Self { idx: c.first().unwrap_or(0) } }
}
impl From<usize> for TabCloseOpt {
fn from(idx: usize) -> S... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/peek.rs | yazi-parser/src/mgr/peek.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{event::CmdCow, url::UrlCow};
#[derive(Debug, Default)]
pub struct PeekOpt {
pub skip: Option<usize>,
pub force: bool,
pub only_if: Option<UrlCow<'static>>,
pub upper_bound: bool,
}
impl From<CmdCow> for PeekOpt {
fn from(... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/open_do.rs | yazi-parser/src/mgr/open_do.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{event::CmdCow, url::UrlCow};
#[derive(Debug, Default)]
pub struct OpenDoOpt {
pub cwd: UrlCow<'static>,
pub targets: Vec<UrlCow<'static>>,
pub interactive: bool,
}
impl TryFrom<CmdCow> for OpenDoOpt {
type Err... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/update_files.rs | yazi-parser/src/mgr/update_files.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_fs::FilesOp;
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct UpdateFilesOpt {
pub op: FilesOp,
}
impl TryFrom<CmdCow> for UpdateFilesOpt {
type Error = anyhow::Error;
fn try_from(mut c: CmdCow) -> Result<Self, Self::Er... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/toggle.rs | yazi-parser/src/mgr/toggle.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{event::CmdCow, url::UrlCow};
#[derive(Debug)]
pub struct ToggleOpt {
pub url: Option<UrlCow<'static>>,
pub state: Option<bool>,
}
impl From<CmdCow> for ToggleOpt {
fn from(mut c: CmdCow) -> Self {
Self {
url: c.take_first().ok(),
... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/shell.rs | yazi-parser/src/mgr/shell.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{SStr, event::CmdCow, url::UrlCow};
#[derive(Debug)]
pub struct ShellOpt {
pub run: SStr,
pub cwd: Option<UrlCow<'static>>,
pub block: bool,
pub orphan: bool,
pub interactive: bool,
pub cursor: Option<usize>,... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/hover.rs | yazi-parser/src/mgr/hover.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::path::PathBufDyn;
#[derive(Debug, Default)]
pub struct HoverOpt {
pub urn: Option<PathBufDyn>,
}
impl From<Option<PathBufDyn>> for HoverOpt {
fn from(urn: Option<PathBufDyn>) -> Self { Self { urn } }
}
impl FromLua for HoverOpt {
fn from_lu... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/search.rs | yazi-parser/src/mgr/search.rs | use std::str::FromStr;
use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use serde::Deserialize;
use yazi_shared::{SStr, event::CmdCow};
#[derive(Debug)]
pub struct SearchOpt {
pub via: SearchOptVia,
pub subject: SStr,
pub args: Vec<String>,
pub args_raw: SStr,
}
impl TryFrom<C... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/find.rs | yazi-parser/src/mgr/find.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_fs::FilterCase;
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct FindOpt {
pub prev: bool,
pub case: FilterCase,
}
impl TryFrom<CmdCow> for FindOpt {
type Error = anyhow::Error;
fn try_from(c: CmdCow) -> Result<Self, Self::Error> {
Ok... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/quit.rs | yazi-parser/src/mgr/quit.rs | use mlua::{FromLua, IntoLua, Lua, LuaSerdeExt, Value};
use serde::{Deserialize, Serialize};
use yazi_shared::event::{CmdCow, EventQuit};
#[derive(Debug, Default, Deserialize, Serialize)]
pub struct QuitOpt {
pub code: i32,
pub no_cwd_file: bool,
}
impl From<CmdCow> for QuitOpt {
fn from(c: CmdCow) -> Self {... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/find_arrow.rs | yazi-parser/src/mgr/find_arrow.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct FindArrowOpt {
pub prev: bool,
}
impl From<CmdCow> for FindArrowOpt {
fn from(c: CmdCow) -> Self { Self { prev: c.bool("previous") } }
}
impl FromLua for FindArrowOpt {
fn from_lua(_: Value, _: &Lu... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/copy.rs | yazi-parser/src/mgr/copy.rs | use std::{borrow::Cow, str::FromStr};
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use serde::Deserialize;
use yazi_shared::{SStr, event::CmdCow, strand::AsStrand};
#[derive(Debug)]
pub struct CopyOpt {
pub r#type: SStr,
pub separator: CopySeparator,
pub hovered: bool,
}
impl From<CmdCow> for Cop... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/paste.rs | yazi-parser/src/mgr/paste.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct PasteOpt {
pub force: bool,
pub follow: bool,
}
impl From<CmdCow> for PasteOpt {
fn from(c: CmdCow) -> Self { Self { force: c.bool("force"), follow: c.bool("follow") } }
}
impl FromLua for PasteOp... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/upload.rs | yazi-parser/src/mgr/upload.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{event::CmdCow, url::UrlCow};
#[derive(Debug, Default)]
pub struct UploadOpt {
pub urls: Vec<UrlCow<'static>>,
}
impl From<CmdCow> for UploadOpt {
fn from(mut c: CmdCow) -> Self { Self { urls: c.take_seq() } }
}
impl FromLua for UploadOpt {
... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/mod.rs | yazi-parser/src/mgr/mod.rs | yazi_macro::mod_flat!(
cd
close
copy
create
displace_do
download
escape
filter
find
find_arrow
find_do
hardlink
hidden
hover
linemode
link
open
open_do
paste
peek
quit
remove
rename
reveal
search
seek
shell
sort
spot
stash
tab_close
tab_create
tab_switch
toggle
toggle_all
update_file... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/visual_mode.rs | yazi-parser/src/mgr/visual_mode.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct VisualModeOpt {
pub unset: bool,
}
impl From<CmdCow> for VisualModeOpt {
fn from(c: CmdCow) -> Self { Self { unset: c.bool("unset") } }
}
impl FromLua for VisualModeOpt {
fn from_lua(_: Value, _: &... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/find_do.rs | yazi-parser/src/mgr/find_do.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_fs::FilterCase;
use yazi_shared::{SStr, event::CmdCow};
#[derive(Debug)]
pub struct FindDoOpt {
pub query: SStr,
pub prev: bool,
pub case: FilterCase,
}
impl TryFrom<CmdCow> for FindDoOpt {
type Error = anyhow::Error;
fn try_f... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/tab_create.rs | yazi-parser/src/mgr/tab_create.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_boot::BOOT;
use yazi_fs::path::{clean_url, expand_url};
use yazi_shared::{event::CmdCow, url::UrlCow};
use yazi_vfs::provider;
#[derive(Debug)]
pub struct TabCreateOpt {
pub url: Option<UrlCow<'static>>,
}
impl From<CmdCow> for TabCreateOpt {
fn from... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/hidden.rs | yazi-parser/src/mgr/hidden.rs | use std::str::FromStr;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use serde::{Deserialize, Serialize};
use yazi_shared::event::CmdCow;
#[derive(Debug, Default)]
pub struct HiddenOpt {
pub state: HiddenOptState,
}
impl TryFrom<CmdCow> for HiddenOpt {
type Error = anyhow::Error;
fn try_from(c: CmdCow... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/update_paged.rs | yazi-parser/src/mgr/update_paged.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{event::CmdCow, url::UrlCow};
#[derive(Debug, Default)]
pub struct UpdatePagedOpt {
pub page: Option<usize>,
pub only_if: Option<UrlCow<'static>>,
}
impl From<CmdCow> for UpdatePagedOpt {
fn from(mut c: CmdCow) -> Self { Self { page: c.fi... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/tab_switch.rs | yazi-parser/src/mgr/tab_switch.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct TabSwitchOpt {
pub step: isize,
pub relative: bool,
}
impl From<CmdCow> for TabSwitchOpt {
fn from(c: CmdCow) -> Self { Self { step: c.first().unwrap_or(0), relative: c.bool("relative") } }
}
i... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/update_peeked.rs | yazi-parser/src/mgr/update_peeked.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Table, Value};
use yazi_binding::{FileRef, elements::{Rect, Renderable}};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct UpdatePeekedOpt {
pub lock: PreviewLock,
}
impl TryFrom<CmdCow> for UpdatePeekedOpt {
type Error = anyhow::Error;
... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/spot.rs | yazi-parser/src/mgr/spot.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug, Default)]
pub struct SpotOpt {
pub skip: Option<usize>,
}
impl From<CmdCow> for SpotOpt {
fn from(c: CmdCow) -> Self { Self { skip: c.get("skip").ok() } }
}
impl From<usize> for SpotOpt {
fn from(skip: usize) ... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/escape.rs | yazi-parser/src/mgr/escape.rs | use bitflags::bitflags;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
bitflags! {
#[derive(Debug)]
pub struct EscapeOpt: u8 {
const FIND = 0b00001;
const VISUAL = 0b00010;
const FILTER = 0b00100;
const SELECT = 0b01000;
const SEARCH = 0b10000;
}
}
impl From<Cm... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/linemode.rs | yazi-parser/src/mgr/linemode.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{SStr, event::CmdCow};
#[derive(Debug)]
pub struct LinemodeOpt {
pub new: SStr,
}
impl TryFrom<CmdCow> for LinemodeOpt {
type Error = anyhow::Error;
fn try_from(mut c: CmdCow) -> Result<Self, Self::Error> {
let Ok(new) =... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/displace_do.rs | yazi-parser/src/mgr/displace_do.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{event::CmdCow, url::UrlBuf};
#[derive(Debug)]
pub struct DisplaceDoOpt {
pub to: std::io::Result<UrlBuf>,
pub from: UrlBuf,
}
impl TryFrom<CmdCow> for DisplaceDoOpt {
type Error = anyhow::Error;
fn try_from(mut c: CmdC... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/seek.rs | yazi-parser/src/mgr/seek.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct SeekOpt {
pub units: i16,
}
impl From<CmdCow> for SeekOpt {
fn from(c: CmdCow) -> Self { Self { units: c.first().unwrap_or(0) } }
}
impl FromLua for SeekOpt {
fn from_lua(_: Value, _: &Lua) -> mlua... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/remove.rs | yazi-parser/src/mgr/remove.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{event::CmdCow, url::UrlBuf};
#[derive(Debug)]
pub struct RemoveOpt {
pub force: bool,
pub permanently: bool,
pub hovered: bool,
pub targets: Vec<UrlBuf>,
}
impl From<CmdCow> for RemoveOpt {
fn from(mut c: CmdCow) -> Self {
... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/update_yanked.rs | yazi-parser/src/mgr/update_yanked.rs | use std::borrow::Cow;
use anyhow::bail;
use hashbrown::HashSet;
use mlua::{AnyUserData, ExternalError, FromLua, IntoLua, Lua, MetaMethod, MultiValue, ObjectLike, UserData, UserDataFields, UserDataMethods, Value};
use serde::{Deserialize, Serialize};
use yazi_binding::get_metatable;
use yazi_shared::{event::CmdCow, url... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/close.rs | yazi-parser/src/mgr/close.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
use crate::mgr::QuitOpt;
#[derive(Debug, Default)]
pub struct CloseOpt(pub QuitOpt);
impl From<CmdCow> for CloseOpt {
fn from(c: CmdCow) -> Self { Self(c.into()) }
}
impl FromLua for CloseOpt {
fn from_lua(_: Value, _: &Lua) ... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/reveal.rs | yazi-parser/src/mgr/reveal.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_fs::path::{clean_url, expand_url};
use yazi_shared::{event::CmdCow, url::UrlBuf};
use yazi_vfs::provider;
use crate::mgr::CdSource;
#[derive(Debug)]
pub struct RevealOpt {
pub target: UrlBuf,
pub source: CdSource,
pub no_dummy: bool,
}
impl Fro... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/mgr/create.rs | yazi-parser/src/mgr/create.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct CreateOpt {
pub dir: bool,
pub force: bool,
}
impl From<CmdCow> for CreateOpt {
fn from(c: CmdCow) -> Self { Self { dir: c.bool("dir"), force: c.bool("force") } }
}
impl FromLua for CreateOpt {
... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/spot/copy.rs | yazi-parser/src/spot/copy.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{SStr, event::CmdCow};
#[derive(Debug)]
pub struct CopyOpt {
pub r#type: SStr,
}
impl From<CmdCow> for CopyOpt {
fn from(mut c: CmdCow) -> Self { Self { r#type: c.take_first().unwrap_or_default() } }
}
impl FromLua for CopyOpt {
fn from_lua... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/spot/mod.rs | yazi-parser/src/spot/mod.rs | yazi_macro::mod_flat!(copy);
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/complete.rs | yazi-parser/src/input/complete.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{Id, event::CmdCow};
use crate::cmp::CmpItem;
#[derive(Debug)]
pub struct CompleteOpt {
pub item: CmpItem,
pub ticket: Id,
}
impl TryFrom<CmdCow> for CompleteOpt {
type Error = anyhow::Error;
fn try_from(mut c: CmdCow)... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/move.rs | yazi-parser/src/input/move.rs | use std::{num::ParseIntError, str::FromStr};
use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{data::Data, event::CmdCow};
#[derive(Debug, Default)]
pub struct MoveOpt {
pub step: MoveOptStep,
pub in_operating: bool,
}
impl From<CmdCow> for MoveOpt {
fn from(c: C... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/casefy.rs | yazi-parser/src/input/casefy.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct CasefyOpt {
pub upper: bool,
}
impl From<CmdCow> for CasefyOpt {
fn from(c: CmdCow) -> Self { Self { upper: c.str(0) == "upper" } }
}
impl FromLua for CasefyOpt {
fn from_lua(_: Value, _: &Lua) -> ... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/insert.rs | yazi-parser/src/input/insert.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct InsertOpt {
pub append: bool,
}
impl From<CmdCow> for InsertOpt {
fn from(c: CmdCow) -> Self { Self { append: c.bool("append") } }
}
impl From<bool> for InsertOpt {
fn from(append: bool) -> Self { ... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/kill.rs | yazi-parser/src/input/kill.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{SStr, event::CmdCow};
#[derive(Debug)]
pub struct KillOpt {
pub kind: SStr,
}
impl From<CmdCow> for KillOpt {
fn from(mut c: CmdCow) -> Self { Self { kind: c.take_first().unwrap_or_default() } }
}
impl FromLua for KillOpt {
fn from_lua(_: ... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/backspace.rs | yazi-parser/src/input/backspace.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug, Default)]
pub struct BackspaceOpt {
pub under: bool,
}
impl From<CmdCow> for BackspaceOpt {
fn from(c: CmdCow) -> Self { Self { under: c.bool("under") } }
}
impl From<bool> for BackspaceOpt {
fn from(under: bo... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/paste.rs | yazi-parser/src/input/paste.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct PasteOpt {
pub before: bool,
}
impl From<CmdCow> for PasteOpt {
fn from(c: CmdCow) -> Self { Self { before: c.bool("before") } }
}
impl FromLua for PasteOpt {
fn from_lua(_: Value, _: &Lua) -> mlua... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/mod.rs | yazi-parser/src/input/mod.rs | yazi_macro::mod_flat!(backspace backward casefy close complete delete forward insert kill paste r#move show);
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/backward.rs | yazi-parser/src/input/backward.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct BackwardOpt {
pub far: bool,
}
impl From<CmdCow> for BackwardOpt {
fn from(c: CmdCow) -> Self { Self { far: c.bool("far") } }
}
impl FromLua for BackwardOpt {
fn from_lua(_: Value, _: &Lua) -> mlua... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/show.rs | yazi-parser/src/input/show.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use tokio::sync::mpsc;
use yazi_config::popup::InputCfg;
use yazi_shared::{errors::InputError, event::CmdCow};
#[derive(Debug)]
pub struct ShowOpt {
pub cfg: InputCfg,
pub tx: mpsc::UnboundedSender<Result<String, InputError>>,
}
impl TryFro... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/forward.rs | yazi-parser/src/input/forward.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct ForwardOpt {
pub far: bool,
pub end_of_word: bool,
}
impl From<CmdCow> for ForwardOpt {
fn from(c: CmdCow) -> Self { Self { far: c.bool("far"), end_of_word: c.bool("end-of-word") } }
}
impl... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/close.rs | yazi-parser/src/input/close.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug, Default)]
pub struct CloseOpt {
pub submit: bool,
}
impl From<CmdCow> for CloseOpt {
fn from(c: CmdCow) -> Self { Self { submit: c.bool("submit") } }
}
impl From<bool> for CloseOpt {
fn from(submit: bool) -> S... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/input/delete.rs | yazi-parser/src/input/delete.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct DeleteOpt {
pub cut: bool,
pub insert: bool,
}
impl From<CmdCow> for DeleteOpt {
fn from(c: CmdCow) -> Self { Self { cut: c.bool("cut"), insert: c.bool("insert") } }
}
impl FromLua for DeleteOpt... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/pick/mod.rs | yazi-parser/src/pick/mod.rs | yazi_macro::mod_flat!(close show);
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/pick/show.rs | yazi-parser/src/pick/show.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use tokio::sync::oneshot;
use yazi_config::popup::PickCfg;
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct ShowOpt {
pub cfg: PickCfg,
pub tx: oneshot::Sender<anyhow::Result<usize>>,
}
impl TryFrom<CmdCow> for ShowOpt {
type Er... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/pick/close.rs | yazi-parser/src/pick/close.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug, Default)]
pub struct CloseOpt {
pub submit: bool,
}
impl From<CmdCow> for CloseOpt {
fn from(c: CmdCow) -> Self { Self { submit: c.bool("submit") } }
}
impl From<bool> for CloseOpt {
fn from(submit: bool) -> S... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/cmp/trigger.rs | yazi-parser/src/cmp/trigger.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{Id, SStr, event::CmdCow};
#[derive(Debug)]
pub struct TriggerOpt {
pub word: SStr,
pub ticket: Option<Id>,
}
impl From<CmdCow> for TriggerOpt {
fn from(mut c: CmdCow) -> Self {
Self { word: c.take_first().unwrap_or_default(), ticket: c.... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/cmp/mod.rs | yazi-parser/src/cmp/mod.rs | yazi_macro::mod_flat!(close show trigger);
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/cmp/show.rs | yazi-parser/src/cmp/show.rs | use std::path::MAIN_SEPARATOR_STR;
use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::{Id, event::CmdCow, path::PathBufDyn, strand::{StrandBuf, StrandLike}, url::UrlBuf};
#[derive(Debug)]
pub struct ShowOpt {
pub cache: Vec<CmpItem>,
pub cache_name: UrlBuf,
pub word: ... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/cmp/close.rs | yazi-parser/src/cmp/close.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug, Default)]
pub struct CloseOpt {
pub submit: bool,
}
impl From<CmdCow> for CloseOpt {
fn from(c: CmdCow) -> Self { Self { submit: c.bool("submit") } }
}
impl From<bool> for CloseOpt {
fn from(submit: bool) -> S... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/confirm/mod.rs | yazi-parser/src/confirm/mod.rs | yazi_macro::mod_flat!(close show);
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/confirm/show.rs | yazi-parser/src/confirm/show.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use tokio::sync::oneshot;
use yazi_config::popup::ConfirmCfg;
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct ShowOpt {
pub cfg: ConfirmCfg,
pub tx: oneshot::Sender<bool>,
}
impl TryFrom<CmdCow> for ShowOpt {
type Error = anyho... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/confirm/close.rs | yazi-parser/src/confirm/close.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug, Default)]
pub struct CloseOpt {
pub submit: bool,
}
impl From<CmdCow> for CloseOpt {
fn from(c: CmdCow) -> Self { Self { submit: c.bool("submit") } }
}
impl From<bool> for CloseOpt {
fn from(submit: bool) -> S... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/notify/mod.rs | yazi-parser/src/notify/mod.rs | yazi_macro::mod_flat!(tick);
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/notify/tick.rs | yazi-parser/src/notify/tick.rs | use std::time::Duration;
use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct TickOpt {
pub interval: Duration,
}
impl TryFrom<CmdCow> for TickOpt {
type Error = anyhow::Error;
fn try_from(c: CmdCow) -> Result<Self, Self::Error> {
... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/which/callback.rs | yazi-parser/src/which/callback.rs | use anyhow::bail;
use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use tokio::sync::mpsc;
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct CallbackOpt {
pub tx: mpsc::Sender<usize>,
pub idx: usize,
}
impl TryFrom<CmdCow> for CallbackOpt {
type Error = anyhow::Error;
fn try_from(mut c: CmdCow)... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/which/mod.rs | yazi-parser/src/which/mod.rs | yazi_macro::mod_flat!(callback show);
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-parser/src/which/show.rs | yazi-parser/src/which/show.rs | use mlua::{ExternalError, FromLua, IntoLua, Lua, Value};
use yazi_config::keymap::Chord;
use yazi_shared::event::CmdCow;
#[derive(Debug)]
pub struct ShowOpt {
pub cands: Vec<Chord>,
pub silent: bool,
}
impl TryFrom<CmdCow> for ShowOpt {
type Error = anyhow::Error;
fn try_from(mut c: CmdCow) -> Result<Self, Self... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-build/build.rs | yazi-build/build.rs | use std::{env, error::Error, io::{BufRead, BufReader, Read, Write}, process::{Command, Stdio}, thread};
use yazi_term::tty::TTY;
fn main() -> Result<(), Box<dyn Error>> {
yazi_term::init();
let manifest = env::var_os("CARGO_MANIFEST_DIR").unwrap().to_string_lossy().replace(r"\", "/");
let crates = if manifest.con... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-build/src/main.rs | yazi-build/src/main.rs | fn main() {
println!("See https://yazi-rs.github.io/docs/installation#crates on how to install Yazi.");
}
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/build.rs | yazi-cli/build.rs | #[path = "src/args.rs"]
mod args;
use std::{env, error::Error};
use clap::CommandFactory;
use clap_complete::{Shell, generate_to};
use vergen_gitcl::{BuildBuilder, Emitter, GitclBuilder};
fn main() -> Result<(), Box<dyn Error>> {
let manifest = env::var_os("CARGO_MANIFEST_DIR").unwrap().to_string_lossy().replace(r"... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/args.rs | yazi-cli/src/args.rs | use std::{borrow::Cow, ffi::OsString};
use anyhow::{Result, bail};
use clap::{Parser, Subcommand};
use yazi_shared::{Either, Id};
#[derive(Parser)]
#[command(name = "Ya", about, long_about = None)]
pub(super) struct Args {
#[command(subcommand)]
pub(super) command: Command,
/// Print version
#[arg(short = 'V', l... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/main.rs | yazi-cli/src/main.rs | yazi_macro::mod_pub!(package shared);
yazi_macro::mod_flat!(args);
use std::process::ExitCode;
use clap::Parser;
use yazi_macro::{errln, outln};
use yazi_shared::LOCAL_SET;
#[tokio::main]
async fn main() -> ExitCode {
yazi_shared::init();
yazi_fs::init();
match LOCAL_SET.run_until(run()).await {
Ok(()) => Exi... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/package/dependency.rs | yazi-cli/src/package/dependency.rs | use std::{io::BufWriter, path::{Path, PathBuf}, str::FromStr};
use anyhow::{Result, bail};
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use twox_hash::XxHash3_128;
use yazi_fs::Xdg;
use yazi_macro::ok_or_not_found;
use yazi_shared::BytesExt;
#[derive(Clone, Default)]
pub(crate) struct Dependency {
... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/package/git.rs | yazi-cli/src/package/git.rs | use std::path::Path;
use anyhow::{Context, Result, bail};
use tokio::process::Command;
use yazi_shared::strip_trailing_newline;
pub(super) struct Git;
impl Git {
pub(super) async fn clone(url: &str, path: &Path) -> Result<()> {
Self::exec(|c| c.args(["clone", url]).arg(path)).await
}
pub(super) async fn fetch(... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/package/deploy.rs | yazi-cli/src/package/deploy.rs | use std::path::{Path, PathBuf};
use anyhow::{Context, Result};
use yazi_fs::provider::{Provider, local::Local};
use yazi_macro::outln;
use super::Dependency;
use crate::shared::{copy_and_seal, maybe_exists};
impl Dependency {
pub(super) async fn deploy(&mut self) -> Result<()> {
let from = self.local().join(&self... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/package/install.rs | yazi-cli/src/package/install.rs | use anyhow::Result;
use super::{Dependency, Git};
use crate::shared::must_exists;
impl Dependency {
pub(super) async fn install(&mut self) -> Result<()> {
self.header("Fetching package `{name}`")?;
let path = self.local();
if must_exists(&path).await {
Git::fetch(&path).await?;
} else {
Git::clone(&se... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/package/upgrade.rs | yazi-cli/src/package/upgrade.rs | use anyhow::Result;
use super::Dependency;
impl Dependency {
pub(super) async fn upgrade(&mut self) -> Result<()> {
if self.rev.starts_with('=') { Ok(()) } else { self.add().await }
}
}
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/package/mod.rs | yazi-cli/src/package/mod.rs | yazi_macro::mod_flat!(add delete dependency deploy git hash install package upgrade);
use anyhow::Context;
use yazi_fs::Xdg;
pub(super) fn init() -> anyhow::Result<()> {
let packages_dir = Xdg::state_dir().join("packages");
std::fs::create_dir_all(&packages_dir)
.with_context(|| format!("failed to create packages... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/package/hash.rs | yazi-cli/src/package/hash.rs | use anyhow::{Context, Result, bail};
use twox_hash::XxHash3_128;
use yazi_fs::provider::local::Local;
use yazi_macro::ok_or_not_found;
use super::Dependency;
impl Dependency {
pub(crate) async fn hash(&self) -> Result<String> {
let dir = self.target();
let files =
if self.is_flavor { Self::flavor_files() } el... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/package/package.rs | yazi-cli/src/package/package.rs | use std::{path::PathBuf, str::FromStr};
use anyhow::{Context, Result, bail};
use serde::{Deserialize, Deserializer, Serialize, Serializer};
use yazi_fs::{Xdg, provider::{Provider, local::Local}};
use yazi_macro::{ok_or_not_found, outln};
use super::Dependency;
#[derive(Default)]
pub(crate) struct Package {
pub(crat... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/package/add.rs | yazi-cli/src/package/add.rs | use anyhow::Result;
use super::{Dependency, Git};
use crate::shared::must_exists;
impl Dependency {
pub(super) async fn add(&mut self) -> Result<()> {
self.header("Upgrading package `{name}`")?;
let path = self.local();
if must_exists(&path).await {
Git::pull(&path).await?;
} else {
Git::clone(&self.r... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/package/delete.rs | yazi-cli/src/package/delete.rs | use anyhow::{Context, Result};
use yazi_fs::{ok_or_not_found, provider::{Provider, local::Local}};
use yazi_macro::outln;
use super::Dependency;
use crate::shared::{maybe_exists, remove_sealed};
impl Dependency {
pub(super) async fn delete(&self) -> Result<()> {
self.header("Deleting package `{name}`")?;
let di... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/shared/mod.rs | yazi-cli/src/shared/mod.rs | yazi_macro::mod_flat!(shared);
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-cli/src/shared/shared.rs | yazi-cli/src/shared/shared.rs | use std::{io, path::Path};
use tokio::io::AsyncWriteExt;
use yazi_fs::provider::{FileBuilder, Provider, local::{Gate, Local}};
use yazi_macro::ok_or_not_found;
#[inline]
pub async fn must_exists(path: impl AsRef<Path>) -> bool {
Local::regular(&path).symlink_metadata().await.is_ok()
}
#[inline]
pub async fn maybe_e... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-shim/src/lib.rs | yazi-shim/src/lib.rs | yazi_macro::mod_flat!(twox);
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-shim/src/twox.rs | yazi-shim/src/twox.rs | use std::hash::Hasher;
pub struct Twox128(twox_hash::XxHash3_128);
impl Default for Twox128 {
fn default() -> Self { Self(twox_hash::XxHash3_128::new()) }
}
impl Twox128 {
pub fn finish_128(self) -> u128 { self.0.finish_128() }
}
impl Hasher for Twox128 {
fn write(&mut self, bytes: &[u8]) { self.0.write(bytes) }... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-scheduler/src/ongoing.rs | yazi-scheduler/src/ongoing.rs | use hashbrown::{HashMap, hash_map::RawEntryMut};
use ordered_float::OrderedFloat;
use yazi_config::YAZI;
use yazi_parser::app::TaskSummary;
use yazi_shared::{CompletionToken, Id, Ids};
use super::Task;
use crate::{TaskIn, TaskProg};
#[derive(Default)]
pub struct Ongoing {
inner: HashMap<Id, Task>,
}
impl Ongoing {
... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-scheduler/src/op.rs | yazi-scheduler/src/op.rs | use tokio::sync::mpsc;
use yazi_shared::Id;
use crate::TaskOut;
#[derive(Debug)]
pub(crate) struct TaskOp {
pub(crate) id: Id,
pub(crate) out: TaskOut,
}
// --- Ops
#[derive(Clone)]
pub struct TaskOps(pub(super) mpsc::UnboundedSender<TaskOp>);
impl From<&mpsc::UnboundedSender<TaskOp>> for TaskOps {
fn from(tx: ... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-scheduler/src/lib.rs | yazi-scheduler/src/lib.rs | mod macros;
yazi_macro::mod_pub!(file hook plugin prework process);
yazi_macro::mod_flat!(ongoing op out progress r#in runner scheduler snap task);
const LOW: u8 = yazi_config::Priority::Low as u8;
const NORMAL: u8 = yazi_config::Priority::Normal as u8;
const HIGH: u8 = yazi_config::Priority::High as u8;
| rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
sxyazi/yazi | https://github.com/sxyazi/yazi/blob/3c39a326abaacb37d9ff15af7668756d60624dfa/yazi-scheduler/src/runner.rs | yazi-scheduler/src/runner.rs | use std::sync::Arc;
use crate::{TaskIn, TaskOut, file::File, hook::Hook, plugin::Plugin, prework::Prework, process::Process};
#[derive(Clone)]
pub struct Runner {
pub(super) file: Arc<File>,
pub(super) plugin: Arc<Plugin>,
pub prework: Arc<Prework>,
pub(super) process: Arc<Process>,
pub(super) hook: ... | rust | MIT | 3c39a326abaacb37d9ff15af7668756d60624dfa | 2026-01-04T15:33:17.426354Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.