Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--hidden #193

Open
squm opened this issue Aug 10, 2018 · 2 comments
Open

--hidden #193

squm opened this issue Aug 10, 2018 · 2 comments

Comments

@squm
Copy link

squm commented Aug 10, 2018

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

@monochromegane
Copy link
Owner

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?

@squm
Copy link
Author

squm commented Oct 2, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants