Skip to content

Make tree find controls more discoverable #173742

@Eskibear

Description

@Eskibear

The Find control in tree view is very useful and highly requested by the community, but still a lot of people are not aware that we already have it in vscode. For the moment, to find something in tree view, you have to

  • select an item to focus on the tree view
  • press ctrl/cmd + F

To expose the feature more, can we add an option to show a button on view/title as below?

The behavior will look like below.

find-button.mp4

(I mimic the behavior by calling commands viewId.focus and list.find in above demo...but to add the buttons for multiple views, I have to do that repeatedly registering multiple commands).

As this is a generic feature for all tree views, I think it probably we can add a new option showFindControl in TreeViewOptions, just like how we add "showCollapseAll" button. WDYT?

vscode/src/vscode-dts/vscode.d.ts

Lines 10349 to 10352 in a7d49b0

/**
* Whether to show collapse all action or not.
*/
showCollapseAll?: boolean;

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitytree-widgetTree widget issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions