the_platinum_searcher
the_platinum_searcher copied to clipboard
--hidden
--hidden is ignored if hidden directory depth is not 1 in other words, --hidden makes search hidden directories in current directory only
Thank you for issue.
I think pt v2.1.6 can search hidden directories and subdirectories.
$ tree -a
.
├── .hidden
│ └── hoge.txt
├── dir
│ ├── .hidden
│ │ └── hoge.txt
│ └── hoge.txt
└── dir2
└── dir3
└── .hidden
└── hoge.txt
$ pt --version
pt version 2.1.6
$ pt hoge
./dir/hoge.txt
1:hoge
$ pt --hidden hoge
./.hidden/hoge.txt
1:hoge
./dir/hoge.txt
1:hoge
./dir/.hidden/hoge.txt
1:hoge
./dir2/dir3/.hidden/hoge.txt
1:hoge
Could you tell me the steps to reproduce it?
.ptconfig.toml
ignore = [ "*.a" ]
tree -a
.
├── .git
│ └── f1.a
├── dir.a
│ ├── .git
│ │ ├── f1
│ │ └── f1.a
│ ├── f1
│ └── f1.a
└── f1.a