mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Key z to archive, fix du order issue
This commit is contained in:
parent
101d4e8a07
commit
749f089355
|
@ -3604,7 +3604,7 @@ static void show_help(const char *path)
|
||||||
"cD File details%-12cd Detail view toggle\n"
|
"cD File details%-12cd Detail view toggle\n"
|
||||||
"cr Batch rename%-8cF2 ^R Rename/duplicate\n"
|
"cr Batch rename%-8cF2 ^R Rename/duplicate\n"
|
||||||
"ce Edit in EDITOR%-10cp Open in PAGER\n"
|
"ce Edit in EDITOR%-10cp Open in PAGER\n"
|
||||||
"ci Archive entry%-11c* Toggle exe\n"
|
"cz Archive entry%-11c* Toggle exe\n"
|
||||||
"5Space ^J (Un)select%-11cm ^K Select range, clear\n"
|
"5Space ^J (Un)select%-11cm ^K Select range, clear\n"
|
||||||
"cP Copy sel here%-11ca Select all\n"
|
"cP Copy sel here%-11ca Select all\n"
|
||||||
"cV Move sel here%-10c^V Copy/move sel as\n"
|
"cV Move sel here%-10c^V Copy/move sel as\n"
|
||||||
|
@ -4987,7 +4987,7 @@ nochange:
|
||||||
cfg.blkorder = 0;
|
cfg.blkorder = 0;
|
||||||
// fallthrough
|
// fallthrough
|
||||||
case 'd': /* Disk usage */
|
case 'd': /* Disk usage */
|
||||||
if (sel == SEL_BSIZE) {
|
if (r == 'd') {
|
||||||
if (!cfg.apparentsz)
|
if (!cfg.apparentsz)
|
||||||
cfg.blkorder ^= 1;
|
cfg.blkorder ^= 1;
|
||||||
nftw_fn = &sum_bsizes;
|
nftw_fn = &sum_bsizes;
|
||||||
|
|
|
@ -68,13 +68,6 @@ enum action {
|
||||||
SEL_CHMODX,
|
SEL_CHMODX,
|
||||||
SEL_ARCHIVE,
|
SEL_ARCHIVE,
|
||||||
SEL_ORDER,
|
SEL_ORDER,
|
||||||
SEL_FSIZE, /* file size */
|
|
||||||
SEL_ASIZE, /* apparent size */
|
|
||||||
SEL_BSIZE, /* block size */
|
|
||||||
SEL_EXTN, /* order by extension */
|
|
||||||
SEL_MTIME,
|
|
||||||
SEL_REVERSE,
|
|
||||||
SEL_VERSION,
|
|
||||||
SEL_REDRAW,
|
SEL_REDRAW,
|
||||||
SEL_SEL,
|
SEL_SEL,
|
||||||
SEL_SELMUL,
|
SEL_SELMUL,
|
||||||
|
@ -183,7 +176,7 @@ static struct key bindings[] = {
|
||||||
/* Toggle executable status */
|
/* Toggle executable status */
|
||||||
{ '*', SEL_CHMODX },
|
{ '*', SEL_CHMODX },
|
||||||
/* Create archive */
|
/* Create archive */
|
||||||
{ 'i', SEL_ARCHIVE },
|
{ 'z', SEL_ARCHIVE },
|
||||||
/* Order toggle */
|
/* Order toggle */
|
||||||
{ 'o', SEL_ORDER },
|
{ 'o', SEL_ORDER },
|
||||||
{ CONTROL('T'), SEL_ORDER },
|
{ CONTROL('T'), SEL_ORDER },
|
||||||
|
|
Loading…
Reference in a new issue