nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f731664a99dd7421d513e0d5b510f5e90c8181e9
parent f089a06a2078c6c6d828caff0191c970304cb0fb
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Mon,  8 Oct 2018 06:36:55 +0530

Use 'ap' for apparent

Diffstat:
Mnnn.c | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/nnn.c b/nnn.c @@ -2432,7 +2432,14 @@ redraw(char *path) snprintf(buf, NAME_MAX + 65, "%d/%d %s[%s%s]", cur + 1, ndents, sort, unescape(dents[cur].name, 0), get_file_sym(dents[cur].mode)); else { - i = snprintf(buf, 64, "%d/%d du: %s (%lu files) ", cur + 1, ndents, coolsize(dir_blocks << 9), num_files); + i = snprintf(buf, 64, "%d/%d ", cur + 1, ndents); + + if (cfg.apparentsz) + buf[i++] = 'a', buf[i++] = 'p'; + else + buf[i++] = 'd', buf[i++] = 'u'; + + i += snprintf(buf + i, 64, ": %s (%lu files) ", coolsize(dir_blocks << BLK_SHIFT), num_files); snprintf(buf + i, NAME_MAX, "vol: %s free [%s%s]", coolsize(get_fs_info(path, FREE)), unescape(dents[cur].name, 0), get_file_sym(dents[cur].mode)); }