mirror of
https://github.com/jarun/nnn.git
synced 2025-03-18 20:39:45 +00:00
Add F12 as run plugin key:wq
This commit is contained in:
parent
86594a747f
commit
ea81e2e569
3 changed files with 5 additions and 8 deletions
|
@ -261,7 +261,7 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
|
||||||
s Size E Extn t Time modified
|
s Size E Extn t Time modified
|
||||||
MISC
|
MISC
|
||||||
! ^] Shell L Lock C Execute entry
|
! ^] Shell L Lock C Execute entry
|
||||||
R ^V Pick plugin xK Run plugin key K
|
R ^V Pick plugin F12 xK Run plugin key K
|
||||||
c SSHFS mount u Unmount
|
c SSHFS mount u Unmount
|
||||||
^P Prompt ^N Note = Launcher
|
^P Prompt ^N Note = Launcher
|
||||||
```
|
```
|
||||||
|
|
10
src/nnn.c
10
src/nnn.c
|
@ -927,12 +927,8 @@ static bool initcurses(mmask_t *oldmask)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
} else if (!initscr()) {
|
} else if (!initscr()) {
|
||||||
char *term = getenv("TERM");
|
fprintf(stderr, "initscr!\n");
|
||||||
|
DPRINTF_S(getenv("TERM"));
|
||||||
if (term)
|
|
||||||
fprintf(stderr, "error opening TERM: %s\n", term);
|
|
||||||
else
|
|
||||||
fprintf(stderr, "initscr!\n");
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2847,7 +2843,7 @@ static bool show_help(const char *path)
|
||||||
"cs Size E Extn t Time modified\n"
|
"cs Size E Extn t Time modified\n"
|
||||||
"1MISC\n"
|
"1MISC\n"
|
||||||
"9! ^] Shell L Lock C Execute entry\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"
|
"cc SSHFS mount u Unmount\n"
|
||||||
"b^P Prompt ^N Note = Launcher\n"};
|
"b^P Prompt ^N Note = Launcher\n"};
|
||||||
|
|
||||||
|
|
|
@ -241,6 +241,7 @@ static struct key bindings[] = {
|
||||||
{ CONTROL(']'), SEL_SHELL },
|
{ CONTROL(']'), SEL_SHELL },
|
||||||
/* Plugin key */
|
/* Plugin key */
|
||||||
{ 'x', SEL_PLUGKEY },
|
{ 'x', SEL_PLUGKEY },
|
||||||
|
{ KEY_F(12), SEL_PLUGKEY },
|
||||||
/* Run a plugin */
|
/* Run a plugin */
|
||||||
{ 'R', SEL_PLUGIN },
|
{ 'R', SEL_PLUGIN },
|
||||||
{ CONTROL('V'), SEL_PLUGIN },
|
{ CONTROL('V'), SEL_PLUGIN },
|
||||||
|
|
Loading…
Add table
Reference in a new issue