feat(shell): setup yazi file manager.
This commit is contained in:
parent
cd3e60e3cc
commit
b9413da4b9
3 changed files with 65 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
local function setup()
|
||||
ps.sub("cd", function()
|
||||
local cwd = cx.active.current.cwd
|
||||
if cwd:ends_with("downs") then
|
||||
ya.emit("sort", { "mtime", reverse = true, dir_first = false })
|
||||
else
|
||||
ya.emit("sort", { "natural", reverse = false, dir_first = true })
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
return { setup = setup }
|
||||
Loading…
Add table
Add a link
Reference in a new issue