Add dircounts to setlocal options (#1920)

* Remove plural from setlocal variable names

* Add `dircounts` for `setlocal`

* Update documentation

* Fix failing test
This commit is contained in:
Joe Lim authored and GitHub committed 2025-02-19 10:43:15 +11:00
1 parent b087bf7d80
commit f9813744f7
9 files changed
+58 -45

No files matched your search

+1 -1
View File
@@ -295,7 +295,7 @@ func fileInfo(f *file, d *dir, userWidth int, groupWidth int) string {
for _, s := range getInfo(d.path) {
switch s {
case "size":
if f.IsDir() && gOpts.dircounts {
if f.IsDir() && getDirCounts(d.path) {
switch {
case f.dirCount < -1:
info.WriteString(" !")