# Allow search/replace to span multiple lines \(\#50783\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b0e35b65995e14059f7004ad9a037d5c11df1bb7

Requested commit: b0e35b65995e14059f7004ad9a037d5c11df1bb7

Commit: b0e35b65995e14059f7004ad9a037d5c11df1bb7

Tree: 4ca14f265d4bb23ba9f4715247ddfeefa4687cfe

Author: claire

Committer: GitHub

## Message

```
Allow search/replace to span multiple lines (#50783)

Closes #49957 

Also adds `start_of_input` context, and modifies both
`{start,end}_of_input` to work for both single line and auto height
editor modes.


https://github.com/user-attachments/assets/e30f2b20-a96c-49d5-9eb6-3c95a485d14a

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Added support for multi-line search and replace input in Buffer Search
and Project Search

---------

Co-authored-by: Nathan Sobo <nathan@zed.dev>
```

## Parents

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

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