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:
1 parent
4758ef621c
commit
87c994b9de
7 files changed
+85
-21
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user