]> Sergey Matveev's repositories - nnn.git/commitdiff
List open locations from active contexts in help
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 7 Aug 2021 18:19:21 +0000 (23:49 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 7 Aug 2021 18:25:51 +0000 (23:55 +0530)
src/nnn.c

index 76a6f645db04e7fff4ca1a5829cbf2c22fc31f3b..26ea4bf72626a2d13e0a13f5004fc8dfbacd07ba 100644 (file)
--- 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)));