From 2c5cb4c5aa6e9e51ee3ec8bf4906e5500e82df48 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 16 Apr 2022 16:58:11 +0530 Subject: [PATCH] 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. --- src/nnn.c | 2 +- src/nnn.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */