From 98fd5755d1fbd27cb39ee515eff2e85a6928c58d Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 6 Jan 2019 02:08:07 +0530 Subject: Map ^V to run custom script --- src/nnn.c | 2 +- src/nnn.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nnn.c b/src/nnn.c index 7c473ab..60ec887 100644 --- a/src/nnn.c +++ b/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) diff --git a/src/nnn.h b/src/nnn.h index e52986b..c68d4d4 100644 --- a/src/nnn.h +++ b/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 */ -- cgit v1.2.3-70-g09d2