intellij-foldable-project-view icon indicating copy to clipboard operation
intellij-foldable-project-view copied to clipboard

"Select opened file" doesn't work for folded files

Open bartekczyz opened this issue 3 years ago • 4 comments

When you're viewing / editing a file that is folded (or belongs to a folded directory), when you execute "Select opened file" in the project view, the file won't be highlighted in a tree structure

bartekczyz avatar Dec 21 '21 17:12 bartekczyz

I'm getting annoyed by this, too. One use case, where it can easily happen, is when you have, for example, the Maven target directory marked as ignored (e.g. via .gitignore) and then you have generated Java sources. The source directories for those generated sources are located inside the target directory. So when I open such generated Java file and then click the "Select opened file", nothing happens. Of course, a workaround is to turn off the folding of the hidden files, but then the plugin becomes useless.

mamuf avatar Feb 09 '22 10:02 mamuf

If you mean Always select opened file, that's working great for me at PHPStorm 2022.1.1 / 221.5591.58

igorsantos07 avatar Jul 23 '22 15:07 igorsantos07

@bartekczyz Does this happen in project roots? @mamuf's description seems to indicate it is happening with subdirectories.

Not sure, but likely related to #3, #6, #11, and #14.

jrhorn424 avatar Sep 16 '22 11:09 jrhorn424

I love this plugin and was also annoyed by this issue as well.

The "Select Opened file" button does not work: image

The situation where it annoyed me the most was when navigating in a JS project, navigating to an imported module, then asking IntelliJ to show me the file in the tree, more specifically in the node_modules directory.

I found a workaround which is OK for me: uncheck "Hide ignored files". This puts the node_modules directory out of the "Folded files" group, and then "Select Opened file" works again.

image

pbernery avatar Dec 22 '22 08:12 pbernery