yazi plugin refactor

This commit is contained in:
Matt Nish-Lapidus 2025-04-04 15:38:54 -04:00
parent 38f162562e
commit a00af3e849
39 changed files with 92 additions and 4880 deletions

View file

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