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

TreeView search/filter input & api for customization #161753

Open
MaxKless opened this issue Sep 26, 2022 · 8 comments
Open

TreeView search/filter input & api for customization #161753

MaxKless opened this issue Sep 26, 2022 · 8 comments
Assignees
Labels
feature-request Request for new features or functionality tree-views Extension tree view issues
Milestone

Comments

@MaxKless
Copy link

MaxKless commented Sep 26, 2022

As was talked about in #70646, searching/filtering custom trees is really hard currently. Even if you get the unintuitive feature to work, as an extension author you have no control over how the tree will be updated.

To provide a better UX, it would be really nice to have fine-grained control over tree filtering via the vscode extension api:

  • control over whether a separate input field should be shown above a tree (like the one in the extensions or scm views)
  • callbacks including the search contents that can be used to populate the tree with items.

Thanks for considering this and thanks for an overall great developer experience with vscode :)

@hediet hediet assigned joaomoreno and unassigned hediet Sep 27, 2022
@joaomoreno joaomoreno assigned alexr00 and unassigned joaomoreno Sep 27, 2022
@alexr00 alexr00 added feature-request Request for new features or functionality tree-views Extension tree view issues labels Sep 27, 2022
@alexr00
Copy link
Member

alexr00 commented Sep 27, 2022

control over whether a separate input field should be shown above a tree (like the one in the extensions or scm views)

This we will not do, as the ctrl+f command is our unified tree search mechanism. We will not use a different search UX for extension trees vs. core trees.

callbacks including the search contents that can be used to populate the tree with items.

This is a fair feature request.

@VSCodeTriageBot VSCodeTriageBot added this to the Backlog Candidates milestone Sep 27, 2022
@VSCodeTriageBot
Copy link
Collaborator

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@MaxKless
Copy link
Author

Ok that makes sense. Thanks for the feedback.

@VSCodeTriageBot
Copy link
Collaborator

🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@arnoudkooi
Copy link

Is there currently a way to not filter out children of a matching parent, or would that require this feature?
image

@MaxKless
Copy link
Author

That's pretty much what I'm trying to achieve with this feature :p

@mkarbo
Copy link

mkarbo commented Feb 15, 2024

This would indeed be a lovely feature addition to the tree view API, hoping it gets picked up at some point

@wangxi761
Copy link

Is there any progress on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality tree-views Extension tree view issues
Projects
None yet
Development

No branches or pull requests

8 participants