0
For example searching for file does right thing: file:.git However searching for directory returns nothing: directory:.git
0
For example searching for file does right thing: file:.git However searching for directory returns nothing: directory:.git
1
Use folder:
instead.
For example folder: .git
will search for all directories that have .git in them.
It will still find files inside them.
If you really want folders only, use kind:folders ".git"
Notice how folder: gets blue, indicating that it's a filter that will work.
This is tested to work in Windows 10. Given that you did not mention what OS you are using, I will assume you use the latest at this time of writing, which is Windows 10, but it probably works in earlier versions too.
folder: .git doesn't work despite i see .git directories (folder: ".git" either) – amuliar – 2017-12-13T15:53:25.070
kind:folders ".git" works - from https://superuser.com/questions/116514/how-to-search-for-only-folders-in-windows-7-instead-of-folders-and-files
– amuliar – 2017-12-13T15:55:24.643Edited the answer. Thanks for the feedback. Feel free to mark the answer as answered, so others know you no longer need help. – LPChip – 2017-12-13T16:03:42.590