mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Add key ] to show prompt
This commit is contained in:
parent
8705cb99a3
commit
084a4c77c5
|
@ -224,7 +224,7 @@ The list below is from the **dev branch**. Press <kbd>?</kbd> in `nnn` to see th
|
||||||
C Execute entry R ^V Pick plugin
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
|
|
@ -1971,7 +1971,8 @@ static int filterentries(char *path)
|
||||||
|
|
||||||
if (r == OK) {
|
if (r == OK) {
|
||||||
/* Handle all control chars in main loop */
|
/* Handle all control chars in main loop */
|
||||||
if (*ch < ASCII_MAX && keyname(*ch)[0] == '^' && *ch != '^') {
|
if ((*ch < ASCII_MAX && keyname(*ch)[0] == '^' && *ch != '^')
|
||||||
|
|| (*ch == ']' && len == 1)) {
|
||||||
DPRINTF_D(*ch);
|
DPRINTF_D(*ch);
|
||||||
DPRINTF_S(keyname(*ch));
|
DPRINTF_S(keyname(*ch));
|
||||||
|
|
||||||
|
@ -3331,7 +3332,7 @@ static void show_help(const char *path)
|
||||||
"cC Execute entry R ^V Pick plugin\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"};
|
"9] ^P Prompt/run cmd L Lock\n"};
|
||||||
|
|
||||||
fd = create_tmp_file();
|
fd = create_tmp_file();
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
|
|
|
@ -257,6 +257,7 @@ static struct key bindings[] = {
|
||||||
/* Launcher */
|
/* Launcher */
|
||||||
{ '=', SEL_LAUNCH },
|
{ '=', SEL_LAUNCH },
|
||||||
/* Run a command */
|
/* Run a command */
|
||||||
|
{ ']', SEL_RUNCMD },
|
||||||
{ CONTROL('P'), SEL_RUNCMD },
|
{ CONTROL('P'), SEL_RUNCMD },
|
||||||
/* Open in EDITOR or PAGER */
|
/* Open in EDITOR or PAGER */
|
||||||
{ 'e', SEL_RUNEDIT },
|
{ 'e', SEL_RUNEDIT },
|
||||||
|
|
Loading…
Reference in a new issue