aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-25 19:48:08 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-08-25 19:48:08 +0530
commitea81e2e569c419d4e67f1b4277fc7b7d4aa46b26 (patch)
tree6d54309f25bfcc0ceae0155c00b170e0b38d396d /src
parent86594a747fc1794fa517e9ef3f31b54612581a90 (diff)
downloadnnn-ea81e2e569c419d4e67f1b4277fc7b7d4aa46b26.tar.gz
Add F12 as run plugin key:wq
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c10
-rw-r--r--src/nnn.h1
2 files changed, 4 insertions, 7 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 956f586..e7944ad 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -927,12 +927,8 @@ static bool initcurses(mmask_t *oldmask)
return FALSE;
}
} else if (!initscr()) {
- char *term = getenv("TERM");
-
- if (term)
- fprintf(stderr, "error opening TERM: %s\n", term);
- else
- fprintf(stderr, "initscr!\n");
+ fprintf(stderr, "initscr!\n");
+ DPRINTF_S(getenv("TERM"));
return FALSE;
}
@@ -2847,7 +2843,7 @@ static bool show_help(const char *path)
"cs Size E Extn t Time modified\n"
"1MISC\n"
"9! ^] Shell L Lock C Execute entry\n"
- "9R ^V Pick plugin xK Run plugin key K\n"
+ "9R ^V Pick plugin F12 xK Run plugin key K\n"
"cc SSHFS mount u Unmount\n"
"b^P Prompt ^N Note = Launcher\n"};
diff --git a/src/nnn.h b/src/nnn.h
index c68893a..9732ad9 100644
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -241,6 +241,7 @@ static struct key bindings[] = {
{ CONTROL(']'), SEL_SHELL },
/* Plugin key */
{ 'x', SEL_PLUGKEY },
+ { KEY_F(12), SEL_PLUGKEY },
/* Run a plugin */
{ 'R', SEL_PLUGIN },
{ CONTROL('V'), SEL_PLUGIN },