# Add ZoomIn and ZoomOut actions for independent zoom control \(\#44587\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9e11aaec517c8ef51ad0b8a8255be25bce42fa31

Requested commit: 9e11aaec517c8ef51ad0b8a8255be25bce42fa31

Commit: 9e11aaec517c8ef51ad0b8a8255be25bce42fa31

Tree: a4149730d95142d071f54aaab64735f9828e3e6b

Author: pedroni

Committer: GitHub

## Message

````
Add ZoomIn and ZoomOut actions for independent zoom control (#44587)

Closes #14472

Introduces `workspace::ZoomIn` and `workspace::ZoomOut` actions that
complement the existing `workspace::ToggleZoom` action. ZoomIn only
zooms if not already zoomed, and ZoomOut only zooms out if currently
zoomed. This enables composing zoom actions with
`workspace::SendKeystrokes` for workflows like "focus terminal then zoom
in".


<details><summary>Example usage</summary>
<p>

Example keybindings:

```json
[
  {
    "bindings": {
      "ctrl-cmd-,": "terminal_panel::ToggleFocus",
      "ctrl-cmd-.": "workspace::ZoomIn",
    }
  },
  {
    "context": "Terminal",
    "bindings": {
      "cmd-.": "terminal_panel::ToggleFocus"
    }
  },
  {
    "context": "!Terminal",
    "bindings": {
      "cmd-.": ["workspace::SendKeystrokes", "ctrl-cmd-, ctrl-cmd-."]
    }
  },
]
```

Demo:


https://github.com/user-attachments/assets/1b1deda9-7775-4d78-a281-dc9622032ead

</p>
</details> 



Release Notes: 

- Added the actions: `workspace::ZoomIn` and `workspace::ZoomOut` that
complement the existing `workspace::ToggleZoom` action
````

## Parents

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

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