mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Map ^V to run custom script
This commit is contained in:
parent
6dc151e05d
commit
98fd5755d1
|
@ -249,7 +249,7 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
|
||||||
t Modification time s Size
|
t Modification time s Size
|
||||||
MISC
|
MISC
|
||||||
!, ^] Spawn SHELL in dir C Execute entry
|
!, ^] Spawn SHELL in dir C Execute entry
|
||||||
R Run custom script L Lock terminal
|
R, ^V Run custom script L Lock terminal
|
||||||
^S Run a command
|
^S Run a command
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
2
nnn.1
2
nnn.1
|
@ -147,7 +147,7 @@ MISC
|
||||||
Spawn SHELL in current directory (fallback sh)
|
Spawn SHELL in current directory (fallback sh)
|
||||||
.It Ic C
|
.It Ic C
|
||||||
Execute entry
|
Execute entry
|
||||||
.It Ic R
|
.It Ic R, ^V
|
||||||
Run or choose a custom script
|
Run or choose a custom script
|
||||||
.It Ic L
|
.It Ic L
|
||||||
Lock terminal
|
Lock terminal
|
||||||
|
|
|
@ -2109,7 +2109,7 @@ static bool show_help(char *path)
|
||||||
"et Modification time s Size\n"
|
"et Modification time s Size\n"
|
||||||
"1MISC\n"
|
"1MISC\n"
|
||||||
"a!, ^] Spawn SHELL in dir C Execute entry\n"
|
"a!, ^] Spawn SHELL in dir C Execute entry\n"
|
||||||
"eR Run custom script L Lock terminal\n"
|
"aR, ^V Run custom script L Lock terminal\n"
|
||||||
"d^S Run a command\n"};
|
"d^S Run a command\n"};
|
||||||
|
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
|
|
|
@ -215,6 +215,7 @@ static struct key bindings[] = {
|
||||||
{ CONTROL(']'), SEL_SHELL },
|
{ CONTROL(']'), SEL_SHELL },
|
||||||
/* Run a custom script */
|
/* Run a custom script */
|
||||||
{ 'R', SEL_SCRIPT },
|
{ 'R', SEL_SCRIPT },
|
||||||
|
{ CONTROL('V'), SEL_SCRIPT },
|
||||||
/* Run a command */
|
/* Run a command */
|
||||||
{ CONTROL('S'), SEL_RUNCMD },
|
{ CONTROL('S'), SEL_RUNCMD },
|
||||||
/* Open in EDITOR or PAGER */
|
/* Open in EDITOR or PAGER */
|
||||||
|
|
Loading…
Reference in a new issue