AntonShuvaev / elasticsearch4idea

Elasticsearch Plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/14512-elasticsearch
59 stars 8 forks source link

Every section in every Connection gets expanded on typing and stays expanded when finished #139

Closed o-nix closed 7 months ago

o-nix commented 8 months ago

Describe the bug I have 5 connections in my ES sidebar. One of the connections has 300+ indices, so I sometimes need to navigate to them quickly. Previously, if I recall correctly, it was about "IDEA-native" navigation, when you start jumping between matching list items when something has been typed from the keyboard. However, nowadays, it is a global filter, being applied when you type. This filter somehow includes not only my current active connection under the cursor but all connections at once. That would be fine if all other connections weren't suddenly expanded as well when I am done navigating.

Steps to reproduce

Expected behavior The previous expanded/collapsed state is preserved OR at least there is a dedicated "Collapse all" button.

Environment information:

AntonShuvaev commented 8 months ago

I've recently added a filter toggle in the search input field. When this toggle is enabled, searching and filtering apply to all tree nodes, including those that are not expanded. To revert to the previous behavior where the search only applies to already expanded nodes, you can simply disable this filter toggle in the search input field.

Screenshot 2024-02-02 at 18 25 23
o-nix commented 8 months ago

@AntonShuvaev thanks, it seems exactly the thing I needed! I've previously tried to understand what the togglable funnel icon itself means but somehow didn't pay attention. Please add this info to the tooltip. Also, maybe, it is worth keeping this toggle in the toolbar?