This commit is contained in:
sxyazi 2024-10-13 18:26:11 +08:00
parent 982546cc4d
commit 2f6f916d81
No known key found for this signature in database
56 changed files with 95 additions and 95 deletions

View file

@ -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};

View file

@ -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);

View file

@ -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;

View file

@ -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;

View file

@ -1 +1 @@
yazi_macro::mod_flat!(chord, cow, deserializers, key, keymap); yazi_macro::mod_flat!(chord cow deserializers key keymap);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(manager, mouse, ratio, sorting); yazi_macro::mod_flat!(manager mouse ratio sorting);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(open, opener, rule); yazi_macro::mod_flat!(open opener rule);

View file

@ -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;

View file

@ -1 +1 @@
yazi_macro::mod_flat!(confirm, input, offset, options, origin, pick, position); yazi_macro::mod_flat!(confirm input offset options origin pick position);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(preview, wrap); yazi_macro::mod_flat!(preview wrap);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(filetype, flavor, icons, is, theme); yazi_macro::mod_flat!(filetype flavor icons is theme);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(sorting, which); yazi_macro::mod_flat!(sorting which);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(arrow, close, show, trigger); yazi_macro::mod_flat!(arrow close show trigger);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(arrow, close, show); yazi_macro::mod_flat!(arrow close show);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(arrow, escape, filter); yazi_macro::mod_flat!(arrow escape filter);

View file

@ -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
); );

View file

@ -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);

View file

@ -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
); );

View file

@ -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);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(push, tick); yazi_macro::mod_flat!(push tick);

View file

@ -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;

View file

@ -1 +1 @@
yazi_macro::mod_flat!(arrow, close, show); yazi_macro::mod_flat!(arrow close show);

View file

@ -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);

View file

@ -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);

View file

@ -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;

View file

@ -1 +1 @@
yazi_macro::mod_flat!(callback, show); yazi_macro::mod_flat!(callback show);

View file

@ -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);

View file

@ -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
); );

View file

@ -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();

View file

@ -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
); );

View file

@ -1,3 +1,3 @@
#![allow(clippy::module_inception)] #![allow(clippy::module_inception)]
yazi_macro::mod_flat!(preview, progress); yazi_macro::mod_flat!(preview progress);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(buttons, confirm, content, list); yazi_macro::mod_flat!(buttons confirm content list);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(bindings, layout); yazi_macro::mod_flat!(bindings layout);

View file

@ -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>;

View file

@ -1 +1 @@
yazi_macro::mod_flat!(cand, layout); yazi_macro::mod_flat!(cand layout);

View file

@ -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);

View file

@ -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);

View file

@ -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
); );

View file

@ -1 +1 @@
yazi_macro::mod_flat!(fd, highlighter, rg); yazi_macro::mod_flat!(fd highlighter rg);

View file

@ -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);

View file

@ -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);

View file

@ -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); }

View file

@ -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);

View file

@ -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
); );

View file

@ -1 +1 @@
yazi_macro::mod_flat!(notify, open, process, search); yazi_macro::mod_flat!(notify open process search);

View file

@ -1,3 +1,3 @@
#![allow(clippy::module_inception)] #![allow(clippy::module_inception)]
yazi_macro::mod_flat!(file, op); yazi_macro::mod_flat!(file op);

View file

@ -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;

View file

@ -1,3 +1,3 @@
#![allow(clippy::module_inception)] #![allow(clippy::module_inception)]
yazi_macro::mod_flat!(op, plugin); yazi_macro::mod_flat!(op plugin);

View file

@ -1,3 +1,3 @@
#![allow(clippy::module_inception)] #![allow(clippy::module_inception)]
yazi_macro::mod_flat!(op, prework); yazi_macro::mod_flat!(op prework);

View file

@ -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);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(input, peek); yazi_macro::mod_flat!(input peek);

View file

@ -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);

View file

@ -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);

View file

@ -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() {

View file

@ -1 +1 @@
yazi_macro::mod_flat!(color, icon, style); yazi_macro::mod_flat!(color icon style);

View file

@ -1 +1 @@
yazi_macro::mod_flat!(table, traits); yazi_macro::mod_flat!(table traits);