From: Arun Prakash Jana Date: Wed, 29 Mar 2017 21:15:46 +0000 (+0530) Subject: Show number of entries in detailed view X-Git-Tag: v1.0~59 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3c941939926e4545c2a50bfa74ee45e67a04962a;p=nnn.git Show number of entries in detailed view --- diff --git a/README.md b/README.md index 63009e4d..d4faa30d 100644 --- 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 1af0e9a7..61af0e0a 100644 --- 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