commit 7d17cf3f63dd3fb65105110db8222b32db29a334
parent 87380732dc37a26d8358e025a571eaea3d859d32
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sat, 7 Aug 2021 23:49:21 +0530
List open locations from active contexts in help
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git 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)));