# Add editor actions for moving and selecting to next / previous excerpt \(\#25299\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 30850fe3bde44e80173bb7510606b43f67313753

Requested commit: 30850fe3bde44e80173bb7510606b43f67313753

Commit: 30850fe3bde44e80173bb7510606b43f67313753

Tree: 3b172aeafcc76fa62389895aaacb6089220398c8

Author: Michael Sloan

Committer: GitHub

## Message

```
Add editor actions for moving and selecting to next / previous excerpt (#25299)

Covers part of #5129 by adding `MoveToStartOfExcerpt`,
`MoveToEndOfExcerpt`, `SelectToStartOfExcerpt`, and
`SelectToEndOfExcerpt`.

No default linux bindings yet as it's unclear what to use. Currently,
`ctrl-up` / `ctrl-down` scroll up and down by one line (see #13269).
Considering changing the meaning of those.

Mac:

* Previously `cmd-up` and `cmd-down` were `editor::MoveToBeginning` and
`editor::MoveToEnd`. In singleton editors these will behave the same as
before. In multibuffers, they will now step through excerpts instead of
jumping to the beginning / end of the multibuffer.

* `cmd-home` and `cmd-end`, often typed as `cmd-fn-left` and
`cmd-fn-right` are now `editor::MoveToBeginning` and
`editor::MoveToEnd`. This is useful in multibuffers.

Release Notes:

- Mac: `cmd-up` now moves to the previous
multibuffer excerpt start, and `cmd-down` moves to the next multibuffer
excerpt end. Within normal buffers these behave the same as before, moving
to the beginning or end.
```

## Parents

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

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