feat(yazi): add simple folder rules.
This commit is contained in:
parent
f68e97e762
commit
049fa5881f
1 changed files with 4 additions and 0 deletions
|
|
@ -3,6 +3,10 @@ local function setup()
|
|||
local cwd = cx.active.current.cwd
|
||||
if cwd:ends_with("downs") then
|
||||
ya.emit("sort", { "mtime", reverse = true, dir_first = false })
|
||||
elseif cwd:ends_with("screenshots") then
|
||||
ya.emit("sort", { "mtime", reverse = true, dir_first = false })
|
||||
elseif cwd:ends_with("vids") then
|
||||
ya.emit("sort", { "mtime", reverse = true, dir_first = false })
|
||||
else
|
||||
ya.emit("sort", { "natural", reverse = false, dir_first = true })
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue