yazi plugin refactor
This commit is contained in:
parent
38f162562e
commit
a00af3e849
39 changed files with 92 additions and 4880 deletions
|
@ -2,9 +2,9 @@ local function setup()
|
|||
ps.sub("cd", function()
|
||||
local cwd = cx.active.current.cwd
|
||||
if cwd:ends_with("Downloads") then
|
||||
ya.manager_emit("sort", { "mtime", reverse = true, dir_first = false })
|
||||
ya.mgr_emit("sort", { "mtime", reverse = true, dir_first = false })
|
||||
else
|
||||
ya.manager_emit("sort", { "alphabetical", reverse = false })
|
||||
ya.mgr_emit("sort", { "alphabetical", reverse = false, dir_first = true })
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue