# ed mouse assign

> ed mouse assign in the Edith ed command line reference. ed mouse

- Canonical URL: https://getedith.pro/docs/cli/mouse/assign
- Updated: 2026-12-02

[`ed mouse`](https://getedith.pro/docs/cli/mouse)

[The `ed` command line](https://getedith.pro/docs/cli)

```bash
ed mouse assign BUTTON ACTION [VALUE...] [--json]
```

Makes `middle`, `back`, `forward` or `button6` to `button32` do `back`, `forward`, `middle-click`, `mission-control`, `app-windows`, `show-desktop`, `space-left`, `space-right`, `nothing`, `default`, `shortcut` with a shortcut such as `cmd+shift+t`, or `command` with an `ed` command passed as separate words and never through a shell. An assignment already on that button is replaced. Back and Forward send each app's own keys in Finder, Safari, Xcode, VS Code and JetBrains apps and the native side button elsewhere. An unknown button exits with a not found error; an unknown action, a bad shortcut or an empty command exits with a usage error. JSON output has `action`, `button` and `status`.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
