Switch X and ^X key functionality

This commit is contained in:
Arun Prakash Jana 2018-11-17 08:31:47 +05:30
parent 229b1eba91
commit 80371258a1
No known key found for this signature in database
GPG key ID: A75979F35C080412
4 changed files with 8 additions and 8 deletions

View file

@ -228,8 +228,8 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
^R Rename entry r Open dir in vidir ^R Rename entry r Open dir in vidir
^Y Toggle selection y List selection ^Y Toggle selection y List selection
⎵, ^K Copy entry path ^T Toggle path quote ⎵, ^K Copy entry path ^T Toggle path quote
P Copy selection ^X Delete selection P Copy selection X Delete selection
V Move selection X Delete entry V Move selection ^X Delete entry
f Archive entry F List archive f Archive entry F List archive
^F Extract archive m, M Brief/full media info ^F Extract archive m, M Brief/full media info
e Edit in EDITOR p Open in PAGER e Edit in EDITOR p Open in PAGER

4
nnn.1
View file

@ -108,9 +108,9 @@ Toggle path quote
Copy files from selection Copy files from selection
.It Ic V .It Ic V
Move files from selection Move files from selection
.It Ic ^X
Delete files from selection
.It Ic X .It Ic X
Delete files from selection
.It Ic ^X
Delete entry Delete entry
.It Ic f .It Ic f
Archive entry Archive entry

View file

@ -1975,8 +1975,8 @@ static int show_help(char *path)
"d^R Rename entry r Open dir in vidir\n" "d^R Rename entry r Open dir in vidir\n"
"d^Y Toggle selection y List selection\n" "d^Y Toggle selection y List selection\n"
"a⎵, ^K Copy entry path ^T Toggle path quote\n" "a⎵, ^K Copy entry path ^T Toggle path quote\n"
"eP Copy selection ^X Delete selection\n" "eP Copy selection X Delete selection\n"
"eV Move selection X Delete entry\n" "eV Move selection ^X Delete entry\n"
"ef Archive entry F List archive\n" "ef Archive entry F List archive\n"
"d^F Extract archive m, M Brief/full media info\n" "d^F Extract archive m, M Brief/full media info\n"
"ee Edit in EDITOR p Open in PAGER\n" "ee Edit in EDITOR p Open in PAGER\n"

View file

@ -202,9 +202,9 @@ static struct key bindings[] = {
/* Move from copy buffer */ /* Move from copy buffer */
{ 'V', SEL_MV, "", "" }, { 'V', SEL_MV, "", "" },
/* Delete from copy buffer */ /* Delete from copy buffer */
{ CONTROL('X'), SEL_RMMUL, "", "" }, { 'X', SEL_RMMUL, "", "" },
/* Delete currently selected */ /* Delete currently selected */
{ 'X', SEL_RM, "", "" }, { CONTROL('X'), SEL_RM, "", "" },
/* Toggle quote on while copy */ /* Toggle quote on while copy */
{ CONTROL('T'), SEL_QUOTE, "", "" }, { CONTROL('T'), SEL_QUOTE, "", "" },
/* Open in a custom application */ /* Open in a custom application */