mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Add key ; to execute plugin
This commit is contained in:
parent
f7fa1ffc8e
commit
4ee9e2d129
|
@ -220,8 +220,8 @@ The list below is from the **dev branch**. Press <kbd>?</kbd> in `nnn` to see th
|
||||||
A Apparent du S du
|
A Apparent du S du
|
||||||
z Size E Extn t Time
|
z Size E Extn t Time
|
||||||
MISC
|
MISC
|
||||||
! ^] Shell C Execute entry
|
! ^] Shell ;K :K xK Execute plugin K
|
||||||
R ^V Pick plugin :K xK Execute plugin K
|
C Execute entry R ^V Pick plugin
|
||||||
U Manage session = Launch
|
U Manage session = Launch
|
||||||
c SSHFS mount u Unmount
|
c SSHFS mount u Unmount
|
||||||
^P Prompt/run cmd L Lock
|
^P Prompt/run cmd L Lock
|
||||||
|
|
|
@ -2001,6 +2001,7 @@ static int filterentries(char *path)
|
||||||
case '/': /* works as Leader key in filter mode */
|
case '/': /* works as Leader key in filter mode */
|
||||||
*ch = CONTROL('_'); // fallthrough
|
*ch = CONTROL('_'); // fallthrough
|
||||||
case ':':
|
case ':':
|
||||||
|
case ';':
|
||||||
if (len == 1)
|
if (len == 1)
|
||||||
cur = oldcur;
|
cur = oldcur;
|
||||||
goto end;
|
goto end;
|
||||||
|
@ -3327,8 +3328,8 @@ static void show_help(const char *path)
|
||||||
"cA Apparent du S du\n"
|
"cA Apparent du S du\n"
|
||||||
"cz Size E Extn t Time\n"
|
"cz Size E Extn t Time\n"
|
||||||
"1MISC\n"
|
"1MISC\n"
|
||||||
"9! ^] Shell C Execute entry\n"
|
"9! ^] Shell ;K :K xK Execute plugin K\n"
|
||||||
"9R ^V Pick plugin :K xK Execute plugin K\n"
|
"cC Execute entry R ^V Pick plugin\n"
|
||||||
"cU Manage session = Launch\n"
|
"cU Manage session = Launch\n"
|
||||||
"cc SSHFS mount u Unmount\n"
|
"cc SSHFS mount u Unmount\n"
|
||||||
"b^P Prompt/run cmd L Lock\n"};
|
"b^P Prompt/run cmd L Lock\n"};
|
||||||
|
|
|
@ -250,6 +250,7 @@ static struct key bindings[] = {
|
||||||
/* Plugin key */
|
/* Plugin key */
|
||||||
{ 'x', SEL_PLUGKEY },
|
{ 'x', SEL_PLUGKEY },
|
||||||
{ ':', SEL_PLUGKEY },
|
{ ':', SEL_PLUGKEY },
|
||||||
|
{ ';', SEL_PLUGKEY },
|
||||||
/* Run a plugin */
|
/* Run a plugin */
|
||||||
{ 'R', SEL_PLUGIN },
|
{ 'R', SEL_PLUGIN },
|
||||||
{ CONTROL('V'), SEL_PLUGIN },
|
{ CONTROL('V'), SEL_PLUGIN },
|
||||||
|
|
Loading…
Reference in a new issue