From 7d17cf3f63dd3fb65105110db8222b32db29a334 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 7 Aug 2021 23:49:21 +0530 Subject: [PATCH] List open locations from active contexts in help --- src/nnn.c | 5 +++++ 1 file changed, 5 insertions(+) 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)));