intellij-extra-actions icon indicating copy to clipboard operation
intellij-extra-actions copied to clipboard

Select in Project not working for files in .gitignore

Open shark0der opened this issue 5 years ago • 2 comments

Currently the "Select in Project" action is not working if the file is ignored. I often jump into the source of the installed npm packages in node_modules by using "Go to declaration" from my sources, and I often need to see the files from the same package by selecting the file in the project. Your plugin would be come in very handy if it could do that.

Excluding node_modules from the list of excluded folders is not a workaround because I can accidentally modify the files there and the IDE will no longer warn me that I'm editing an ignored file.

I hope I explained the issue well enough. Would appreciate if the "Select in Project" would be able to do that!

shark0der avatar Oct 29 '20 14:10 shark0der

It works with excluded files too for me. What IDE do you use?

BTW you can also use this button: select-in-project

If it won't work then it is a bug in IntelliJ platform, because this plugin only adds a possibility to bind the action of this button to a keyboard shortcut.

danielkurecka avatar Nov 07 '20 21:11 danielkurecka

Thank you for your answer. I'm using webstorm. Sadly, the button does nothing.

It's kind of weird that sometimes it's still working. I suspect that it works for js/ts/json files but doesn't work for other types. For markdown (.md) and Solidity (.sol) files - the button doesn't do anyting, although I have it visibile in the Project file tree.

shark0der avatar Nov 20 '20 15:11 shark0der