From: Arun Prakash Jana Date: Sat, 7 Aug 2021 18:19:21 +0000 (+0530) Subject: List open locations from active contexts in help X-Git-Tag: v4.3~66 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=7d17cf3f63dd3fb65105110db8222b32db29a334;p=nnn.git List open locations from active contexts in help --- diff --git a/src/nnn.c b/src/nnn.c index 76a6f645..26ea4bf7 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -4963,6 +4963,11 @@ static void show_help(const char *path) ++end; } + dprintf(fd, "\nLOCATIONS:\n"); + for (uchar_t i = 0; i < CTX_MAX; ++i) + if (g_ctx[i].c_cfg.ctxactive) + dprintf(fd, " %u: %s\n", i + 1, g_ctx[i].c_path); + dprintf(fd, "\nVOLUME: %s of ", coolsize(get_fs_info(path, FREE))); dprintf(fd, "%s free\n\n", coolsize(get_fs_info(path, CAPACITY)));