the_platinum_searcher icon indicating copy to clipboard operation
the_platinum_searcher copied to clipboard

--hidden

Open squm opened this issue 6 years ago • 2 comments

--hidden is ignored if hidden directory depth is not 1 in other words, --hidden makes search hidden directories in current directory only

squm avatar Aug 10 '18 12:08 squm

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?

monochromegane avatar Aug 28 '18 05:08 monochromegane

.ptconfig.toml
ignore = [ "*.a" ]
 tree -a
.
├── .git
│   └── f1.a
├── dir.a
│   ├── .git
│   │   ├── f1
│   │   └── f1.a
│   ├── f1
│   └── f1.a
└── f1.a

squm avatar Oct 02 '18 05:10 squm