From 42e36e85ee1e399495aca13f5d5dde70185bfac2 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 23 Feb 2019 20:13:04 +0530 Subject: Add key 'K' to toggle selection --- src/nnn.c | 2 +- src/nnn.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nnn.c b/src/nnn.c index 008b2f5..9100ac1 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2420,7 +2420,7 @@ static bool show_help(char *path) "b^O Open with... n Create new/link\n" "cD File details ^R Rename entry\n" "9⎵ ^K Select entry r Open dir in vidir\n" - "b^Y Toggle selection y List selection\n" + "9K ^Y Toggle selection y List selection\n" "cY Select all\n" "cP Copy selection X Delete selection\n" "cV Move selection ^X Delete entry\n" diff --git a/src/nnn.h b/src/nnn.h index ab8a4ba..a588a33 100644 --- a/src/nnn.h +++ b/src/nnn.h @@ -189,6 +189,7 @@ static struct key bindings[] = { { CONTROL('K'), SEL_COPY }, { ' ', SEL_COPY }, /* Toggle copy multiple file paths */ + { 'K', SEL_COPYMUL }, { CONTROL('Y'), SEL_COPYMUL }, /* Select all files in current dir */ { 'Y', SEL_COPYALL }, -- cgit v1.2.3-70-g09d2