Support btime in sortby and info (#2042)

* Add support for `btime` in `sortby` and `info`

* Update documentation

* Minor design improvements
This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-07-19 13:06:34 +10:00
1 parent 4758ef621c
commit 87c994b9de
7 files changed
+85 -21

No files matched your search

+18 -5
View File
@@ -287,6 +287,7 @@ The following additional keybindings are provided by default:
map ss :set sortby size; set info size
map st :set sortby time; set info time
map sa :set sortby atime; set info atime
map sb :set sortby btime; set info btime
map sc :set sortby ctime; set info ctime
map se :set sortby ext; set info
map gh cd ~
@@ -908,10 +909,10 @@ info ([]string) (default ``)
A list of information that is shown for directory items at the right
side of the pane. Currently supported information types are size, time,
atime, ctime, perm, user, group and custom. The custom type is empty by
default and can be updated using the addcustominfo command. Information
is only shown when the pane width is more than twice the width of
information.
atime, btime, ctime, perm, user, group and custom. The custom type is
empty by default and can be updated using the addcustominfo command.
Information is only shown when the pane width is more than twice the
width of information.
infotimefmtnew (string) (default Jan _2 15:04)
@@ -1086,7 +1087,19 @@ diacritic. This option has no effect when ignoredia is disabled.
sortby (string) (default natural)
Sort type for directories. Currently supported sort types are natural,
name, size, time, ctime, atime, ext and custom.
name, size, time, atime, btime, ctime, ext and custom.
Meaning of each sort type:
natural file name (track_2.flac comes before track_10.flac)
name file name (track_10.flac comes before track_2.flac)
size file size
time time of last data modification
atime time of last access
btime time of file birth
ctime time of last status (inode) change
ext file extension
custom property defined via `addcustominfo`
statfmt (string) (default \033[36m%p\033[0m| %c| %u| %g| %S| %t| -> %l)