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

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

Open
bartekczyz opened this issue Dec 21, 2021 · 4 comments
Open

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

bartekczyz opened this issue Dec 21, 2021 · 4 comments

Comments

@bartekczyz
Copy link

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

@mamuf
Copy link

mamuf commented Feb 9, 2022

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.

@igorsantos07
Copy link

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

@jrhorn424
Copy link

@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.

@pbernery
Copy link

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

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

5 participants