# text_finder: Add collapsible file groups \(\#60193\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/17090674b34288db75128f96dfb336116e058ff2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 17090674b34288db75128f96dfb336116e058ff2

Requested commit: 17090674b34288db75128f96dfb336116e058ff2

Commit: 17090674b34288db75128f96dfb336116e058ff2

Tree: c8e5f1b4b3191e6a067559aade1ef3fef14bfc69

Author: ozacod

Committer: GitHub

## Message

```
text_finder: Add collapsible file groups (#60193)

## Summary

Add a chevron (`Disclosure`) to each file group header in Text Finder,
letting you fold/unfold that file's matches. Fold state is cleared
whenever a new search starts.

## Test plan

- [x] Open Text Finder, run a search with matches in multiple files
- [x] Click a header's chevron, confirm its matches hide/show and
selection lands on a visible row
- [x] Start a new search, confirm folded state doesn't carry over

Release Notes:

- Added the ability to collapse per-file match groups in Text Finder

---------

Co-authored-by: ozacod <ozacod@users.noreply.github.com>
Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
```

## Parents

- [78b6bf2fbe2aa46688507e839ac1b537522e4c58](https://git.cafe/gitcafe/zed/commit/78b6bf2fbe2aa46688507e839ac1b537522e4c58?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/17090674b34288db75128f96dfb336116e058ff2?format=markdown)
