]> Sergey Matveev's repositories - nnn.git/commitdiff
Show number of entries in detailed view
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 29 Mar 2017 21:15:46 +0000 (02:45 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 29 Mar 2017 21:15:46 +0000 (02:45 +0530)
README.md
noice.c

index 63009e4d0d6bbbfb5a0d7d5c6cd8b67eea9fdac8..d4faa30d1a730b78ba365396ac220a7083f8f2da 100644 (file)
--- a/README.md
+++ b/README.md
@@ -44,7 +44,7 @@ I chose to fork noice because:
 ### Fork toppings
 
 - Behaviour and navigation
-  - Optional detail view with file type and size (default: disabled)
+  - Detail view with file type, size and number of entries in dir (default: disabled)
   - Case-insensitive alphabetic content listing instead of upper case first
   - Roll over at the first and last entries of a directory (with Up/Down keys)
   - Sort entries by file size (largest to smallest)
diff --git a/noice.c b/noice.c
index 1af0e9a7b9164998f6f6bb6f07434dd3d750009b..61af0e0a64f299b1c026ab6566755032c6d85bef 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -616,6 +616,11 @@ redraw(char *path)
                for (i = cur - nlines; i < cur + nlines + odd; i++)
                        printptr(&dents[i], i == cur);
        }
+
+       if (showdetail) {
+               sprintf(cwd, "%d items", ndents);
+               printmsg(cwd);
+       }
 }
 
 void