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

+4 -4
View File
@@ -268,9 +268,9 @@ func (e *setExpr) eval(app *app, args []string) {
toks := strings.Split(e.val, ":")
for _, s := range toks {
switch s {
case "size", "time", "atime", "ctime", "perm", "user", "group", "custom":
case "size", "time", "atime", "btime", "ctime", "perm", "user", "group", "custom":
default:
app.ui.echoerr("info: should consist of 'size', 'time', 'atime', 'ctime', 'perm', 'user', 'group' or 'custom' separated with colon")
app.ui.echoerr("info: should consist of 'size', 'time', 'atime', 'btime', 'ctime', 'perm', 'user', 'group' or 'custom' separated with colon")
return
}
}
@@ -504,9 +504,9 @@ func (e *setLocalExpr) eval(app *app, args []string) {
toks := strings.Split(e.val, ":")
for _, s := range toks {
switch s {
case "size", "time", "atime", "ctime", "perm", "user", "group", "custom":
case "size", "time", "atime", "btime", "ctime", "perm", "user", "group", "custom":
default:
app.ui.echoerr("info: should consist of 'size', 'time', 'atime', 'ctime', 'perm', 'user', 'group' or 'custom' separated with colon")
app.ui.echoerr("info: should consist of 'size', 'time', 'atime', 'btime', 'ctime', 'perm', 'user', 'group' or 'custom' separated with colon")
return
}
}