Patch written by Richard Hyde and taken from
https://github.com/RichardHyde/noice
{ '$', SEL_END },
/* Change dir */
{ 'c', SEL_CD },
+ /* Toggle hide .dot files */
+ { '.', SEL_TOGGLEDOT },
/* Toggle sort by time */
{ 't', SEL_MTIME },
{ CONTROL('L'), SEL_REDRAW },
Change filter (see below for more information).
.It Ic c
Change into the given directory.
+.It Ic \&.
+Toggle hide .dot files.
.It Ic t
Toggle sort by time modified.
.It Ic C-l
SEL_HOME,
SEL_END,
SEL_CD,
+ SEL_TOGGLEDOT,
SEL_MTIME,
SEL_REDRAW,
SEL_RUN,
strlcpy(fltr, ifilter, sizeof(fltr))
DPRINTF_S(path);
goto begin;
+ case SEL_TOGGLEDOT:
+ if (strcmp(fltr, ifilter) != 0)
+ strlcpy(fltr, ifilter, sizeof(fltr));
+ else
+ strlcpy(fltr, ".", sizeof(fltr));
+ goto begin;
case SEL_MTIME:
mtimeorder = !mtimeorder;
/* Save current */