Add option to specify binary or decimal sizes (#2118)

* Add option to specify binary or decimal sizes

* Fix test case error message

* Add documentation

* Fix typo
This commit is contained in:
Joe Lim authored and GitHub committed 2025-08-26 22:32:33 +10:00
1 parent 8150586bc2
commit 4fe8f5a858
8 files changed
+103 -31

No files matched your search

+2
View File
@@ -398,6 +398,8 @@ func completeCmd(acc []rune) (matches []compMatch, result string) {
matches, result = matchList(f[2], []string{"mode", "timestamps"})
case "selmode":
matches, result = matchWord(f[2], []string{"all", "dir"})
case "sizeunits":
matches, result = matchWord(f[2], []string{"binary", "decimal"})
case "sortby":
matches, result = matchWord(f[2], []string{"atime", "btime", "ctime", "custom", "ext", "name", "natural", "size", "time"})
default: