zed/crates/ui
Mikayla Maki 8a02159b82
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>
2024-04-19 14:27:56 -07:00
..
docs Update crates/ui/docs/hello-world.md TODO with explanation of SharedString usage (#10664) 2024-04-17 13:04:28 +03:00
src Add a command to expand the context for a multibuffer (#10300) 2024-04-19 14:27:56 -07:00
Cargo.toml windows: Fix title bar height when maximized (#9449) 2024-03-19 20:54:00 -07:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00