Filtering in Tree Widgets and Improving Tree Search #8380
Labels
enhancement
issues that are enhancements to current functionality - nice to haves
help wanted
issues meant to be picked up, require help
tree
issues related to the tree (ex: tree widget)
Feature Description:
VSCode has added the ability to filter on a search term in a tree widget. This would be a very nice addition to Theia's existing
TreeSearch
functionality.In addition, it would be desirable to allow greater customization of the behavior of
TreeSearch
. For example, if a downstream project would like to implement a persistent filter component as part of aTreeWidget
, it is made difficult because of assumptions made in the current implementation: theTreeIterator
used inTreeSearch
setspruneCollapsed
totrue
, so that any change in expansion requires a recalculation ofsearchDecorations
for the tree. Changing that behavior requires a reimplementation of the entireTreeSearch.filter()
method, and there are similar hurdles to other customizations.The text was updated successfully, but these errors were encountered: