Double-clicking root folders opens Directories settings
When Toggle tree... setting is enabled, double-clicking on any root folder (product root, sources root, test sources root, resource root) opens the Directories settings window.
This gets pretty annoying when accidentally double-clicking one of these folders. The only solution for me is disabling this cool feature until the issue is resolved.
Awesome plugin otherwise! 😁
@slightlyfaulty Thanks for the feedback!
I was very surprised about the behavior, I never encountered it myself by accident - but it's there, and it seems to be a wanted feature of IntelliJ:
If you double click on a tree node thats not a leaf and the double-click is not the toggle-action (single-click is with this Toggle tree... setting enabled), it performs a node specific action.
This code is pretty much out of my reach to adapt or change. The only option I currently see is writing a custom expand/collapse logic and keep the trees toggleClickCount=2, but tinkering around with basic UI interaction isn't the right thing to do. It is already very challenging to align the preview feature with all the different settings and interactions of the project view, file tree and editor tabs - some still needs to be resolved.
I keep this issue open for ideation and contributions - I would be happy to learn about a more non-intrusive solution, but custom mouse-tree-interaction handling is pitfall territory. ⚠️
Guys, probably unrelated but how do I enable that toggleClickCount=2? Is there a config file somewhere in IntelliJ IDEA?
@InvisibleDev The default is toggleClickCount=2 in IntelliJ IDEs. This plugin alters the default-behavior, but can be customized to your likings - see README.md.