# Add a command to expand the context for a multibuffer \(\#10300\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8a02159b8232f54f8f39d8939f659a71892e872c

Requested commit: 8a02159b8232f54f8f39d8939f659a71892e872c

Commit: 8a02159b8232f54f8f39d8939f659a71892e872c

Tree: e09a618d4b7963943cd7e6bb6270cd676fb1477c

Author: Mikayla Maki

Committer: GitHub

## Message

````
Add a command to expand the context for a multibuffer (#10300)

This PR adds an action to expand the excerpts lines of context in a
multibuffer.

Release Notes:

- Added an `editor::ExpandExcerpts` action (bound to `shift-enter` by
default), which can expand the excerpt the cursor is currently in by 3
lines. You can customize the number of lines by rebinding this action
like so:

```json5
// In your keybindings array...
  {
    "context": "Editor && mode == full",
    "bindings": {
      "shift-enter": ["editor::ExpandExcerpts", { "lines": 5 }],
    }
  }
```

---------

Co-authored-by: Nathan <nathan@zed.dev>
Co-authored-by: Max <max@zed.dev>
````

## Parents

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

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