ソースを参照

Fix #200: bind ^P to show command prompt

master
Arun Prakash Jana 6年前
コミット
cfb524ea5e
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: A75979F35C080412
4個のファイルの変更5行の追加5行の削除
  1. +1
    -1
      README.md
  2. +2
    -2
      nnn.1
  3. +1
    -1
      src/nnn.c
  4. +1
    -1
      src/nnn.h

+ 1
- 1
README.md ファイルの表示

@@ -243,7 +243,7 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
MISC MISC
!, ^] Spawn SHELL in dir C Execute entry !, ^] Spawn SHELL in dir C Execute entry
R, ^V Run custom script L Lock terminal R, ^V Run custom script L Lock terminal
^S Run a command N, ^N Take note
^P Command prompt N, ^N Take note
``` ```


Help & settings, file details, media info and archive listing are shown in the PAGER. Please use the PAGER-specific keys in these screens. Help & settings, file details, media info and archive listing are shown in the PAGER. Please use the PAGER-specific keys in these screens.


+ 2
- 2
nnn.1 ファイルの表示

@@ -150,8 +150,8 @@ Run or choose a custom script
Lock terminal Lock terminal
.It Ic N .It Ic N
Take note Take note
.It Ic ^S
Run a command
.It Ic ^P
Show command prompt
.El .El
.Pp .Pp
Backing up one directory level will set the cursor position at the Backing up one directory level will set the cursor position at the


+ 1
- 1
src/nnn.c ファイルの表示

@@ -2298,7 +2298,7 @@ static bool show_help(char *path)
"1MISC\n" "1MISC\n"
"8!, ^] Spawn SHELL in dir C Execute entry\n" "8!, ^] Spawn SHELL in dir C Execute entry\n"
"8R, ^V Run custom script L Lock terminal\n" "8R, ^V Run custom script L Lock terminal\n"
"b^S Run a command N, ^N Take note\n"};
"b^P Command prompt N, ^N Take note\n"};


if (fd == -1) if (fd == -1)
return FALSE; return FALSE;


+ 1
- 1
src/nnn.h ファイルの表示

@@ -219,7 +219,7 @@ static struct key bindings[] = {
{ 'R', SEL_SCRIPT }, { 'R', SEL_SCRIPT },
{ CONTROL('V'), SEL_SCRIPT }, { CONTROL('V'), SEL_SCRIPT },
/* Run a command */ /* Run a command */
{ CONTROL('S'), SEL_RUNCMD },
{ CONTROL('P'), SEL_RUNCMD },
/* Open in EDITOR or PAGER */ /* Open in EDITOR or PAGER */
{ 'e', SEL_RUNEDIT }, { 'e', SEL_RUNEDIT },
{ 'p', SEL_RUNPAGE }, { 'p', SEL_RUNPAGE },


読み込み中…
キャンセル
保存