The 'h' key now also hides excluded items
git-svn-id: svn://blicky.net/ncdu/trunk@9 ce56bc8d-f834-0410-b703-f827bd498a76
Этот коммит содержится в:
родитель
32a535d6d7
Коммит
b53cb427a4
10
doc/ncdu.1
10
doc/ncdu.1
@ -113,11 +113,11 @@ Use powers of 1000 instead of 1024, press again to switch back
|
|||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
h
|
h
|
||||||
Show/Hide 'hidden' files and directories. Please note that even though
|
Show/hide 'hidden' or 'excluded' files and directories. Please note that
|
||||||
you can't see the hidden files and directories, they are still there
|
even though you can't see the hidden files and directories, they are still
|
||||||
and they are still included in the directory sizes. If you suspect that
|
there and they are still included in the directory sizes. If you suspect
|
||||||
the totals shown at the bottom of the screen are not correct, make sure
|
that the totals shown at the bottom of the screen are not correct, make
|
||||||
you haven't enabled this option.
|
sure you haven't enabled this option.
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
q
|
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) {
|
void drawBrowser(int change) {
|
||||||
struct dir *n;
|
struct dir *n;
|
||||||
|
@ -63,7 +63,7 @@ void drawHelp(int page) {
|
|||||||
mvwaddstr(hlp, 8, 16, "Toggle dirs before files when sorting");
|
mvwaddstr(hlp, 8, 16, "Toggle dirs before files when sorting");
|
||||||
mvwaddstr(hlp, 9, 16, "Show percentage and/or graph");
|
mvwaddstr(hlp, 9, 16, "Show percentage and/or graph");
|
||||||
mvwaddstr(hlp,10, 16, "Toggle between powers of 1000 and 1024");
|
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");
|
mvwaddstr(hlp,12, 16, "Quit ncdu");
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user