瀏覽代碼

Map ^V to run custom script

master
Arun Prakash Jana 6 年之前
父節點
當前提交
98fd5755d1
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 4 個檔案被更改,包括 4 行新增3 行删除
  1. +1
    -1
      README.md
  2. +1
    -1
      nnn.1
  3. +1
    -1
      src/nnn.c
  4. +1
    -0
      src/nnn.h

+ 1
- 1
README.md 查看文件

@@ -249,7 +249,7 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
t Modification time s Size
MISC
!, ^] 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
```



+ 1
- 1
nnn.1 查看文件

@@ -147,7 +147,7 @@ MISC
Spawn SHELL in current directory (fallback sh)
.It Ic C
Execute entry
.It Ic R
.It Ic R, ^V
Run or choose a custom script
.It Ic L
Lock terminal


+ 1
- 1
src/nnn.c 查看文件

@@ -2109,7 +2109,7 @@ static bool show_help(char *path)
"et Modification time s Size\n"
"1MISC\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"};

if (fd == -1)


+ 1
- 0
src/nnn.h 查看文件

@@ -215,6 +215,7 @@ static struct key bindings[] = {
{ CONTROL(']'), SEL_SHELL },
/* Run a custom script */
{ 'R', SEL_SCRIPT },
{ CONTROL('V'), SEL_SCRIPT },
/* Run a command */
{ CONTROL('S'), SEL_RUNCMD },
/* Open in EDITOR or PAGER */


Loading…
取消
儲存