Change archive list shortcut to 'F'

This commit is contained in:
Arun Prakash Jana 2017-10-01 04:28:48 +05:30
parent 20e8116a6c
commit 79cbc40a7f
No known key found for this signature in database
GPG key ID: A75979F35C080412
4 changed files with 5 additions and 3 deletions

View file

@ -231,6 +231,8 @@ Search keyword and option completion scripts for Bash, Fish and Zsh can be found
e | Edit entry in EDITOR e | Edit entry in EDITOR
o | Open dir in file manager o | Open dir in file manager
p | Open entry in PAGER p | Open entry in PAGER
F | List archive
^X | Extract archive
^K | Invoke file path copier ^K | Invoke file path copier
^L | Redraw, clear prompt ^L | Redraw, clear prompt
? | Help, settings ? | Help, settings

2
nnn.1
View file

@ -93,7 +93,7 @@ Open current entry in EDITOR (fallback vi)
Open directory in NNN_DE_FILE_MANAGER Open directory in NNN_DE_FILE_MANAGER
.It Ic p .It Ic p
Open current entry in PAGER (fallback less) Open current entry in PAGER (fallback less)
.It Ic f .It Ic F
List files in archive List files in archive
.It Ic ^X .It Ic ^X
Extract archive in current directory Extract archive in current directory

2
nnn.c
View file

@ -1692,7 +1692,7 @@ show_help(char *path)
"ee | Edit entry in EDITOR\n" "ee | Edit entry in EDITOR\n"
"eo | Open dir in file manager\n" "eo | Open dir in file manager\n"
"ep | Open entry in PAGER\n" "ep | Open entry in PAGER\n"
"ef | List archive\n" "eF | List archive\n"
"d^X | Extract archive\n" "d^X | Extract archive\n"
"d^K | Invoke file path copier\n" "d^K | Invoke file path copier\n"
"d^L | Redraw, clear prompt\n" "d^L | Redraw, clear prompt\n"

2
nnn.h
View file

@ -134,7 +134,7 @@ static struct key bindings[] = {
/* Open dir in desktop file manager */ /* Open dir in desktop file manager */
{ 'o', SEL_DFB, "", "" }, { 'o', SEL_DFB, "", "" },
/* List archive */ /* List archive */
{ 'f', SEL_LIST, "-l", "" }, { 'F', SEL_LIST, "-l", "" },
/* Extract archive */ /* Extract archive */
{ CONTROL('X'), SEL_EXTRACT, "-x", "" }, { CONTROL('X'), SEL_EXTRACT, "-x", "" },
/* Toggle sort by size */ /* Toggle sort by size */