mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
List open locations from active contexts in help
This commit is contained in:
parent
87380732dc
commit
7d17cf3f63
|
@ -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)));
|
||||
|
||||
|
|
Loading…
Reference in a new issue