Folder-specific rules
What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
Konsole
ya env output
ya env
error: unrecognized subcommand 'env'
Usage: ya <COMMAND>
For more information, try '--help'.Describe the bug
On an empty Yazi profile, I just added the configuration for Folder‐specific rules as is on the page https://yazi-rs.github.io/docs/tips Like in any other folder, I expect subfolders are listed in front of files.
Minimal reproducer
Surprisingly, unlike the other folders, in the Downloads folder, files and subfolders are mixed. Manually choosing other sorting methods in this folder doesn’t help. After some tinkering, I inverted the last false on the line: opt.by, opt.reverse, opt.dir_first = "mtime", true, false This did put folders in front, but the sorting methods still have problems: you can’t properly sort by let’s say extension or by size. Moreover, the bug extends on any folder, not only the ones listed explicitly in the plugin: the sorting (let’s say again) on extension or size is still broken in any folder.
Anything else?
No response
Checklist
- I tried the latest nightly build, and the issue is still reproducible
- I updated the environment information (
ya env) field to the nightly that I tried - I can reproduce it after disabling all custom configs/plugins (
mv ~/.config/yazi ~/.config/yazi-backup)
Source: sxyazi/yazi