diff --git a/bundles/com.espressif.idf.sdk.config.ui/src/com/espressif/idf/sdk/config/ui/SDKConfigurationFilter.java b/bundles/com.espressif.idf.sdk.config.ui/src/com/espressif/idf/sdk/config/ui/SDKConfigurationFilter.java index a49179a43..e58c3db52 100644 --- a/bundles/com.espressif.idf.sdk.config.ui/src/com/espressif/idf/sdk/config/ui/SDKConfigurationFilter.java +++ b/bundles/com.espressif.idf.sdk.config.ui/src/com/espressif/idf/sdk/config/ui/SDKConfigurationFilter.java @@ -10,12 +10,12 @@ public class SDKConfigurationFilter extends PatternFilter @Override protected boolean isLeafMatch(Viewer viewer, Object element) { - if (element instanceof KConfigMenuItem) { KConfigMenuItem highLevelElem = (KConfigMenuItem) element; - return wordMatches(highLevelElem.getTitle()) || recursiveMatch(highLevelElem); + return wordMatches(highLevelElem.getTitle()) || wordMatches(highLevelElem.getName()) + || recursiveMatch(highLevelElem); } return false; @@ -25,12 +25,12 @@ private boolean recursiveMatch(KConfigMenuItem parent) { if (parent.getChildren().isEmpty()) { - return wordMatches(parent.getName()); + return wordMatches(parent.getName()) || wordMatches(parent.getTitle()); } for (KConfigMenuItem child : parent.getChildren()) { - if (wordMatches(child.getName()) || recursiveMatch(child)) + if (wordMatches(child.getName()) || wordMatches(child.getTitle()) || recursiveMatch(child)) { return true; }