mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Key F5 toggle hidden
This commit is contained in:
parent
afb7efc860
commit
9b054d51f4
|
@ -3630,7 +3630,7 @@ static void show_help(const char *path)
|
||||||
"9Dn j Down%-14cPgDn ^D Scroll down\n"
|
"9Dn j Down%-14cPgDn ^D Scroll down\n"
|
||||||
"9Lt h Parent%-12c~ ` @ - HOME, /, start, last\n"
|
"9Lt h Parent%-12c~ ` @ - HOME, /, start, last\n"
|
||||||
"5Ret Rt l Open%-20c' First file\n"
|
"5Ret Rt l Open%-20c' First file\n"
|
||||||
"9g ^A Top%-21c. Toggle hidden\n"
|
"9g ^A Top%-18c. F5 Toggle hidden\n"
|
||||||
"9G ^E End%-21c0 Lock terminal\n"
|
"9G ^E End%-21c0 Lock terminal\n"
|
||||||
"9b ^/ Bookmark key%-12c, Pin CWD\n"
|
"9b ^/ Bookmark key%-12c, Pin CWD\n"
|
||||||
"a1-4 Context 1-4%-8c(B)Tab Cycle context\n"
|
"a1-4 Context 1-4%-8c(B)Tab Cycle context\n"
|
||||||
|
@ -4970,7 +4970,7 @@ nochange:
|
||||||
}
|
}
|
||||||
goto nochange;
|
goto nochange;
|
||||||
case SEL_MFLTR: // fallthrough
|
case SEL_MFLTR: // fallthrough
|
||||||
case SEL_TOGGLEDOT: // fallthrough
|
case SEL_HIDDEN: // fallthrough
|
||||||
case SEL_DETAIL: // fallthrough
|
case SEL_DETAIL: // fallthrough
|
||||||
case SEL_SORT:
|
case SEL_SORT:
|
||||||
switch (sel) {
|
switch (sel) {
|
||||||
|
@ -4985,7 +4985,7 @@ nochange:
|
||||||
/* Start watching the directory */
|
/* Start watching the directory */
|
||||||
dir_changed = TRUE;
|
dir_changed = TRUE;
|
||||||
break;
|
break;
|
||||||
case SEL_TOGGLEDOT:
|
case SEL_HIDDEN:
|
||||||
cfg.showhidden ^= 1;
|
cfg.showhidden ^= 1;
|
||||||
if (ndents)
|
if (ndents)
|
||||||
copycurname();
|
copycurname();
|
||||||
|
|
|
@ -62,7 +62,7 @@ enum action {
|
||||||
SEL_PIN,
|
SEL_PIN,
|
||||||
SEL_FLTR,
|
SEL_FLTR,
|
||||||
SEL_MFLTR,
|
SEL_MFLTR,
|
||||||
SEL_TOGGLEDOT,
|
SEL_HIDDEN,
|
||||||
SEL_DETAIL,
|
SEL_DETAIL,
|
||||||
SEL_STATS,
|
SEL_STATS,
|
||||||
SEL_CHMODX,
|
SEL_CHMODX,
|
||||||
|
@ -164,7 +164,8 @@ static struct key bindings[] = {
|
||||||
/* Toggle filter mode */
|
/* Toggle filter mode */
|
||||||
{ CONTROL('N'), SEL_MFLTR },
|
{ CONTROL('N'), SEL_MFLTR },
|
||||||
/* Toggle hide .dot files */
|
/* Toggle hide .dot files */
|
||||||
{ '.', SEL_TOGGLEDOT },
|
{ '.', SEL_HIDDEN },
|
||||||
|
{ KEY_F(5), SEL_HIDDEN },
|
||||||
/* Detailed listing */
|
/* Detailed listing */
|
||||||
{ 'd', SEL_DETAIL },
|
{ 'd', SEL_DETAIL },
|
||||||
/* File details */
|
/* File details */
|
||||||
|
|
Loading…
Reference in a new issue