mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
982546cc4d
commit
2f6f916d81
56 changed files with 95 additions and 95 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#![allow(clippy::unit_arg)]
|
#![allow(clippy::unit_arg)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(
|
yazi_macro::mod_flat!(
|
||||||
adapter, chafa, dimension, emulator, iip, image, kgp, kgp_old, mux, sixel, ueberzug
|
adapter chafa dimension emulator iip image kgp kgp_old mux sixel ueberzug
|
||||||
);
|
);
|
||||||
|
|
||||||
use yazi_shared::{RoCell, env_exists, in_wsl};
|
use yazi_shared::{RoCell, env_exists, in_wsl};
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(actions, clear_cache, debug, version);
|
yazi_macro::mod_flat!(actions clear_cache debug version);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
yazi_macro::mod_pub!(actions);
|
yazi_macro::mod_pub!(actions);
|
||||||
|
|
||||||
yazi_macro::mod_flat!(args, boot);
|
yazi_macro::mod_flat!(args boot);
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use yazi_shared::RoCell;
|
use yazi_shared::RoCell;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(add, deploy, git, install, package, parser, upgrade);
|
yazi_macro::mod_flat!(add deploy git install package parser upgrade);
|
||||||
|
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(chord, cow, deserializers, key, keymap);
|
yazi_macro::mod_flat!(chord cow deserializers key keymap);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(manager, mouse, ratio, sorting);
|
yazi_macro::mod_flat!(manager mouse ratio sorting);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(open, opener, rule);
|
yazi_macro::mod_flat!(open opener rule);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
yazi_macro::mod_flat!(fetcher, plugin, preloader, previewer);
|
yazi_macro::mod_flat!(fetcher plugin preloader previewer);
|
||||||
|
|
||||||
pub const MAX_PREWORKERS: u8 = 32;
|
pub const MAX_PREWORKERS: u8 = 32;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(confirm, input, offset, options, origin, pick, position);
|
yazi_macro::mod_flat!(confirm input offset options origin pick position);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(preview, wrap);
|
yazi_macro::mod_flat!(preview wrap);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(filetype, flavor, icons, is, theme);
|
yazi_macro::mod_flat!(filetype flavor icons is theme);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(sorting, which);
|
yazi_macro::mod_flat!(sorting which);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(arrow, close, show, trigger);
|
yazi_macro::mod_flat!(arrow close show trigger);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(arrow, close, show);
|
yazi_macro::mod_flat!(arrow close show);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(arrow, escape, filter);
|
yazi_macro::mod_flat!(arrow escape filter);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
yazi_macro::mod_flat!(
|
yazi_macro::mod_flat!(
|
||||||
backspace, backward, close, complete, delete, escape, forward, insert, kill, move_, paste, redo,
|
backspace backward close complete delete escape forward insert kill move_ paste redo
|
||||||
show, type_, undo, visual, yank
|
show type_ undo visual yank
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
yazi_macro::mod_pub!(commands);
|
yazi_macro::mod_pub!(commands);
|
||||||
|
|
||||||
yazi_macro::mod_flat!(input, mode, op, snap, snaps);
|
yazi_macro::mod_flat!(input mode op snap snaps);
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,28 @@
|
||||||
yazi_macro::mod_flat!(
|
yazi_macro::mod_flat!(
|
||||||
bulk_rename,
|
bulk_rename
|
||||||
close,
|
close
|
||||||
create,
|
create
|
||||||
hardlink,
|
hardlink
|
||||||
hover,
|
hover
|
||||||
link,
|
link
|
||||||
open,
|
open
|
||||||
paste,
|
paste
|
||||||
peek,
|
peek
|
||||||
quit,
|
quit
|
||||||
refresh,
|
refresh
|
||||||
remove,
|
remove
|
||||||
rename,
|
rename
|
||||||
seek,
|
seek
|
||||||
suspend,
|
suspend
|
||||||
tab_close,
|
tab_close
|
||||||
tab_create,
|
tab_create
|
||||||
tab_swap,
|
tab_swap
|
||||||
tab_switch,
|
tab_switch
|
||||||
unyank,
|
unyank
|
||||||
update_files,
|
update_files
|
||||||
update_mimetype,
|
update_mimetype
|
||||||
update_paged,
|
update_paged
|
||||||
update_task,
|
update_task
|
||||||
update_yanked,
|
update_yanked
|
||||||
yank
|
yank
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
yazi_macro::mod_pub!(commands);
|
yazi_macro::mod_pub!(commands);
|
||||||
|
|
||||||
yazi_macro::mod_flat!(linked, manager, mimetype, tabs, watcher, yanked);
|
yazi_macro::mod_flat!(linked manager mimetype tabs watcher yanked);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(push, tick);
|
yazi_macro::mod_flat!(push tick);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
yazi_macro::mod_pub!(commands);
|
yazi_macro::mod_pub!(commands);
|
||||||
|
|
||||||
yazi_macro::mod_flat!(message, notify);
|
yazi_macro::mod_flat!(message notify);
|
||||||
|
|
||||||
pub const NOTIFY_BORDER: u16 = 2;
|
pub const NOTIFY_BORDER: u16 = 2;
|
||||||
pub const NOTIFY_SPACING: u16 = 1;
|
pub const NOTIFY_SPACING: u16 = 1;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(arrow, close, show);
|
yazi_macro::mod_flat!(arrow close show);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
yazi_macro::mod_pub!(commands);
|
yazi_macro::mod_pub!(commands);
|
||||||
|
|
||||||
yazi_macro::mod_flat!(backstack, config, finder, history, mode, preview, selected, tab);
|
yazi_macro::mod_flat!(backstack config finder history mode preview selected tab);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(arrow, cancel, inspect, open_with, process_exec, toggle);
|
yazi_macro::mod_flat!(arrow cancel inspect open_with process_exec toggle);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
yazi_macro::mod_pub!(commands);
|
yazi_macro::mod_pub!(commands);
|
||||||
|
|
||||||
yazi_macro::mod_flat!(file, plugin, preload, process, progress, tasks);
|
yazi_macro::mod_flat!(file plugin preload process progress tasks);
|
||||||
|
|
||||||
pub const TASKS_BORDER: u16 = 2;
|
pub const TASKS_BORDER: u16 = 2;
|
||||||
pub const TASKS_PADDING: u16 = 2;
|
pub const TASKS_PADDING: u16 = 2;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(callback, show);
|
yazi_macro::mod_flat!(callback show);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
yazi_macro::mod_pub!(commands);
|
yazi_macro::mod_pub!(commands);
|
||||||
|
|
||||||
yazi_macro::mod_flat!(sorter, which);
|
yazi_macro::mod_flat!(sorter which);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(
|
yazi_macro::mod_flat!(
|
||||||
body, bulk, bye, cd, custom, delete, hey, hi, hover, move_, rename, tab, trash, yank
|
body bulk bye cd custom delete hey hi hover move_ rename tab trash yank
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
yazi_macro::mod_pub!(body);
|
yazi_macro::mod_pub!(body);
|
||||||
|
|
||||||
yazi_macro::mod_flat!(client, payload, pubsub, pump, sendable, server, state, stream);
|
yazi_macro::mod_flat!(client payload pubsub pump sendable server state stream);
|
||||||
|
|
||||||
pub fn init() {
|
pub fn init() {
|
||||||
let (tx, rx) = tokio::sync::mpsc::unbounded_channel();
|
let (tx, rx) = tokio::sync::mpsc::unbounded_channel();
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
yazi_macro::mod_flat!(
|
yazi_macro::mod_flat!(
|
||||||
accept_payload,
|
accept_payload
|
||||||
mouse,
|
mouse
|
||||||
notify,
|
notify
|
||||||
plugin,
|
plugin
|
||||||
quit,
|
quit
|
||||||
render,
|
render
|
||||||
resize,
|
resize
|
||||||
resume,
|
resume
|
||||||
stop,
|
stop
|
||||||
update_notify,
|
update_notify
|
||||||
update_progress
|
update_progress
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(preview, progress);
|
yazi_macro::mod_flat!(preview progress);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(buttons, confirm, content, list);
|
yazi_macro::mod_flat!(buttons confirm content list);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(bindings, layout);
|
yazi_macro::mod_flat!(bindings layout);
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(
|
yazi_macro::mod_flat!(
|
||||||
config, file, files, filter, finder, folder, iter, lives, mode, preview, selected, tab, tabs,
|
config file files filter finder folder iter lives mode preview selected tab tabs
|
||||||
tasks, yanked
|
tasks yanked
|
||||||
);
|
);
|
||||||
|
|
||||||
type CtxRef<'lua> = mlua::UserDataRef<'lua, crate::Ctx>;
|
type CtxRef<'lua> = mlua::UserDataRef<'lua, crate::Ctx>;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(cand, layout);
|
yazi_macro::mod_flat!(cand layout);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#![allow(clippy::if_same_then_else)]
|
#![allow(clippy::if_same_then_else)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(files, filter, folder, sorter, stage, step);
|
yazi_macro::mod_flat!(files filter folder sorter stage step);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(bindings, icon, input, mouse, permit, position, range, window);
|
yazi_macro::mod_flat!(bindings icon input mouse permit position range window);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(
|
yazi_macro::mod_flat!(
|
||||||
bar, border, clear, constraint, elements, gauge, layout, line, list, padding, paragraph,
|
bar border clear constraint elements gauge layout line list padding paragraph
|
||||||
position, rect, span, style
|
position rect span style
|
||||||
);
|
);
|
||||||
|
|
|
||||||
2
yazi-plugin/src/external/mod.rs
vendored
2
yazi-plugin/src/external/mod.rs
vendored
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(fd, highlighter, rg);
|
yazi_macro::mod_flat!(fd highlighter rg);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(entry, fetch, isolate, peek, preload, seek);
|
yazi_macro::mod_flat!(entry fetch isolate peek preload seek);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ yazi_macro::mod_pub!(
|
||||||
bindings, cha, elements, external, file, fs, isolate, loader, process, pubsub, url, utils
|
bindings, cha, elements, external, file, fs, isolate, loader, process, pubsub, url, utils
|
||||||
);
|
);
|
||||||
|
|
||||||
yazi_macro::mod_flat!(cast, clipboard, config, lua, opt, runtime);
|
yazi_macro::mod_flat!(cast clipboard config lua opt runtime);
|
||||||
|
|
||||||
pub fn init() -> anyhow::Result<()> {
|
pub fn init() -> anyhow::Result<()> {
|
||||||
CLIPBOARD.with(<_>::default);
|
CLIPBOARD.with(<_>::default);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(loader, require);
|
yazi_macro::mod_flat!(loader require);
|
||||||
|
|
||||||
pub(super) fn init() { LOADER.with(<_>::default); }
|
pub(super) fn init() { LOADER.with(<_>::default); }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(child, command, output, process, status);
|
yazi_macro::mod_flat!(child command output process status);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(
|
yazi_macro::mod_flat!(
|
||||||
app, cache, call, image, layer, log, preview, sync, target, text, time, user, utils
|
app cache call image layer log preview sync target text time user utils
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(notify, open, process, search);
|
yazi_macro::mod_flat!(notify open process search);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(file, op);
|
yazi_macro::mod_flat!(file op);
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#![allow(clippy::option_map_unit_fn, clippy::unit_arg)]
|
#![allow(clippy::option_map_unit_fn, clippy::unit_arg)]
|
||||||
|
|
||||||
yazi_macro::mod_pub!(file, plugin, prework, process);
|
yazi_macro::mod_pub!(file plugin prework process);
|
||||||
|
|
||||||
yazi_macro::mod_flat!(ongoing, op, scheduler, task);
|
yazi_macro::mod_flat!(ongoing op scheduler task);
|
||||||
|
|
||||||
const LOW: u8 = yazi_config::Priority::Low as u8;
|
const LOW: u8 = yazi_config::Priority::Low as u8;
|
||||||
const NORMAL: u8 = yazi_config::Priority::Normal as u8;
|
const NORMAL: u8 = yazi_config::Priority::Normal as u8;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(op, plugin);
|
yazi_macro::mod_flat!(op plugin);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(op, prework);
|
yazi_macro::mod_flat!(op prework);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(op, process, shell);
|
yazi_macro::mod_flat!(op process shell);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(input, peek);
|
yazi_macro::mod_flat!(input peek);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#![allow(clippy::module_inception)]
|
#![allow(clippy::module_inception)]
|
||||||
|
|
||||||
yazi_macro::mod_flat!(cmd, data, event);
|
yazi_macro::mod_flat!(cmd data event);
|
||||||
|
|
||||||
pub static NEED_RENDER: std::sync::atomic::AtomicBool = std::sync::atomic::AtomicBool::new(false);
|
pub static NEED_RENDER: std::sync::atomic::AtomicBool = std::sync::atomic::AtomicBool::new(false);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(cha, file, fns, loc, op, path, url, urn);
|
yazi_macro::mod_flat!(cha file fns loc op path url urn);
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
#![allow(clippy::option_map_unit_fn)]
|
#![allow(clippy::option_map_unit_fn)]
|
||||||
|
|
||||||
yazi_macro::mod_pub!(errors, event, fs, shell, theme, translit);
|
yazi_macro::mod_pub!(errors event fs shell theme translit);
|
||||||
|
|
||||||
yazi_macro::mod_flat!(
|
yazi_macro::mod_flat!(
|
||||||
chars, condition, debounce, env, layer, natsort, number, os, rand, ro_cell, terminal, throttle,
|
chars condition debounce env layer natsort number os rand ro_cell terminal throttle
|
||||||
time, xdg
|
time xdg
|
||||||
);
|
);
|
||||||
|
|
||||||
pub fn init() {
|
pub fn init() {
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(color, icon, style);
|
yazi_macro::mod_flat!(color icon style);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
yazi_macro::mod_flat!(table, traits);
|
yazi_macro::mod_flat!(table traits);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue