Replies: 3 comments 3 replies
-
You can create your own linemode with a few lines of Lua code:
The API of |
Beta Was this translation helpful? Give feedback.
-
BTW If you encounter difficulties during creation, let me know, and I will write an example for you :) |
Beta Was this translation helpful? Give feedback.
-
I create /home/shyciii/.config/yazi/plugins/custom-linemode.yazi/init.lua file, and copied content from https://github.com/sxyazi/yazi/blob/main/yazi-plugin/preset/components/folder.lua file, then I changed the following line:
To:
When run yazi and change to mtime with m + m key, and show the old method. |
Beta Was this translation helpful? Give feedback.
-
It would be nice if we could set a linemode that could show several things at the same time, and it would be so smart that if the file/directory was created in this year, then show hours:minutes as the time, if this year earlier, then it would show the year. I attached a picture as an example:
It can be seen that it shows the size of the files and the date of file/directory creation. Just put a hyphen for the library instead of size for low resources.
I think it's important to be able to see the size and creation time of the elements at the same time.
Beta Was this translation helpful? Give feedback.
All reactions