nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9a7660fb626d75465f85598b26baab641a34ca26
parent e2d532416aeeb43de42d813e7710026dc0a472e5
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 27 Jun 2018 20:38:41 +0530

Add Space as 2nd file-path copier key (easy to use)

Diffstat:
MREADME.md | 2+-
Mnnn.1 | 2+-
Mnnn.c | 2+-
Mnnn.h | 1+
4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -244,7 +244,7 @@ optional arguments: f | Archive entry F | List archive ^F | Extract archive - ^K | Copy file path + Space, ^K | Copy file path ^Y | Toggle multi-copy ^T | Toggle path quote ^L | Redraw, clear prompt diff --git a/nnn.1 b/nnn.1 @@ -105,7 +105,7 @@ Archive current entry List files in archive .It Ic ^F Extract archive in current directory -.It Ic ^K +.It Ic Space, ^K Invoke file path copier .It Ic ^Y Toggle multiple file path copy mode diff --git a/nnn.c b/nnn.c @@ -1952,7 +1952,7 @@ show_help(char *path) "ef | Archive entry\n" "eF | List archive\n" "d^F | Extract archive\n" - "d^K | Copy file path\n" + "6Space, ^K | Copy file path\n" "d^Y | Toggle multi-copy\n" "d^T | Toggle path quote\n" "d^L | Redraw, clear prompt\n" diff --git a/nnn.h b/nnn.h @@ -156,6 +156,7 @@ static struct key bindings[] = { { KEY_F(5), SEL_REDRAW, "", "" }, /* Undocumented */ /* Copy currently selected file path */ { CONTROL('K'), SEL_COPY, "", "" }, + { ' ', SEL_COPY, "", "" }, /* Toggle copy multiple file paths */ { CONTROL('Y'), SEL_COPYMUL, "", "" }, /* Toggle quote on while copy */