commit 2c5cb4c5aa6e9e51ee3ec8bf4906e5500e82df48
parent a555a7d1229037ce9550b303a2c019ffe708bc2a
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sat, 16 Apr 2022 16:58:11 +0530
Replace ^J with + to (un)select
^J has been reported as out of place several times.
As `+` is used as the seleciton marker, it makes more sense.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nnn.c b/src/nnn.c
@@ -5040,7 +5040,7 @@ static void show_help(const char *path)
"b^R Rename/dup%-14cr Batch rename\n"
"cz Archive%-17ce Edit file\n"
"c* Toggle exe%-14c> Export list\n"
- "5Space ^J (Un)select%-12cm-m Select range/clear\n"
+ "6Space + (Un)select%-12cm-m Select range/clear\n"
"ca Select all%-14cA Invert sel\n"
"9p ^P Copy here%-12cw ^W Cp/mv sel as\n"
"9v ^V Move here%-15cE Edit sel list\n"
diff --git a/src/nnn.h b/src/nnn.h
@@ -212,8 +212,8 @@ static struct key bindings[] = {
/* Redraw window */
{ CONTROL('L'), SEL_REDRAW },
/* Select current file path */
- { CONTROL('J'), SEL_SEL },
{ ' ', SEL_SEL },
+ { '+', SEL_SEL },
/* Toggle select multiple files */
{ 'm', SEL_SELMUL },
/* Select all files in current dir */