Skip to content
Snippets Groups Projects
Commit b53cb427 authored by yorhel's avatar yorhel
Browse files

The 'h' key now also hides excluded items

git-svn-id: svn://blicky.net/ncdu/trunk@9 ce56bc8d-f834-0410-b703-f827bd498a76
parent 32a535d6
No related branches found
No related tags found
No related merge requests found
......@@ -113,11 +113,11 @@ Use powers of 1000 instead of 1024, press again to switch back
.TP
.B
h
Show/Hide 'hidden' files and directories. Please note that even though
you can't see the hidden files and directories, they are still there
and they are still included in the directory sizes. If you suspect that
the totals shown at the bottom of the screen are not correct, make sure
you haven't enabled this option.
Show/hide 'hidden' or 'excluded' files and directories. Please note that
even though you can't see the hidden files and directories, they are still
there and they are still included in the directory sizes. If you suspect
that the totals shown at the bottom of the screen are not correct, make
sure you haven't enabled this option.
.TP
.B
q
......
......@@ -121,7 +121,10 @@ char *graph(off_t max, off_t size) {
}
#define exlhid(x) if(bflags & BF_HIDE && !(x->flags & FF_PAR) && x->name[0] == '.') { i--; continue; }
#define exlhid(x) if(bflags & BF_HIDE && (\
(!(x->flags & FF_PAR) && x->name[0] == '.')\
|| x->flags & FF_EXL)\
) { i--; continue; }
void drawBrowser(int change) {
struct dir *n;
......
......@@ -63,7 +63,7 @@ void drawHelp(int page) {
mvwaddstr(hlp, 8, 16, "Toggle dirs before files when sorting");
mvwaddstr(hlp, 9, 16, "Show percentage and/or graph");
mvwaddstr(hlp,10, 16, "Toggle between powers of 1000 and 1024");
mvwaddstr(hlp,11, 16, "Show/hide hidden files");
mvwaddstr(hlp,11, 16, "Show/hide hidden or excluded files");
mvwaddstr(hlp,12, 16, "Quit ncdu");
break;
case 2:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment