From: Arun Prakash Jana Date: Sat, 16 Apr 2022 11:28:11 +0000 (+0530) Subject: Replace ^J with + to (un)select X-Git-Tag: v4.5~8 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2c5cb4c5aa6e9e51ee3ec8bf4906e5500e82df48;p=nnn.git 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. --- diff --git a/src/nnn.c b/src/nnn.c index ba77ca6f..a102d9ea 100644 --- 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 index 85970ef0..58841314 100644 --- 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 */