diff options
author | sin <sin@2f30.org> | 2016-02-25 14:54:41 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2016-02-25 14:54:41 +0000 |
commit | e1c26079b109a8ef074362142636c970ccdc9465 (patch) | |
tree | 3c9c1b5bc61d22d189c0e150d2afbe4c46aeb127 /noice.c | |
parent | de1e3394a6700781c49f93bec6745bd8caa74d3c (diff) | |
download | noice-e1c26079b109a8ef074362142636c970ccdc9465.tar.gz |
Add command to toggle hide .dot files
Patch written by Richard Hyde and taken from
https://github.com/RichardHyde/noice
Diffstat (limited to 'noice.c')
-rw-r--r-- | noice.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -57,6 +57,7 @@ enum action { SEL_HOME, SEL_END, SEL_CD, + SEL_TOGGLEDOT, SEL_MTIME, SEL_REDRAW, SEL_RUN, @@ -706,6 +707,12 @@ nochange: 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 */ |