# search: Preserve \`SearchOptions\` across dismisses \(\#36954\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 48299b5b2402748a7501047cc11204e452289fcf

Requested commit: 48299b5b2402748a7501047cc11204e452289fcf

Commit: 48299b5b2402748a7501047cc11204e452289fcf

Tree: dc679ebb9d8b5a077378270414626af19bcd6ea3

Author: tidely

Committer: GitHub

## Message

```
search: Preserve `SearchOptions` across dismisses (#36954)

Closes #36931 and #21956

Preserves `SearchOptions` across dismisses of the buffer search bar.
This behavior is consistent with VSCode, which seems reasonable. The
`configured_options` field is then no longer being used. The
configuration is still read during initialization of the
`BufferSearchBar`, but not after.

Something to consider is that there are other elements in the search bar
which are not kept across dismisses such as replace status. However
these are visually separated in the UI, leading me to believe this is a
okay change to make.

Release Notes:

- Preserve search options between buffer search dismisses
```

## Parents

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

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