diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 20:49:49 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-13 20:49:49 +0900 |
| commit | bdc608acabe856db2134642816cc806b34894863 (patch) | |
| tree | 61cbcb30acbcafb56853bb77e5c89efae8f52dc2 /ar/.config/yazi/plugins/folder-rules.yazi/main.lua | |
| parent | 805711c3406fd5360486460bcc6dfb6f741fd69c (diff) | |
modified shell/bm-dirs, modified shell/bm-files, created yazi/
Diffstat (limited to 'ar/.config/yazi/plugins/folder-rules.yazi/main.lua')
| -rw-r--r-- | ar/.config/yazi/plugins/folder-rules.yazi/main.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ar/.config/yazi/plugins/folder-rules.yazi/main.lua b/ar/.config/yazi/plugins/folder-rules.yazi/main.lua new file mode 100644 index 0000000..556f610 --- /dev/null +++ b/ar/.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 } |
