How can I find filenames with a pattern under a given directory?

The project I am working on has a deep and wide directory hierarchy. I love that I can find files with a particular content if I right-click on a parent directory, say `/project/test`, and select `Find in Files…`. 

However, if I want to find files with a given pattern in their _name_ rather than their content, I need to copy-paste the path of the parent directory to the clipboard (right click → Copy Path/Reference → Path From Content Root), and then use it in the Navigate → File dialog. This is a clumsy and slow solution.

It would be simpler if there was a menu item in the right-click menu of a directory called “Find Files” just under the “Find in Files”. Or, it would be even better if the top part of the "Find In Files"  dialog would have another field for the file name mask. It should be under the searched text input field and above the menus (In Project, Modules, /…), and it should be able to receive not just filename wildcards like *.md, but all regexps as well.  

0

Hi there!

Thank you for your question. Could you please check this article and see if the functionality mentioned there meets your requirements - https://www.jetbrains.com/help/go/searching-everywhere.html#search_all?

Please let me know what you think. I'll be awaiting your reply.

0

请先登录再写评论。