Add files via upload
This commit is contained in:
12
config/yazi/plugins/folder-rules.yazi/main.lua
Normal file
12
config/yazi/plugins/folder-rules.yazi/main.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
local function setup()
|
||||
ps.sub("cd", function()
|
||||
local cwd = cx.active.current.cwd
|
||||
if cwd:ends_with("Загрузки") then
|
||||
ya.manager_emit("sort", { "mtime", reverse = true, dir_first = false })
|
||||
else
|
||||
ya.manager_emit("sort", { "alphabetical", reverse = false, dir_first = true })
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
return { setup = setup }
|
||||
Reference in New Issue
Block a user