diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 18:18:26 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 18:18:26 +0900 |
| commit | 95528f5119f0e973bb0ffb41ed4e17564b39676e (patch) | |
| tree | 2aab63e1793e15adc8f986789318dfece947383f /mac/.config/yazi/plugins/folder-rules.yazi/main.lua | |
| parent | fa7b259c8011f410632dae255c04015fb5c5a0fa (diff) | |
updates
Diffstat (limited to 'mac/.config/yazi/plugins/folder-rules.yazi/main.lua')
| -rw-r--r-- | mac/.config/yazi/plugins/folder-rules.yazi/main.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mac/.config/yazi/plugins/folder-rules.yazi/main.lua b/mac/.config/yazi/plugins/folder-rules.yazi/main.lua new file mode 100644 index 0000000..556f610 --- /dev/null +++ b/mac/.config/yazi/plugins/folder-rules.yazi/main.lua @@ -0,0 +1,12 @@ +local function setup() + ps.sub("cd", function() + local cwd = cx.active.current.cwd + if cwd:ends_with("Downloads") then + ya.emit("sort", { "mtime", reverse = true, dir_first = false }) + else + ya.emit("sort", { "alphabetical", reverse = false, dir_first = true }) + end + end) +end + +return { setup = setup } |
