]> Sergey Matveev's repositories - nnn.git/commitdiff
Replace ^J with + to (un)select
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 16 Apr 2022 11:28:11 +0000 (16:58 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 16 Apr 2022 11:34:53 +0000 (17:04 +0530)
^J has been reported as out of place several times.
As `+` is used as the seleciton marker, it makes more sense.

src/nnn.c
src/nnn.h

index ba77ca6f94b3f9d69eae29479191dab9348c9bf1..a102d9ea4126bd1a296b68f37bf5ac9a0ba02b1b 100644 (file)
--- 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"
index 85970ef04d3842c2b8d932436e579bbeb1b8bac2..5884131495a8ed080ce9251e741ee70b5fd3da11 100644 (file)
--- 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 */