# Add select all command to the editor \(\#2963\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7f4d2852059afbcffa51a74834780f2327d88b6a

Requested commit: 7f4d2852059afbcffa51a74834780f2327d88b6a

Commit: 7f4d2852059afbcffa51a74834780f2327d88b6a

Tree: 8b1775150a76961f1e1c6b1672bc1fd0b1aa87d7

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Add select all command to the editor (#2963)

Equivalent to hitting cmd-d as many times as possible

cc: @JosephTLyons this PR needs a bit of work on user-facing naming and
interactions:
- [x] ~~I thought cmd-shift-d would be nice for this action, but that is
already taken by a sublime key binding. Could we use the VSCode binding?
I left the sublime text binding in but commented out.~~ Gonna just leave
it as is
- [x] ~~I went through 'SelectAllMatches' and 'SelectAll' as names for
this action, but ran into conflicts with the buffer search action and
the existing SelectAll (`cmd-a`) action. I decided to go with
`SelectNextAll`, but could use your help here.~~ Decided to go with
'SelectAllMatches'

Release Notes:
- Added a `editor::SelectAllMatches` command, bound to `cmd-shift-d`,
for selecting all matching occurrences under your selection. Note that
this has replaced the previous binding for `editor::DuplicateLine`.
```

## Parents

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

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

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