# Select all matches \(\#2717\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cde5b3952d2df7b815c0d204556ea554cbebb42e

Requested commit: cde5b3952d2df7b815c0d204556ea554cbebb42e

Commit: cde5b3952d2df7b815c0d204556ea554cbebb42e

Tree: 790c0595fe0fbfb65afe9b455fd0e1c701f91123

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Select all matches (#2717)

Closes https://github.com/zed-industries/community/issues/75
Closes https://github.com/zed-industries/community/issues/1749

The PR 

* changes keybindings for `Editor && mode == auto_height` context:
before, `alt-enter` and `alt-shift-enter` added new lines in such
editors, including the one from buffer search.

New bindings are the same as in `Editor && mode == full` context.

* adds `search::SelectAllMatches` action and binds it to `Alt + Enter`
by default, to select all matches of a buffer search

The behavior mimics VSCode: we do not move the screen even if all
selections are out of the visible range (Cmd+G will navigate there) and
allow reselecting the results from both pane and search field, as long
as the search is not dismissed.

Release Notes:

- Added `search::SelectAllMatches` (`Alt + Enter` default) action to
place carets and select all buffer search results
([#75](https://github.com/zed-industries/community/issues/75),
[#1749](https://github.com/zed-industries/community/issues/1749)).
```

## Parents

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

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

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