Skip to content
Edith

Docs

Command reference

ed mouse assign

Terminal
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.