Replies: 8 comments 15 replies
This kind of ruins the point of allowing users to override the linemode, because the whole purpose of supporting it was to avoid adding extra options. I'm certain that it's impossible to cover all users' needs with options, and doing so would bloat Yazi. Plus, overriding it is really simple, requiring just a few lines of Lua code, and it has no impact on performance or the need to recompile the source code. However, I can consider changing the default date format from |
|
I advice using the international standard ISO 8601 or other combinations https://en.wikipedia.org/wiki/ISO_8601 |
|
or maybe use the locale of the user's system locale -k LC_TIME([cultureinfo]::CurrentCulture.DateTimeFormat).ShortDatePattern |
|
|
|
I agree that either utilising ISO 8601 yyyy-MM-dd (maybe also HH:mm:ss) or the system locale date format is better than what's currently presented to the user. |
|
Would love to see that option implemented as well. |
|
I was wondering whether someone worked out a PR for this missing feature. Probably, honoring is the best way to go. Otherwise, Yazi could offer a format for localizing date and time strings. Before coding a PR, it would be relevant to hear the thoughts of @sxyazi
I understand this argument. However, the Alternatively, why not offer a similar customization like |
|
In case anyone is interested, I added this in yazi’s init.lua (thanks to ChatGPT): Adapt to your preference. Add a similar btime. P.S. It doesn’t detect the last days if the year changed, but this is a negligible inconvenience, easily solved if absolutely necessary. |
Uh oh!
There was an error while loading. Please reload this page.
yazi --debugoutputYazi Version: 0.3.3 (Arch Linux 2024-09-05) Debug : false OS : linux-x86_64 (unix) Ya Version: 0.3.3 (Arch Linux 2024-09-05) Emulator Emulator.via_env: ("foot", "") Emulator.via_csi: Ok(Foot) Emulator.detect : Foot Adapter Adapter.matches: Sixel Desktop XDG_SESSION_TYPE : Some("wayland") WAYLAND_DISPLAY : Some("wayland-1") DISPLAY : Some(":0") SWAYSOCK : None HYPRLAND_INSTANCE_SIGNATURE: Some("0f594732b063a90d44df8c5d402d658f27471dfe_1726362800_736104487") WAYFIRE_SOCKET : None SSH shared.in_ssh_connection: false WSL WSL: false Variables SHELL : Some("/usr/bin/zsh") EDITOR : Some("helix") VISUAL : Some("helix") YAZI_FILE_ONE : None YAZI_CONFIG_HOME : None Text Opener default: Some(Opener { run: "helix \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true }) block : Some(Opener { run: "helix \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true }) Multiplexers TMUX : false tmux version : No such file or directory (os error 2) ZELLIJ_SESSION_NAME: None Zellij version : No such file or directory (os error 2) Dependencies file : 5.45 ueberzugpp : No such file or directory (os error 2) ffmpegthumbnailer: 2.2.2 magick : 7.1.1-38 fzf : 0.54.3 fd : No such file or directory (os error 2) rg : 14.1.1 chafa : No such file or directory (os error 2) zoxide : 0.9.4 7z : 17.05 7zz : No such file or directory (os error 2) jq : 1.7.1 -------------------------------------------------- When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time. You can find it in the "/home/alec/.local/state/yazi" directory.Please describe the problem you're trying to solve
The current date format for ctime and mtime linemodes are mm/dd and I wish to be able to change it to the more conventional dd/mm without writing a custom linemode.
Anyway, thank you for making this super fast ducky file manager. Cheers!
Would you be willing to contribute this feature?
Describe the solution you'd like
Maybe it would be good to have an option to format linemodes in the configuration file?
I would contribute but all I know is some terrible python, sorry.
Additional context
No response
Validations
All reactions