From 8dd1946d1d88d974de3424ac96061cbdd557f480 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 10 Dec 2019 01:27:51 +0530 Subject: [PATCH] Revert to ] key --- README.md | 2 +- src/nnn.c | 4 ++-- src/nnn.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ba96ce92..97343d62 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,7 @@ The list below is from the **dev branch**. Press ? in `nnn` to see th C Execute entry R ^V Pick plugin s Manage session = Launch app c Connect remote u Unmount - \ ^P Prompt/run cmd L Lock + ] ^P Prompt/run cmd L Lock ``` Notes: diff --git a/src/nnn.c b/src/nnn.c index 93e150c0..d6a1a515 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2074,7 +2074,7 @@ static int filterentries(char *path) if (r == OK) { /* Handle all control chars in main loop */ if ((*ch < ASCII_MAX && keyname(*ch)[0] == '^' && *ch != '^') - || (*ch == '\\' && len == 1)) { + || (*ch == ']' && len == 1)) { DPRINTF_D(*ch); DPRINTF_S(keyname(*ch)); @@ -3517,7 +3517,7 @@ static void show_help(const char *path) "cC Execute entry R ^V Pick plugin\n" "cs Manage session = Launch app\n" "cc Connect remote u Unmount\n" - "9\\ ^P Prompt/run cmd L Lock\n"}; + "9] ^P Prompt/run cmd L Lock\n"}; fd = create_tmp_file(); if (fd == -1) diff --git a/src/nnn.h b/src/nnn.h index a24e27a1..c5892ec0 100644 --- a/src/nnn.h +++ b/src/nnn.h @@ -257,7 +257,7 @@ static struct key bindings[] = { /* Launcher */ { '=', SEL_LAUNCH }, /* Run a command */ - { '\\', SEL_RUNCMD }, + { ']', SEL_RUNCMD }, { CONTROL('P'), SEL_RUNCMD }, /* Open in EDITOR or PAGER */ { 'e', SEL_RUNEDIT },