nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1a849f1847a989b13c6b8623b128734689323128
parent 00fb7b6f6b6cf8e4b0936ba972a0943f7da4382b
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed,  2 Oct 2024 19:47:55 +0530

Show session name in help

Diffstat:
Msrc/nnn.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -5293,7 +5293,12 @@ static void show_help(const char *path) hex = (*s == '\n'); } - fprintf(f, "\nLOCATIONS\n"); +#ifndef NOSSN + if (curssn[0]) + fprintf(f, "\nSESSION: %s\n", curssn); +#endif + + fprintf(f, "\nCONTEXTS\n"); for (uchar_t i = 0; i < CTX_MAX; ++i) if (g_ctx[i].c_cfg.ctxactive) fprintf(f, " %u: %s\n", i + 1, g_ctx[i].c_path);